summaryrefslogtreecommitdiff
path: root/package/madwifi/patches/444-beacon_update_war.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-08-19 14:48:31 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-08-19 14:48:31 +0000
commit7c746b122fa8225305116d1f806c9ab7238335ab (patch)
tree3c39a449dfc987d80ab45d52cf881a738e07b497 /package/madwifi/patches/444-beacon_update_war.patch
parent7f6b21ae626cfdeef62fa1968c10daa919abb3f8 (diff)
downloadmtk-20170518-7c746b122fa8225305116d1f806c9ab7238335ab.zip
mtk-20170518-7c746b122fa8225305116d1f806c9ab7238335ab.tar.gz
mtk-20170518-7c746b122fa8225305116d1f806c9ab7238335ab.tar.bz2
add powersave fixes based on patches by Steven Luo (#4376)
SVN-Revision: 17312
Diffstat (limited to 'package/madwifi/patches/444-beacon_update_war.patch')
-rw-r--r--package/madwifi/patches/444-beacon_update_war.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/madwifi/patches/444-beacon_update_war.patch b/package/madwifi/patches/444-beacon_update_war.patch
new file mode 100644
index 0000000..6a3178a
--- /dev/null
+++ b/package/madwifi/patches/444-beacon_update_war.patch
@@ -0,0 +1,17 @@
+--- a/net80211/ieee80211_beacon.c
++++ b/net80211/ieee80211_beacon.c
+@@ -476,6 +476,14 @@ ieee80211_beacon_update(struct ieee80211
+ tie->tim_bitctl |= BITCTL_BUFD_MCAST;
+ else
+ tie->tim_bitctl &= ~BITCTL_BUFD_MCAST;
++
++ /* WAR: on some platforms, a race condition between beacon
++ * contents update and beacon transmission leads to beacon
++ * data not being updated in time. For most fields this is
++ * not critical, but for powersave it is. Work around this
++ * by always remapping the beacon when the TIM IE changes.
++ */
++ len_changed = 1;
+ }
+
+ /* Whenever we want to switch to a new channel, we need to follow the