aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
authorIgor Perminov <igor.perminov@inbox.ru>2009-08-04 16:48:51 +0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-04 16:44:35 -0400
commite3b90ca28412fb9dcc8c5ca38e179e78fec07eee (patch)
treefa17113d9d7c96edc076b3f46558e8c3fb78d673 /net/mac80211/main.c
parente48e3a2f17f189deb086ff221e489e7fd8ec4302 (diff)
downloadkernel_samsung_espresso10-e3b90ca28412fb9dcc8c5ca38e179e78fec07eee.zip
kernel_samsung_espresso10-e3b90ca28412fb9dcc8c5ca38e179e78fec07eee.tar.gz
kernel_samsung_espresso10-e3b90ca28412fb9dcc8c5ca38e179e78fec07eee.tar.bz2
mac80211: FIF_PSPOLL filter flag
When an interface is configured in the AP mode, the mac80211 implementation doesn't inform the driver to receive PS Poll frames. It leads to inability to communicate with power-saving stations reliably. The FIF_CONTROL flag isn't passed by mac80211 to ieee80211_ops.configure_filter when an interface is in the AP mode. And it's ok, because we don't want to receive ACK frames and other control ones, but only PS Poll ones. This patch introduces the FIF_PSPOLL filter flag in addition to FIF_CONTROL, which means for the driver "pass PS Poll frames". This flag is passed to the driver: A) When an interface is configured in the AP mode. B) In all cases, when the FIF_CONTROL flag was passed earlier (in addition to it). Signed-off-by: Igor Perminov <igor.perminov@inbox.ru> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r--net/mac80211/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 22e0738..0c4f8e1 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -77,6 +77,9 @@ void ieee80211_configure_filter(struct ieee80211_local *local)
if (local->fif_other_bss)
new_flags |= FIF_OTHER_BSS;
+ if (local->fif_pspoll)
+ new_flags |= FIF_PSPOLL;
+
changed_flags = local->filter_flags ^ new_flags;
/* be a bit nasty */