summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e1a9d00)
[ -n "$type" ] || break
devidx=$(($devidx + 1))
done
[ -n "$type" ] || break
devidx=$(($devidx + 1))
done
+ mode_11n=""
+ mode_band="g"
+ iw phy "$dev" info | grep -q 'HT cap' && mode_11n="n"
+ iw phy "$dev" info | grep -q '2412 MHz' || mode_band="a"
cat <<EOF
config wifi-device wifi$devidx
option type mac80211
option channel 5
option macaddr $(cat /sys/class/ieee80211/${dev}/macaddress)
cat <<EOF
config wifi-device wifi$devidx
option type mac80211
option channel 5
option macaddr $(cat /sys/class/ieee80211/${dev}/macaddress)
+ option hwmode 11${mode_11n}${mode_band}
# REMOVE THIS LINE TO ENABLE WIFI:
option disabled 1
# REMOVE THIS LINE TO ENABLE WIFI:
option disabled 1