mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
[net80211] Add uapsd option to ifconfig
Add an enable/disable option for controlling uapsd. I'm not yet controlling the individual AC configs or the service period.
This commit is contained in:
parent
8379e8db7a
commit
4cd568babf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362211
@ -1804,6 +1804,12 @@ set80211ldpc(const char *val, int d, int s, const struct afswtch *rafp)
|
||||
set80211(s, IEEE80211_IOC_LDPC, ldpc, 0, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
set80211uapsd(const char *val, int d, int s, const struct afswtch *rafp)
|
||||
{
|
||||
set80211(s, IEEE80211_IOC_UAPSD, d, 0, NULL);
|
||||
}
|
||||
|
||||
static
|
||||
DECL_CMD_FUNC(set80211ampdulimit, val, d)
|
||||
{
|
||||
@ -5288,6 +5294,16 @@ ieee80211_status(int s)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (get80211val(s, IEEE80211_IOC_UAPSD, &val) != -1) {
|
||||
switch (val) {
|
||||
case 0:
|
||||
LINE_CHECK("-uapsd");
|
||||
break;
|
||||
case 1:
|
||||
LINE_CHECK("uapsd");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (IEEE80211_IS_CHAN_VHT(c) || verbose) {
|
||||
@ -5872,6 +5888,8 @@ static struct cmd ieee80211_cmds[] = {
|
||||
DEF_CMD("-ldpctx", -1, set80211ldpc),
|
||||
DEF_CMD("ldpc", 3, set80211ldpc), /* NB: tx+rx */
|
||||
DEF_CMD("-ldpc", -3, set80211ldpc),
|
||||
DEF_CMD("uapsd", 1, set80211uapsd),
|
||||
DEF_CMD("-uapsd", 0, set80211uapsd),
|
||||
DEF_CMD("puren", 1, set80211puren),
|
||||
DEF_CMD("-puren", 0, set80211puren),
|
||||
DEF_CMD("doth", 1, set80211doth),
|
||||
|
Loading…
Reference in New Issue
Block a user