@@ -455,8 +455,7 @@ static int use_nss_11_4(int setcur)
455
455
char base [32 ];
456
456
sprintf (base , "wlan%d" , count );
457
457
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 ))
460
459
return 1 ;
461
460
vifs = nvram_safe_get (wifivifs );
462
461
if (vifs != NULL && * vifs ) {
@@ -488,10 +487,10 @@ int nss_disabled(int setcur)
488
487
char base [32 ];
489
488
sprintf (base , "wlan%d" , count );
490
489
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 )) &&
493
491
!nvram_nmatch ("disabled" , "wlan%d_net_mode" , count ))
494
492
return 1 ;
493
+ #if 0
495
494
vifs = nvram_safe_get (wifivifs );
496
495
if (vifs != NULL && * vifs ) {
497
496
foreach (var , vifs , next ) {
@@ -500,6 +499,7 @@ int nss_disabled(int setcur)
500
499
return 1 ;
501
500
}
502
501
}
502
+ #endif
503
503
}
504
504
nvram_set ("nonss" , "0" );
505
505
return 0 ;
0 commit comments