mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
mac80211: introduce TDLS channel switch ops
Implement the cfg80211 TDLS channel switch ops and introduce new mac80211 ones for low-level drivers. Verify low-level driver support for the new ops when using the relevant wiphy feature bit. Also verify the peer supports channel switching before passing the command down. Add a new STA flag to track the off-channel state with the TDLS peer and make sure to cancel the channel-switch if the peer STA is unexpectedly removed. Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com> Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
5383758443
commit
a7a6bdd067
10 changed files with 381 additions and 5 deletions
|
@ -74,7 +74,7 @@ static ssize_t sta_flags_read(struct file *file, char __user *userbuf,
|
|||
test_sta_flag(sta, WLAN_STA_##flg) ? #flg "\n" : ""
|
||||
|
||||
int res = scnprintf(buf, sizeof(buf),
|
||||
"%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
|
||||
"%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
|
||||
TEST(AUTH), TEST(ASSOC), TEST(PS_STA),
|
||||
TEST(PS_DRIVER), TEST(AUTHORIZED),
|
||||
TEST(SHORT_PREAMBLE),
|
||||
|
@ -83,10 +83,10 @@ static ssize_t sta_flags_read(struct file *file, char __user *userbuf,
|
|||
TEST(MFP), TEST(BLOCK_BA), TEST(PSPOLL),
|
||||
TEST(UAPSD), TEST(SP), TEST(TDLS_PEER),
|
||||
TEST(TDLS_PEER_AUTH), TEST(TDLS_INITIATOR),
|
||||
TEST(TDLS_CHAN_SWITCH), TEST(4ADDR_EVENT),
|
||||
TEST(INSERTED), TEST(RATE_CONTROL),
|
||||
TEST(TOFFSET_KNOWN), TEST(MPSP_OWNER),
|
||||
TEST(MPSP_RECIPIENT));
|
||||
TEST(TDLS_CHAN_SWITCH), TEST(TDLS_OFF_CHANNEL),
|
||||
TEST(4ADDR_EVENT), TEST(INSERTED),
|
||||
TEST(RATE_CONTROL), TEST(TOFFSET_KNOWN),
|
||||
TEST(MPSP_OWNER), TEST(MPSP_RECIPIENT));
|
||||
#undef TEST
|
||||
return simple_read_from_buffer(userbuf, count, ppos, buf, res);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue