+ config_get device "$vif" device
+ config_get channel "$device" channel
+ config_get hwmode "$device" hwmode
+ config_get wpa_group_rekey "$vif" wpa_group_rekey
+ config_get ieee80211d "$vif" ieee80211d
+ case "$hwmode" in
+ bg) hwmode=g;;
+ esac
+ config_get country "$device" country
+ [ "$channel" = auto ] && channel=
+ [ -n "$channel" -a -z "$hwmode" ] && wifi_fixup_hwmode "$device"
+ [ -n "$hwmode" ] && {
+ config_get hwmode_11n "$device" hwmode_11n
+ [ -n "$hwmode_11n" ] && {
+ hwmode="$hwmode_11n"
+ config_get ht_capab "$device" ht_capab
+ }
+ }