diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-07-07 17:52:06 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-07-07 17:52:06 +0000 |
commit | 170475ff22724964a652dbbfab9759eed4e1d829 (patch) | |
tree | 667b313764cb382fb09eefc9eec355bb76f97c34 /openwrt | |
parent | ff51ce6f41f182890d6a4e4d58d54dca616864c8 (diff) | |
download | mtk-20170518-170475ff22724964a652dbbfab9759eed4e1d829.zip mtk-20170518-170475ff22724964a652dbbfab9759eed4e1d829.tar.gz mtk-20170518-170475ff22724964a652dbbfab9759eed4e1d829.tar.bz2 |
add plcphdr setting to wificonf
SVN-Revision: 1374
Diffstat (limited to 'openwrt')
-rw-r--r-- | openwrt/package/wificonf/wificonf.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/openwrt/package/wificonf/wificonf.c b/openwrt/package/wificonf/wificonf.c index 519596c..acb5522 100644 --- a/openwrt/package/wificonf/wificonf.c +++ b/openwrt/package/wificonf/wificonf.c @@ -290,7 +290,17 @@ void setup_bcom(int skfd, char *ifname) } bcom_ioctl(skfd, ifname, WLC_SET_GMODE_PROTECTION_CONTROL, &override, sizeof(control)); bcom_ioctl(skfd, ifname, WLC_SET_GMODE_PROTECTION_OVERRIDE, &override, sizeof(override)); + + if (val = 0) { + if (nvram_match(wl_var("plcphdr"), "long")) + val = WLC_PLCP_AUTO; + else + val = WLC_PLCP_SHORT; + + bcom_ioctl(skfd, ifname, WLC_SET_PLCPHDR, &val, sizeof(val)); + } } + } void set_wext_ssid(int skfd, char *ifname) |