cat <<EOF
config wifi-device $dev
option type acx
cat <<EOF
config wifi-device $dev
option type acx
# REMOVE THIS LINE TO ENABLE WIFI:
option disabled 1
# REMOVE THIS LINE TO ENABLE WIFI:
option disabled 1
cat <<EOF
config wifi-device wl${i}
option type broadcom
cat <<EOF
config wifi-device wl${i}
option type broadcom
# REMOVE THIS LINE TO ENABLE WIFI:
option disabled 1
# REMOVE THIS LINE TO ENABLE WIFI:
option disabled 1
mode_11n=""
mode_band="g"
mode_11n=""
mode_band="g"
ht_cap=0
for cap in $(iw phy "$dev" info | grep 'Capabilities:' | cut -d: -f2); do
ht_cap="$(($ht_cap | $cap))"
ht_cap=0
for cap in $(iw phy "$dev" info | grep 'Capabilities:' | cut -d: -f2); do
ht_cap="$(($ht_cap | $cap))"