config_get txpower "$device" txpower
config_get frag "$device" frag
config_get rts "$device" rts
+ config_get hwmode "$device" hwmode
local vif_pre_up vif_post_up vif_do_up vif_txpower
local doth=0
local wmm=0
;;
esac
+ case "$hwmode" in
+ *b) hwmode=0;;
+ *g) hwmode=2;;
+ *gst) hwmode=4;;
+ *) hwmode=1;;
+ esac
+
for vif in $vifs; do
config_get vif_txpower "$vif" txpower
wlc ifname "$device" stdin <<EOF
$ifdown
+gmode ${hwmode:-1}
apsta $apsta
ap $ap
${mssid:+mssid $mssid}
.handler = wlc_maclist,
.desc = "MACs of associated stations"
},
+ {
+ .name = "gmode",
+ .param = INT,
+ .data.num = ((WLC_GET_GMODE << 16) | WLC_SET_GMODE),
+ .handler = wlc_ioctl,
+ .desc = "G Mode"
+ },
};
#define wlc_calls_size (sizeof(wlc_calls) / sizeof(struct wlc_call))