wifi: mac80211: advertise TWT requester only with HW support
authorHaim Dreyfuss <haim.dreyfuss@intel.com>
Sun, 11 Sep 2022 19:01:42 +0000 (22:01 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 7 Oct 2022 13:24:08 +0000 (15:24 +0200)
commit0143ea09b63d58ed3e19ffdfc444cc23d8d877b6
treeb556c21e9cca8f6c9ba760bbc0e4c66c960aa488
parent9a886df0c36928039fc760eb8129c1d7f4bc418e
wifi: mac80211: advertise TWT requester only with HW support

Currently, we rely only on the AP capability. If the AP supports
TWT responder we will advertise TWT requester even if the driver
or HW doesn't support it. Fix this by checking the HW capability.

Signed-off-by: Haim Dreyfuss <haim.dreyfuss@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c