mac80211: when looking for VHT, check 5GHz support as well
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 44906
This commit is contained in:
@@ -86,7 +86,8 @@ detect_mac80211() {
|
||||
iw phy "$dev" info | grep -q '2412 MHz' || { mode_band="a"; channel="36"; }
|
||||
|
||||
vht_cap=$(iw phy "$dev" info | grep -c 'VHT Capabilities')
|
||||
[ "$vht_cap" -gt 0 ] && {
|
||||
5ghz_cap=$(iw phy "$dev" info | grep -c "Band 2")
|
||||
[ "$vht_cap" -gt 0 -a "$5ghz_cap" -gt 0 ] && {
|
||||
mode_band="a";
|
||||
channel="36"
|
||||
htmode="VHT80"
|
||||
|
||||
Reference in New Issue
Block a user