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 | 01028a16a796534af635d46dd4336eb765d4e486 (patch) | |
tree | 57c40baf68419abdec30875bdeb4a3ff973cf2d1 /package | |
parent | 3f19ea9256de64bf64b62883c72d1fb03a98033d (diff) | |
download | upstream-01028a16a796534af635d46dd4336eb765d4e486.tar.gz upstream-01028a16a796534af635d46dd4336eb765d4e486.tar.bz2 upstream-01028a16a796534af635d46dd4336eb765d4e486.zip |
add plcphdr setting to wificonf
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1374 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/wificonf/wificonf.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/package/wificonf/wificonf.c b/package/wificonf/wificonf.c index 519596c197..acb5522cc8 100644 --- a/package/wificonf/wificonf.c +++ b/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) |