From d55ee1b76f9c359fc28f0d5e900d004a6e356890 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 7 Jul 2005 17:52:06 +0000 Subject: [PATCH] add plcphdr setting to wificonf SVN-Revision: 1374 --- openwrt/package/wificonf/wificonf.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/openwrt/package/wificonf/wificonf.c b/openwrt/package/wificonf/wificonf.c index 519596c197..acb5522cc8 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) -- 2.30.2