aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches/389-autochannel.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-05-08 18:49:05 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-05-08 18:49:05 +0000
commit07b7495fbbda5ee9e683967f8b9a25b3e1212659 (patch)
tree1fe10f89a1e835b80b264ada110f504a757862d1 /package/madwifi/patches/389-autochannel.patch
parent9a61184c76885193fd58ed9a7017559039cec4bc (diff)
downloadupstream-07b7495fbbda5ee9e683967f8b9a25b3e1212659.tar.gz
upstream-07b7495fbbda5ee9e683967f8b9a25b3e1212659.tar.bz2
upstream-07b7495fbbda5ee9e683967f8b9a25b3e1212659.zip
madwifi: fix uninitialized variable
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15711 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/patches/389-autochannel.patch')
-rw-r--r--package/madwifi/patches/389-autochannel.patch5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/madwifi/patches/389-autochannel.patch b/package/madwifi/patches/389-autochannel.patch
index 8f7437a3f4..c818b89ef9 100644
--- a/package/madwifi/patches/389-autochannel.patch
+++ b/package/madwifi/patches/389-autochannel.patch
@@ -208,7 +208,7 @@
if (ss->ss_last > 0) {
--- a/net80211/ieee80211_scan.c
+++ b/net80211/ieee80211_scan.c
-@@ -1002,20 +1002,33 @@ ieee80211_scan_add_channels(struct ieee8
+@@ -1002,20 +1002,34 @@ ieee80211_scan_add_channels(struct ieee8
{
struct ieee80211_channel *c, *cg;
u_int modeflags;
@@ -218,6 +218,7 @@
KASSERT(mode < ARRAY_SIZE(chanflags), ("Unexpected mode %u", mode));
modeflags = chanflags[mode];
for (i = 0; i < ic->ic_nchans; i++) {
+ c = &ic->ic_channels[i];
+ if (c->ic_flags & (IEEE80211_CHAN_TURBO | IEEE80211_CHAN_STURBO))
+ continue;
+
@@ -225,7 +226,7 @@
+ break;
+ }
+ for (i = 0; i < ic->ic_nchans; i++) {
- c = &ic->ic_channels[i];
++ c = &ic->ic_channels[i];
if (c == NULL || isclr(ic->ic_chan_active, c->ic_ieee))
continue;
if (c->ic_scanflags & IEEE80211_NOSCAN_SET)