"ampdudensity -" is too subtle; use "NA" for any and accept it as a parameter
This commit is contained in:
parent
b9b5f07d1c
commit
8db67fd293
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183260
@ -1598,7 +1598,7 @@ DECL_CMD_FUNC(set80211ampdudensity, val, d)
|
|||||||
{
|
{
|
||||||
int v;
|
int v;
|
||||||
|
|
||||||
if (isanyarg(val))
|
if (isanyarg(val) || strcasecmp(val, "na") == 0)
|
||||||
v = IEEE80211_HTCAP_MPDUDENSITY_NA;
|
v = IEEE80211_HTCAP_MPDUDENSITY_NA;
|
||||||
else switch ((int)(atof(val)*4)) {
|
else switch ((int)(atof(val)*4)) {
|
||||||
case 0:
|
case 0:
|
||||||
@ -4048,7 +4048,7 @@ ieee80211_status(int s)
|
|||||||
switch (val) {
|
switch (val) {
|
||||||
case IEEE80211_HTCAP_MPDUDENSITY_NA:
|
case IEEE80211_HTCAP_MPDUDENSITY_NA:
|
||||||
if (verbose)
|
if (verbose)
|
||||||
LINE_CHECK("ampdudensity -");
|
LINE_CHECK("ampdudensity NA");
|
||||||
break;
|
break;
|
||||||
case IEEE80211_HTCAP_MPDUDENSITY_025:
|
case IEEE80211_HTCAP_MPDUDENSITY_025:
|
||||||
LINE_CHECK("ampdudensity .25");
|
LINE_CHECK("ampdudensity .25");
|
||||||
|
Loading…
Reference in New Issue
Block a user