Bug 373841
| Summary: | NetworkManager unable to connect to hidden wireless network on madwifi | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ryuhei Yokokawa <ryuheixys> | ||||
| Component: | NetworkManager | Assignee: | Dan Williams <dcbw> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 8 | CC: | bernd.bartmann, brogdons, dcbw, donavan, fedora, ivazqueznet, jonathansavage, matt.britt, mk, phil, thms, wtogami | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | i386 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | 0.7.0-0.6.7.svn3235.fc8 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2008-01-22 15:50:07 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Ryuhei Yokokawa
2007-11-09 21:30:18 UTC
Created attachment 253591 [details]
messages file from /var/log/messages showing the results from NM
At first I thought it was an issue with my 'Asus WL100-G' and the b43legacy driver. After the last kernel update my system doesn't crash anymore after removing the pcmcia card but still no go when using a hidden ESSID. Network is fine when I 'unhide' the ESSID. I'm not using madwifi btw, so this is plain F8 stuff. i cant connect to hidden networks either. If I enable the ssid broadcast it works. However, WPA doesnt work at all, ever. scratch that. since knetworkmanager is now a link to nm-applet....i had to use gconf-editor to clear out all the remembered wifi networks.....then wpa started working. BUT, I still can't connect to a hidden network, whether the network has wep, wpa, or nothing, i still cant connect. Ideally, knetworkmanager should be brought back (since I use kde). Otherwise, I find NM to be much more stable than in fc7. I am seeing the same problem. Something is not right with the hidden SSID. Also, I have noticed that if you do broadcast the SSID and allow NetworkManager to connect to the wireless network and then quit broadcasting the SSID the connection is dropped and can not reconnect. personally, i blame nm-applet. It is a tranish on my otherwise smoothly running kde desktop. and for the record im having this issue with an ipw2200 card, not madwifi I've successfully used ipw2200 with hidden networks; can you see if a straight wpa_supplicant config will connect for you using ap_scan=2? WRT atheros, it has in the past needed ap_scan=1. But that is not going to be special-cased because now that ath5k is in the upstream kernel, it will use whatever settings the mac80211 stack uses (and all other mac80211-based drivers). Drivers fundamentally _need_ to support ap_scan=2; ap_scan=1 + scan_ssid=1 is an optimization of ap_scan=2 that some drivers just cannot support. hidden SSID support is highly driver dependent and drivers need to get better before it gets usably better for everyone, even without NetworkManager involved. Thanks alot Dan! That worked fine for me.
In my /etc/wpa_supplicant/wpa_supplicant.conf file I put the following
ap_scan=2
network={
...
scan_ssid=1
}
and it worked fine after a restart of the services.
Thanks!!!
Adding ap_scan=2 worked for iwl3945 on x86_64, but scan_ssid=1 breaks it. No wait, I lie. Will do further diagnosing... *** Bug 427878 has been marked as a duplicate of this bug. *** *** Bug 410931 has been marked as a duplicate of this bug. *** *** Bug 267261 has been marked as a duplicate of this bug. *** *** Bug 249156 has been marked as a duplicate of this bug. *** *** Bug 178629 has been marked as a duplicate of this bug. *** NetworkManager-0.7.0-0.6.7.svn3235.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update NetworkManager' Using NetworkManager-0.7.0-0.6.7.svn3235.fc8 and kernel-2.6.23.13-105.fc8, the connection is established nicely! Good work, guys! However, NM does not seem able to automatically reconnect to the hidden network after boot. I have to re-add the hidden network manually. This is probably a different issue. It could be a regression in NM(?) I think this was fixed way back, but I cant remember all the details. NetworkManager-0.7.0-0.6.7.svn3235.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report. As far as I can see, an earlier snapshot svn3204 has been pushed out to stable. How did that happen? Is this bug fixed? I can't get NetworkManager to connect to a hidden SSID (In reply to comment #22) > Is this bug fixed? > > I can't get NetworkManager to connect to a hidden SSID Yes, it's fixed. You need to update to the latest Fedora 8 updates kernel, and patch the madwifi driver to advertise SSID scan capability. All in-kernel drivers have been updated to reflect their scan capability, but since madwifi isn't part of the kernel it's not something we can fix... diff -ru madwifi-0 (copy).9.3.3/net80211/ieee80211_wireless.c madwifi-0.9.3.3/net80211/ieee80211_wireless.c --- madwifi-0 (copy).9.3.3/net80211/ieee80211_wireless.c 2007-07-26 08:58:47.000000000 -0400 +++ madwifi-0.9.3.3/net80211/ieee80211_wireless.c 2008-02-04 07:20:17.000000000 -0500 @@ -1026,6 +1026,8 @@ IW_ENC_CAPA_CIPHER_TKIP | IW_ENC_CAPA_CIPHER_CCMP; #endif + range->scan_capa = IW_SCAN_CAPA_ESSID; + return 0; } Ah, it's driver dependent! So if it doesn't work with the rt73usb driver what do I do? Well, is the rt73usb driver using the mac80211 stack? If it is, it should automatically pick up this capability on the latest kernels. # lsmod|fgrep rt exportfs 8129 1 nfsd rt73usb 27201 0 rt2x00usb 12737 1 rt73usb rt2x00lib 21313 2 rt73usb,rt2x00usb rfkill 9297 1 rt2x00lib input_polldev 7369 1 rt2x00lib crc_itu_t 6081 1 rt2x00lib mac80211 125265 2 rt2x00usb,rt2x00lib parport_pc 26981 0 iTCO_vendor_support 7109 1 iTCO_wdt parport 32393 1 parport_pc kernel 2.6.23.14-107 Ok, so it should have the capability. Can you paste in the lines from /var/log/messages where NM starts up? It should look something like: NetworkManager: <info> eth1: Device is fully-supported using driver 'ipw2200'. NetworkManager: <info> eth1: driver supports SSID scans (scan_capa 0x21). NetworkManager: <info> Now managing wireless (802.11) device 'eth1'. Feb 4 12:40:53 localhost NetworkManager: <info> starting... Feb 4 12:40:53 localhost NetworkManager: <info> eth0: Device is fully-supported using driver 'tg3'. Feb 4 12:40:53 localhost NetworkManager: <info> Now managing wired Ethernet (802.3) device 'eth0'. Feb 4 12:40:53 localhost NetworkManager: <info> Bringing up device eth0 Feb 4 12:40:53 localhost kernel: ADDRCONF(NETDEV_UP): eth0: link is not ready Feb 4 12:40:53 localhost NetworkManager: <info> Deactivating device eth0. Feb 4 12:40:53 localhost NetworkManager: <info> (eth0): exporting device as /org/freedesktop/Hal/devices/net_00_0b_cd_dd_5b_cb Feb 4 12:40:53 localhost NetworkManager: <info> wlan0: Device is fully-supported using driver 'rt73usb'. Feb 4 12:40:53 localhost NetworkManager: <info> Now managing wireless (802.11) device 'wlan0'. Feb 4 12:40:53 localhost NetworkManager: <info> Bringing up device wlan0 Feb 4 12:40:53 localhost kernel: ADDRCONF(NETDEV_UP): wlan0: link is not ready Feb 4 12:40:53 localhost NetworkManager: <info> Deactivating device wlan0. Feb 4 12:40:53 localhost NetworkManager: <info> (wlan0): exporting device as /org/freedesktop/Hal/devices/net_00_1a_70_35_0b_a5 Feb 4 12:40:53 localhost NetworkManager: <info> (eth0) supplicant interface is now in state 2 (from 1). Feb 4 12:40:53 localhost NetworkManager: <info> (wlan0) supplicant interface is now in state 2 (from 1). There's no "driver supports SSID scans" I tried another machine with a PCMCIA card using the b43 driver. Same problem, can't connect to access point with hidden SSID. Does NetworkManager on the other machine report anything about SSID scan capability when it starts up? If that message isn't in the logs, it likely won't work. You'll need NetworkManager-0.7.0-0.6.7.svn3235 or later, which was pushed to F8-updates on 2008-01-22. Try updating a bit later today. I have NetworkManager-0.7.0-0.6.7.svn3204.fc8.i386.rpm as the latest in updates/8/i386. Is this related to comment #21 ? Yeah, something got screwed up in update repo generation, and that's being corrected as I type this, hence the "try updating a bit later today." When you see 3235 hit the repos, any mac80211-based, ipw2200, hostap, or libertas drivers should work better with hidden SSIDs for you. I'll test later. Will this fix end in F7 as well? No, it's not present in F7 yet. On track for a 0.6.6 release sometime later this month though. It works both for b43 and rt73usb, thanks! |