add plcphdr setting to wificonf
authorFelix Fietkau <nbd@openwrt.org>
Thu, 7 Jul 2005 17:51:19 +0000 (17:51 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 7 Jul 2005 17:51:19 +0000 (17:51 +0000)
SVN-Revision: 1373

openwrt/package/wificonf/wificonf.c

index 519596c197532087f0434b67136146c278cb3244..acb5522cc862997c8075e857608cb1572185d5e1 100644 (file)
@@ -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)