mt76: Enable NL80211_EXT_FEATURE_CQM_RSSI_LIST
authorKristian Evensen <kristian.evensen@gmail.com>
Sat, 1 Sep 2018 08:38:34 +0000 (10:38 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 4 Sep 2018 08:14:02 +0000 (11:14 +0300)
commitb37b30afc2b39642e1a609d94466965642b1b2a7
treee56006fa6f32125d0875a5e50e8de6322155bc9d
parent01b302cd5874e98cb44835ec766597b1524fb7a8
mt76: Enable NL80211_EXT_FEATURE_CQM_RSSI_LIST

Enable the use of CQM_RSSI_LIST with mt76-devices. The change has been
tested with the mt7602, mt7603 and mt7621 PCI wifi-cards. I passed a
list of RSSI thresholds to the driver, and when disconnecting/connecting
the antenna(s) I got an event each time the RSSI went above/below a
threshold.

While I have not been able to test the change with any of the mt76
USB-devices (no access to a device), the RX RSSI management code is
shared between the two device types. Thus, CQM should also work with the
mt76 USB-devices.

Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt76/mac80211.c