* repeat scanning could cause disassoc
@ 2007-07-06 21:26 mabbas
2007-07-10 23:11 ` Johannes Berg
0 siblings, 1 reply; 3+ messages in thread
From: mabbas @ 2007-07-06 21:26 UTC (permalink / raw)
To: linux-wireless
Hi
If I keep repeating scanning for like 4 times in the raw, the mac80211
can disassociated because No ProbeResp.
looking at the rx patch if we are scanning we wont pass
ieee80211_rx_h_passive_scan which only will deliver
beacon and probe request, which what we want, except that we only update
last_rx in the function
ieee80211_rx_h_sta_process which is two functions down rx handlers.
In iwlwifi we do perform hw scan, in this command if scan takes a long
time, and we are associated, it will tunes to associated channel to
allow getting beacons for a period of time, then continue with scanning.
we do receive beacons on the associated
channel but mac80211 never update last_rx causing the disassociation.
I wonder if we can move ieee80211_rx_h_sta_process before
ieee80211_rx_h_passive_scan or at least the rx_last
update part.
Thanks
Mohamed
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: repeat scanning could cause disassoc
2007-07-06 21:26 repeat scanning could cause disassoc mabbas
@ 2007-07-10 23:11 ` Johannes Berg
[not found] ` <b3153e950707111616r7f3f36a2x7a262f41afce396c@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2007-07-10 23:11 UTC (permalink / raw)
To: mabbas; +Cc: linux-wireless, Michael Wu
[-- Attachment #1: Type: text/plain, Size: 1522 bytes --]
Hi,
> If I keep repeating scanning for like 4 times in the raw, the mac80211
> can disassociated because No ProbeResp.
> looking at the rx patch if we are scanning we wont pass
> ieee80211_rx_h_passive_scan which only will deliver
> beacon and probe request, which what we want, except that we only update
> last_rx in the function
> ieee80211_rx_h_sta_process which is two functions down rx handlers.
> In iwlwifi we do perform hw scan, in this command if scan takes a long
> time, and we are associated, it will tunes to associated channel to
> allow getting beacons for a period of time, then continue with scanning.
> we do receive beacons on the associated
> channel but mac80211 never update last_rx causing the disassociation.
Interesting. If the scan takes such a long time, what do you do when
there are actually data frames coming in during the time you listen on
the associated channel? I think you'd have to buffer them because they
also would be dropped by ieee80211_rx_h_passive_scan...
> I wonder if we can move ieee80211_rx_h_sta_process before
> ieee80211_rx_h_passive_scan or at least the rx_last
> update part.
I guess we could, the intention of the check is probably to find going
out of range or such rather than disassociating when you've missed too
much traffic :)
Michael, you gave scanning and background scanning much more thought, I
can see the problem here but not the solution. Shouldn't we be doing
this back-tuning in mac80211 too then?
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-07-13 9:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-06 21:26 repeat scanning could cause disassoc mabbas
2007-07-10 23:11 ` Johannes Berg
[not found] ` <b3153e950707111616r7f3f36a2x7a262f41afce396c@mail.gmail.com>
2007-07-12 20:43 ` Johannes Berg
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).