Parcourir la source

mac80211: reset ht_capab for each device

... or else "option htmode" is added multiple times to
the second and following device sections.

Signed-off-by: Reiner Herrmann <[email protected]>

SVN-Revision: 40711
Felix Fietkau il y a 11 ans
Parent
commit
1268274b5d
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      package/kernel/mac80211/files/lib/wifi/mac80211.sh

+ 1 - 0
package/kernel/mac80211/files/lib/wifi/mac80211.sh

@@ -69,6 +69,7 @@ detect_mac80211() {
 		mode_band="g"
 		channel="11"
 		htmode=""
+		ht_capab=""
 
 		iw phy "$dev" info | grep -q 'Capabilities:' && htmode=HT20
 		iw phy "$dev" info | grep -q '2412 MHz' || { mode_band="a"; channel="36"; }