diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-10-24 04:35:02 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-10-24 04:35:02 +0000 |
commit | 5ae7e31f6f37c24f9c87a4f8c5b9fbdfa9de55ae (patch) | |
tree | 43d8c81e9ccd5dc6bf22c888d20cbf172440f9d5 /package/madwifi/patches/130-chanswitch_beacon_fix_PR_1477.patch | |
parent | 2dbeb30374e86de3b6abfb2c8019d24292171f1f (diff) |
upgrade madwifi to r2756
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9422 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/patches/130-chanswitch_beacon_fix_PR_1477.patch')
-rw-r--r-- | package/madwifi/patches/130-chanswitch_beacon_fix_PR_1477.patch | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/package/madwifi/patches/130-chanswitch_beacon_fix_PR_1477.patch b/package/madwifi/patches/130-chanswitch_beacon_fix_PR_1477.patch deleted file mode 100644 index 6fa00890a..000000000 --- a/package/madwifi/patches/130-chanswitch_beacon_fix_PR_1477.patch +++ /dev/null @@ -1,42 +0,0 @@ -Signed-off-by: Andrew Lunn <andrew@lunn.ch> - -Index: madwifi-ng-r2568-20070710/net80211/ieee80211_beacon.c -=================================================================== ---- madwifi-ng-r2568-20070710.orig/net80211/ieee80211_beacon.c 2007-10-20 20:52:09.000000000 +0200 -+++ madwifi-ng-r2568-20070710/net80211/ieee80211_beacon.c 2007-10-20 20:52:31.000000000 +0200 -@@ -305,13 +305,17 @@ - */ - c = ieee80211_doth_findchan(vap, ic->ic_chanchange_chan); - if (c == NULL) { -+ /* -+ * The channel we have been requested to change to -+ * is not valid. Drop the channel switch annoucement -+ * from the beacon and don't change channel. -+ */ - IEEE80211_DPRINTF(vap, IEEE80211_MSG_DOTH, -- "%s: find channel failure\n", __func__); -- IEEE80211_UNLOCK_IRQ_EARLY(ic); -- return 0; -+ "%s: find channel failure\n", -+ __func__); -+ } else { -+ ic->ic_bsschan = c; - } -- ic->ic_bsschan = c; -- - skb_pull(skb, sizeof(struct ieee80211_frame)); - skb_trim(skb, 0); - frm = skb->data; -@@ -321,8 +325,10 @@ - vap->iv_flags &= ~IEEE80211_F_CHANSWITCH; - ic->ic_flags &= ~IEEE80211_F_CHANSWITCH; - -- /* NB: only for the first VAP to get here */ -- if (ic->ic_curchan != c) { -+ /* NB: only for the first VAP to get here, and we have a valid -+ * new channel to change to. -+ */ -+ if (c && ic->ic_curchan != c) { - ic->ic_curchan = c; - ic->ic_set_channel(ic); - } |