Search Linux Wireless

Re: [PATCH 5/8] wifi: mt76: mt7996: use the correct vif link for scanning/roc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12.03.25 03:08, Ping-Ke Shih wrote:
@@ -839,11 +840,18 @@ void mt7996_mac_write_txwi(struct mt7996_dev *dev, __le32 *txwi,
        bool beacon = !!(changed & (BSS_CHANGED_BEACON |
                                    BSS_CHANGED_BEACON_ENABLED)) && (!inband_disc);

-       mvif = vif ? (struct mt76_vif_link *)vif->drv_priv : NULL;
-       if (mvif) {
-               omac_idx = mvif->omac_idx;
-               wmm_idx = mvif->wmm_idx;
-               band_idx = mvif->band_idx;
+       if (vif) {
+               mvif = (struct mt7996_vif *)vif->drv_priv;
+               if (wcid->offchannel)
+                       mlink = rcu_dereference(mvif->mt76.offchannel_link);

need a RCU read lock?

This path can only be reached from code that already holds the RCU lock.

- Felix




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux