* [PATCH] mac80211: Do not queue Probe Request frames for station MLME
@ 2009-11-16 17:54 Jouni Malinen
2009-11-16 17:57 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Jouni Malinen @ 2009-11-16 17:54 UTC (permalink / raw)
To: John W. Linville; +Cc: Johannes Berg, linux-wireless
Cooked monitor interfaces cannot currently receive Probe Request
frames when the interface is in station mode. However, we do not
process Probe Request frames internally in the station MLME, so there
is no point in queueing the frame here. Remove Probe Request frames
from the queued frame list to allow cooked monitor interfaces to
receive these frames.
Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
---
net/mac80211/mlme.c | 1 -
1 file changed, 1 deletion(-)
--- uml.orig/net/mac80211/mlme.c 2009-11-13 16:58:27.000000000 +0200
+++ uml/net/mac80211/mlme.c 2009-11-13 16:59:20.000000000 +0200
@@ -1898,7 +1898,6 @@ ieee80211_rx_result ieee80211_sta_rx_mgm
fc = le16_to_cpu(mgmt->frame_control);
switch (fc & IEEE80211_FCTL_STYPE) {
- case IEEE80211_STYPE_PROBE_REQ:
case IEEE80211_STYPE_PROBE_RESP:
case IEEE80211_STYPE_BEACON:
case IEEE80211_STYPE_AUTH:
--
Jouni Malinen PGP id EFC895FA
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] mac80211: Do not queue Probe Request frames for station MLME
2009-11-16 17:54 [PATCH] mac80211: Do not queue Probe Request frames for station MLME Jouni Malinen
@ 2009-11-16 17:57 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2009-11-16 17:57 UTC (permalink / raw)
To: Jouni Malinen; +Cc: John W. Linville, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 1174 bytes --]
On Mon, 2009-11-16 at 19:54 +0200, Jouni Malinen wrote:
> Cooked monitor interfaces cannot currently receive Probe Request
> frames when the interface is in station mode. However, we do not
> process Probe Request frames internally in the station MLME, so there
> is no point in queueing the frame here. Remove Probe Request frames
> from the queued frame list to allow cooked monitor interfaces to
> receive these frames.
>
> Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
It's also just unnecessary overhead to put them on the list and process
them by freeing :)
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
>
> ---
> net/mac80211/mlme.c | 1 -
> 1 file changed, 1 deletion(-)
>
> --- uml.orig/net/mac80211/mlme.c 2009-11-13 16:58:27.000000000 +0200
> +++ uml/net/mac80211/mlme.c 2009-11-13 16:59:20.000000000 +0200
> @@ -1898,7 +1898,6 @@ ieee80211_rx_result ieee80211_sta_rx_mgm
> fc = le16_to_cpu(mgmt->frame_control);
>
> switch (fc & IEEE80211_FCTL_STYPE) {
> - case IEEE80211_STYPE_PROBE_REQ:
> case IEEE80211_STYPE_PROBE_RESP:
> case IEEE80211_STYPE_BEACON:
> case IEEE80211_STYPE_AUTH:
>
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-16 18:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-16 17:54 [PATCH] mac80211: Do not queue Probe Request frames for station MLME Jouni Malinen
2009-11-16 17:57 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox