@@ -124,8 +124,8 @@ static void mt7915_mac_sta_poll(struct mt7915_dev *dev)
124124 break ;
125125 }
126126 msta = list_first_entry (& sta_poll_list ,
127- struct mt7915_sta , poll_list );
128- list_del_init (& msta -> poll_list );
127+ struct mt7915_sta , wcid . poll_list );
128+ list_del_init (& msta -> wcid . poll_list );
129129 spin_unlock_bh (& dev -> mt76 .sta_poll_lock );
130130
131131 idx = msta -> wcid .idx ;
@@ -327,8 +327,8 @@ mt7915_mac_fill_rx(struct mt7915_dev *dev, struct sk_buff *skb,
327327 if (status -> wcid ) {
328328 msta = container_of (status -> wcid , struct mt7915_sta , wcid );
329329 spin_lock_bh (& dev -> mt76 .sta_poll_lock );
330- if (list_empty (& msta -> poll_list ))
331- list_add_tail (& msta -> poll_list ,
330+ if (list_empty (& msta -> wcid . poll_list ))
331+ list_add_tail (& msta -> wcid . poll_list ,
332332 & dev -> mt76 .sta_poll_list );
333333 spin_unlock_bh (& dev -> mt76 .sta_poll_lock );
334334 }
@@ -894,8 +894,8 @@ mt7915_txwi_free(struct mt7915_dev *dev, struct mt76_txwi_cache *t,
894894 sta = container_of ((void * )msta , struct ieee80211_sta ,
895895 drv_priv );
896896 spin_lock_bh (& mdev -> sta_poll_lock );
897- if (list_empty (& msta -> poll_list ))
898- list_add_tail (& msta -> poll_list ,
897+ if (list_empty (& msta -> wcid . poll_list ))
898+ list_add_tail (& msta -> wcid . poll_list ,
899899 & mdev -> sta_poll_list );
900900 spin_unlock_bh (& mdev -> sta_poll_lock );
901901 }
@@ -990,8 +990,8 @@ mt7915_mac_tx_free(struct mt7915_dev *dev, void *data, int len)
990990
991991 msta = container_of (wcid , struct mt7915_sta , wcid );
992992 spin_lock_bh (& mdev -> sta_poll_lock );
993- if (list_empty (& msta -> poll_list ))
994- list_add_tail (& msta -> poll_list ,
993+ if (list_empty (& msta -> wcid . poll_list ))
994+ list_add_tail (& msta -> wcid . poll_list ,
995995 & mdev -> sta_poll_list );
996996 spin_unlock_bh (& mdev -> sta_poll_lock );
997997 continue ;
@@ -1103,8 +1103,8 @@ static void mt7915_mac_add_txs(struct mt7915_dev *dev, void *data)
11031103 goto out ;
11041104
11051105 spin_lock_bh (& dev -> mt76 .sta_poll_lock );
1106- if (list_empty (& msta -> poll_list ))
1107- list_add_tail (& msta -> poll_list , & dev -> mt76 .sta_poll_list );
1106+ if (list_empty (& msta -> wcid . poll_list ))
1107+ list_add_tail (& msta -> wcid . poll_list , & dev -> mt76 .sta_poll_list );
11081108 spin_unlock_bh (& dev -> mt76 .sta_poll_lock );
11091109
11101110out :
0 commit comments