summaryrefslogtreecommitdiff
path: root/package/madwifi/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-08-11 00:16:10 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-08-11 00:16:10 +0000
commitd36b18dca4c045f4a702fccd323d6cff6dffc236 (patch)
treea34581078cb404cfa2e7783edf3d7aa10fc72710 /package/madwifi/patches
parent8445b132ce24536f4364fb15a5f9f9cf9f5ea03a (diff)
downloadmtk-20170518-d36b18dca4c045f4a702fccd323d6cff6dffc236.zip
mtk-20170518-d36b18dca4c045f4a702fccd323d6cff6dffc236.tar.gz
mtk-20170518-d36b18dca4c045f4a702fccd323d6cff6dffc236.tar.bz2
madwifi: fix 'bad ratekbps' message when running adhoc in .11a
SVN-Revision: 8395
Diffstat (limited to 'package/madwifi/patches')
-rw-r--r--package/madwifi/patches/131-minstrel_rateidx.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/madwifi/patches/131-minstrel_rateidx.patch b/package/madwifi/patches/131-minstrel_rateidx.patch
new file mode 100644
index 0000000..2cec5a7
--- /dev/null
+++ b/package/madwifi/patches/131-minstrel_rateidx.patch
@@ -0,0 +1,17 @@
+Index: madwifi-ng-r2568-20070710/ath_rate/minstrel/minstrel.c
+===================================================================
+--- madwifi-ng-r2568-20070710.orig/ath_rate/minstrel/minstrel.c 2007-08-11 02:08:15.931956005 +0200
++++ madwifi-ng-r2568-20070710/ath_rate/minstrel/minstrel.c 2007-08-11 02:09:37.572608440 +0200
+@@ -675,6 +675,12 @@
+ }
+
+ for (x = 0; x < ni->ni_rates.rs_nrates; x++) {
++ if (sn->rates[x].rix == 0xff) {
++ DPRINTF(sc, "%s: %s ignore bogus rix at %d\n",
++ dev_info, __func__, x);
++ continue;
++ }
++
+ sn->rs_rateattempts [x] = 0;
+ sn->rs_thisprob [x] = 0;
+ sn->rs_ratesuccess [x] = 0;