* iwlist wlan0 scan disrupts communications @ 2009-10-27 20:40 Charles Gordon 2009-10-27 20:43 ` Johannes Berg 2009-10-27 20:59 ` John W. Linville 0 siblings, 2 replies; 8+ messages in thread From: Charles Gordon @ 2009-10-27 20:40 UTC (permalink / raw) To: linux-wireless Hi, I am using version 2.6.28 of the kernel and version 0.9.11-nogit of iw. Communications are disrupted and the device stops responding to ping when I use the command "iwlist wlan0 scan". Communications are restored when the command completes. Is this behavior expected? Has it been fixed in a later release? Thanks for your help. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: iwlist wlan0 scan disrupts communications 2009-10-27 20:40 iwlist wlan0 scan disrupts communications Charles Gordon @ 2009-10-27 20:43 ` Johannes Berg 2009-10-28 14:47 ` Charles Gordon 2009-10-27 20:59 ` John W. Linville 1 sibling, 1 reply; 8+ messages in thread From: Johannes Berg @ 2009-10-27 20:43 UTC (permalink / raw) To: Charles Gordon; +Cc: linux-wireless [-- Attachment #1: Type: text/plain, Size: 497 bytes --] On Tue, 2009-10-27 at 16:40 -0400, Charles Gordon wrote: > Hi, > > I am using version 2.6.28 of the kernel and version 0.9.11-nogit of > iw. Communications are disrupted and the device stops responding to > ping when I use the command "iwlist wlan0 scan". Communications are > restored when the command completes. Is this behavior expected? Has > it been fixed in a later release? Yes and yes, but I don't remember whether it's better in 2.6.31 or only will be in 32. johannes [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 801 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: iwlist wlan0 scan disrupts communications 2009-10-27 20:43 ` Johannes Berg @ 2009-10-28 14:47 ` Charles Gordon 2009-10-28 14:54 ` Johannes Berg 0 siblings, 1 reply; 8+ messages in thread From: Charles Gordon @ 2009-10-28 14:47 UTC (permalink / raw) To: linux-wireless On Tue, Oct 27, 2009 at 4:43 PM, Johannes Berg <johannes@sipsolutions.net> wrote: > On Tue, 2009-10-27 at 16:40 -0400, Charles Gordon wrote: >> Hi, >> >> I am using version 2.6.28 of the kernel and version 0.9.11-nogit of >> iw. Communications are disrupted and the device stops responding to >> ping when I use the command "iwlist wlan0 scan". Communications are >> restored when the command completes. Is this behavior expected? Has >> it been fixed in a later release? > > Yes and yes, but I don't remember whether it's better in 2.6.31 or only > will be in 32. > > johannes > Thanks for the information. After doing some more testing I found that the association to the AP is sometimes lost and that mac80211 does not recover automatically. You have to type the command "wpa_cli reassociate" to trigger the stack to reassociate with the AP. Is this one of the things that is, or will be, fixed in later releases? ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: iwlist wlan0 scan disrupts communications 2009-10-28 14:47 ` Charles Gordon @ 2009-10-28 14:54 ` Johannes Berg 2009-10-28 15:02 ` Charles Gordon 0 siblings, 1 reply; 8+ messages in thread From: Johannes Berg @ 2009-10-28 14:54 UTC (permalink / raw) To: Charles Gordon; +Cc: linux-wireless [-- Attachment #1: Type: text/plain, Size: 515 bytes --] On Wed, 2009-10-28 at 10:47 -0400, Charles Gordon wrote: > Thanks for the information. After doing some more testing I found > that the association to the AP is sometimes lost and that mac80211 > does not recover automatically. You have to type the command "wpa_cli > reassociate" to trigger the stack to reassociate with the AP. Is this > one of the things that is, or will be, fixed in later releases? I don't know. Normally, wpa_supplicant should notice this and re-connect by itself. johannes [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 801 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: iwlist wlan0 scan disrupts communications 2009-10-28 14:54 ` Johannes Berg @ 2009-10-28 15:02 ` Charles Gordon 2009-10-28 15:23 ` Johannes Berg 0 siblings, 1 reply; 8+ messages in thread From: Charles Gordon @ 2009-10-28 15:02 UTC (permalink / raw) To: linux-wireless On Wed, Oct 28, 2009 at 10:54 AM, Johannes Berg <johannes@sipsolutions.net> wrote: > On Wed, 2009-10-28 at 10:47 -0400, Charles Gordon wrote: > >> Thanks for the information. After doing some more testing I found >> that the association to the AP is sometimes lost and that mac80211 >> does not recover automatically. You have to type the command "wpa_cli >> reassociate" to trigger the stack to reassociate with the AP. Is this >> one of the things that is, or will be, fixed in later releases? > > I don't know. Normally, wpa_supplicant should notice this and re-connect > by itself. > > johannes > I think the way wpa_supplicant would notice this is that the AP would send a deauthentication or dissassociation frame to the station, and that would trigger wpa_supplicant to reassociate. However, if we are tuned to a different channel when the frame is sent, then we won't receive it. The AP won't send another notification unless we try to send it another data frame, but if another station is trying to send to us, we won't be notified. I think that when the scan completes, mac80211 should either notify wpa_supplicant that it should reassociate, or maybe send a null-data frame to the AP which might cause it to send another deauthentication/dissassociation frame (if we lost the connect). ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: iwlist wlan0 scan disrupts communications 2009-10-28 15:02 ` Charles Gordon @ 2009-10-28 15:23 ` Johannes Berg 2009-10-28 15:48 ` Dan Williams 0 siblings, 1 reply; 8+ messages in thread From: Johannes Berg @ 2009-10-28 15:23 UTC (permalink / raw) To: Charles Gordon; +Cc: linux-wireless [-- Attachment #1: Type: text/plain, Size: 447 bytes --] On Wed, 2009-10-28 at 11:02 -0400, Charles Gordon wrote: > I think that when the scan completes, mac80211 should either notify > wpa_supplicant that it should reassociate, or maybe send a null-data > frame to the AP which might cause it to send another > deauthentication/dissassociation frame (if we lost the connect). it does send nullfunc frames, you're probably running into an old bug that caused those to not be sent. johannes [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 801 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: iwlist wlan0 scan disrupts communications 2009-10-28 15:23 ` Johannes Berg @ 2009-10-28 15:48 ` Dan Williams 0 siblings, 0 replies; 8+ messages in thread From: Dan Williams @ 2009-10-28 15:48 UTC (permalink / raw) To: Johannes Berg; +Cc: Charles Gordon, linux-wireless On Wed, 2009-10-28 at 16:23 +0100, Johannes Berg wrote: > On Wed, 2009-10-28 at 11:02 -0400, Charles Gordon wrote: > > > I think that when the scan completes, mac80211 should either notify > > wpa_supplicant that it should reassociate, or maybe send a null-data > > frame to the AP which might cause it to send another > > deauthentication/dissassociation frame (if we lost the connect). > > it does send nullfunc frames, you're probably running into an old bug > that caused those to not be sent. Correct, 2.6.28 did *not* have the nullfunc TX fix, so if the scan lasts more than a few seconds, and the AP has traffic for the STA the TX will time out, and the AP may drop the STA during the scan. 2.6.29 was the first kernel that had the nullfunc TX fix. But the supplicant should still reconnect... Dan ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: iwlist wlan0 scan disrupts communications 2009-10-27 20:40 iwlist wlan0 scan disrupts communications Charles Gordon 2009-10-27 20:43 ` Johannes Berg @ 2009-10-27 20:59 ` John W. Linville 1 sibling, 0 replies; 8+ messages in thread From: John W. Linville @ 2009-10-27 20:59 UTC (permalink / raw) To: Charles Gordon; +Cc: linux-wireless On Tue, Oct 27, 2009 at 04:40:46PM -0400, Charles Gordon wrote: > I am using version 2.6.28 of the kernel and version 0.9.11-nogit of > iw. Communications are disrupted and the device stops responding to > ping when I use the command "iwlist wlan0 scan". Communications are > restored when the command completes. Is this behavior expected? Has > it been fixed in a later release? The device has to change frequencies to conduct the scan. Kinda like missing part of a show while you are flipping channels... :-) -- John W. Linville Someday the world will need a hero, and you linville@tuxdriver.com might be all we have. Be ready. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-10-28 15:48 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-10-27 20:40 iwlist wlan0 scan disrupts communications Charles Gordon 2009-10-27 20:43 ` Johannes Berg 2009-10-28 14:47 ` Charles Gordon 2009-10-28 14:54 ` Johannes Berg 2009-10-28 15:02 ` Charles Gordon 2009-10-28 15:23 ` Johannes Berg 2009-10-28 15:48 ` Dan Williams 2009-10-27 20:59 ` John W. Linville
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).