"ampdudensity -" is too subtle; use "NA" for any and accept it as a parameter

This commit is contained in:
Sam Leffler 2008-09-22 00:24:47 +00:00
parent b9b5f07d1c
commit 8db67fd293
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183260

View File

@ -1598,7 +1598,7 @@ DECL_CMD_FUNC(set80211ampdudensity, val, d)
{
int v;
if (isanyarg(val))
if (isanyarg(val) || strcasecmp(val, "na") == 0)
v = IEEE80211_HTCAP_MPDUDENSITY_NA;
else switch ((int)(atof(val)*4)) {
case 0:
@ -4048,7 +4048,7 @@ ieee80211_status(int s)
switch (val) {
case IEEE80211_HTCAP_MPDUDENSITY_NA:
if (verbose)
LINE_CHECK("ampdudensity -");
LINE_CHECK("ampdudensity NA");
break;
case IEEE80211_HTCAP_MPDUDENSITY_025:
LINE_CHECK("ampdudensity .25");