Skip to content

Commit ee8a75f

Browse files
committed
reenable nss for wds ap for duration test
git-svn-id: svn://svn.dd-wrt.com/DD-WRT@60101 52c4871e-980c-0410-b1e0-e73912ce01f8
1 parent 54a65eb commit ee8a75f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/router/services/sysinit/sysinit-ipq807x.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,7 @@ static int use_nss_11_4(int setcur)
455455
char base[32];
456456
sprintf(base, "wlan%d", count);
457457
sprintf(wifivifs, "wlan%d_vifs", count);
458-
if (nvram_nmatch("mesh", "wlan%d_mode", count) || nvram_nmatch("wdssta", "wlan%d_mode", count) ||
459-
nvram_nmatch("wdssta_mtik", "wlan%d_mode", count) && !nvram_nmatch("disabled", "wlan%d_net_mode", count))
458+
if (nvram_nmatch("mesh", "wlan%d_mode", count) && !nvram_nmatch("disabled", "wlan%d_net_mode", count))
460459
return 1;
461460
vifs = nvram_safe_get(wifivifs);
462461
if (vifs != NULL && *vifs) {
@@ -488,10 +487,10 @@ int nss_disabled(int setcur)
488487
char base[32];
489488
sprintf(base, "wlan%d", count);
490489
sprintf(wifivifs, "wlan%d_vifs", count);
491-
if ((nvram_nmatch("wdssta", "wlan%d_mode", count) || nvram_nmatch("wdssta_mtik", "wlan%d_mode", count) ||
492-
nvram_nmatch("wdsap", "wlan%d_mode", count) || nvram_nmatch("apup", "wlan%d_mode", count)) &&
490+
if ((nvram_nmatch("wdssta", "wlan%d_mode", count) || nvram_nmatch("wdssta_mtik", "wlan%d_mode", count)) &&
493491
!nvram_nmatch("disabled", "wlan%d_net_mode", count))
494492
return 1;
493+
#if 0
495494
vifs = nvram_safe_get(wifivifs);
496495
if (vifs != NULL && *vifs) {
497496
foreach(var, vifs, next) {
@@ -500,6 +499,7 @@ int nss_disabled(int setcur)
500499
return 1;
501500
}
502501
}
502+
#endif
503503
}
504504
nvram_set("nonss", "0");
505505
return 0;

0 commit comments

Comments
 (0)