Dan Williams schrieb: > On Thu, 2007-12-06 at 00:41 +0100, Michael Biebl wrote: >> Hi, >> >> I'm running latest NM 0.7 from svn and it works fine so far. >> The only strange issue I encounter is, that NM after succesfully >> establishing a connection to my WLAN router wgrouter, seems to roam to >> an unknown AP. Please see the attached NM log. >> >> As a result in the nm-applet wlan list menu, my wgrouter network is not >> selected (see attached screenshot). >> >> Any idea what's going wrong? > > Something is failing to grab the BSSID + SSID off the card and match > that up with an entry in the scan list. See > nm-device-802-11-wireless.c, periodic_upate() and get_active_ap(). Can > you put some debugging information in get_active_ap() to see what NM > pulls off the card for BSSID and SSID and then if those are both > successful, whether it's been able to find that combo in the scan list? > > Also, what card/driver are you using? Thanks for the pointer. I'm having an inter ipw2100, using the in kernel ipw2100 driver (2.6.23). I added some debug output as you said, and the problem seems to be, that ap freq and card freq differ. In get_active_ap I added in the for loop: if (nm_device_802_11_wireless_get_frequency (self) != nm_ap_get_freq (ap)) { nm_debug ("freq(self): %d\n", nm_device_802_11_wireless_get_frequency (self)); nm_debug ("freq(ap): %d\n", nm_ap_get_freq (ap)); continue; } The output is lt-NetworkManager: <debug> [1198007195.962479] get_active_ap(): freq(self): 0 lt-NetworkManager: <debug> [1198007195.962550] get_active_ap(): freq(ap): 2412 Because of that, periodic_update switches to another bssid. (btw the api is not consistent here: *_get_freq vs. *_get_frequency) pluto:~# iwconfig wlan0 wlan0 IEEE 802.11b ESSID:"wgrouter" Nickname:"ipw2100" Mode:Managed Frequency:2.412 GHz Access Point: 00:04:E2:C2:D3:3A Bit Rate=11 Mb/s Tx-Power:16 dBm Retry short limit:7 RTS thr:off Fragment thr:off Encryption key Security mode:open Power Management:off Link Quality=100/100 Signal level=-49 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:18 Missed beacon:0 So, NM is obviously getting the wrong freq from the card. HTH, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
Attachment:
signature.asc
Description: OpenPGP digital signature