File tree 1 file changed +7
-4
lines changed
drivers/net/wireless/mediatek/mt76 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -766,6 +766,9 @@ static void mt76u_status_worker(struct mt76_worker *w)
766
766
struct mt76_queue * q ;
767
767
int i ;
768
768
769
+ if (!test_bit (MT76_STATE_RUNNING , & dev -> phy .state ))
770
+ return ;
771
+
769
772
for (i = 0 ; i < IEEE80211_NUM_ACS ; i ++ ) {
770
773
q = dev -> phy .q_tx [i ];
771
774
if (!q )
@@ -785,11 +788,11 @@ static void mt76u_status_worker(struct mt76_worker *w)
785
788
wake_up (& dev -> tx_wait );
786
789
787
790
mt76_worker_schedule (& dev -> tx_worker );
788
-
789
- if (dev -> drv -> tx_status_data &&
790
- !test_and_set_bit (MT76_READING_STATS , & dev -> phy .state ))
791
- queue_work (dev -> wq , & dev -> usb .stat_work );
792
791
}
792
+
793
+ if (dev -> drv -> tx_status_data &&
794
+ !test_and_set_bit (MT76_READING_STATS , & dev -> phy .state ))
795
+ queue_work (dev -> wq , & dev -> usb .stat_work );
793
796
}
794
797
795
798
static void mt76u_tx_status_data (struct work_struct * work )
You can’t perform that action at this time.
0 commit comments