summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
104fe78)
char buf[8192];
char wbuf[80];
char *v;
char buf[8192];
char wbuf[80];
char *v;
if (bcom_ioctl(skfd, ifname, WLC_GET_MAGIC, &val, sizeof(val)) < 0)
return;
if (bcom_ioctl(skfd, ifname, WLC_GET_MAGIC, &val, sizeof(val)) < 0)
return;
buf[3] = 0;
bcom_ioctl(skfd, ifname, WLC_SET_COUNTRY, buf, 4);
buf[3] = 0;
bcom_ioctl(skfd, ifname, WLC_SET_COUNTRY, buf, 4);
- /* Set up afterburner */
- val = ABO_AUTO;
- if (nvram_enabled(wl_var("afterburner")))
- val = ABO_ON;
- if (nvram_disabled(wl_var("afterburner")))
- val = ABO_OFF;
- bcom_set_val(skfd, ifname, "afterburner_override", &val, sizeof(val));
-
/* Set other options */
val = nvram_enabled(wl_var("lazywds"));
/* Set other options */
val = nvram_enabled(wl_var("lazywds"));
bcom_ioctl(skfd, ifname, WLC_SET_LAZYWDS, &val, sizeof(val));
if (v = nvram_get(wl_var("frag"))) {
bcom_ioctl(skfd, ifname, WLC_SET_LAZYWDS, &val, sizeof(val));
if (v = nvram_get(wl_var("frag"))) {
if (ether_atoe(wbuf, addr->ether_addr_octet)) {
wdslist->count++;
addr++;
if (ether_atoe(wbuf, addr->ether_addr_octet)) {
wdslist->count++;
addr++;
}
}
bcom_ioctl(skfd, ifname, WLC_SET_WDSLIST, buf, sizeof(buf));
}
}
}
bcom_ioctl(skfd, ifname, WLC_SET_WDSLIST, buf, sizeof(buf));
}
+ /* Set up afterburner, disabled it if WDS is enabled */
+ if (wds_enabled) {
+ val = ABO_OFF;
+ } else {
+ val = ABO_AUTO;
+ if (nvram_enabled(wl_var("afterburner")))
+ val = ABO_ON;
+ if (nvram_disabled(wl_var("afterburner")))
+ val = ABO_OFF;
+ }
+
+ bcom_set_val(skfd, ifname, "afterburner_override", &val, sizeof(val));
+
/* Set up G mode */
bcom_ioctl(skfd, ifname, WLC_GET_PHYTYPE, &val, sizeof(val));
if (val == 2) {
/* Set up G mode */
bcom_ioctl(skfd, ifname, WLC_GET_PHYTYPE, &val, sizeof(val));
if (val == 2) {