mt76: mt7915: take RCU read lock when calling ieee80211_bss_get_elem()
authorRyder Lee <ryder.lee@mediatek.com>
Wed, 14 Jul 2021 09:18:48 +0000 (17:18 +0800)
committerFelix Fietkau <nbd@nbd.name>
Wed, 20 Oct 2021 08:36:27 +0000 (10:36 +0200)
commitffbebe7649c32139e765e9c64838a7d0a28bbd24
tree228347eb538927970a5941e074eeb9f9c9206a26
parentd45dac0732a287fc371a23f257cce04e65627947
mt76: mt7915: take RCU read lock when calling ieee80211_bss_get_elem()

As ieee80211_bss_get_elem() derefences an RCU to return ie, both
the call to this function and any operation on this variable need
protection by the RCU read lock.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c