From 38b0a09fbcab9a58bb0fcfb261981dc7aba25fa5 Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 19 Aug 2009 14:48:31 +0000 Subject: add powersave fixes based on patches by Steven Luo (#4376) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17312 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/madwifi/patches/444-beacon_update_war.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 package/madwifi/patches/444-beacon_update_war.patch (limited to 'package/madwifi/patches/444-beacon_update_war.patch') 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 000000000..6a3178a6d --- /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 -- cgit v1.2.3