1: b62c723b2d2e ! 1: fb6589ed7f5f wifi: mt76: mt792x: tell mac80211 when a disconnect cancels its ROC @@ Commit message  A disconnect during a remain-on-channel (ROC) cancels the ROC in firmware without telling mac80211, which then waits for a ROC that is - already gone. Scans stall, and after an AP deauth the station does not + already gone. Scans fail, and after an AP deauth the station does not reconnect.  Tell mac80211 when the driver cancels a ROC that mac80211 started. @@ drivers/net/wireless/mediatek/mt76/mt7921/main.c: static int mt7921_cancel_remai  ## drivers/net/wireless/mediatek/mt76/mt7925/main.c ##  @@ drivers/net/wireless/mediatek/mt76/mt7925/main.c: void mt7925_roc_abort_sync(struct mt792x_dev *dev) - ieee80211_iterate_interfaces(mt76_hw(dev), - IEEE80211_IFACE_ITER_RESUME_ALL, - mt7925_roc_iter, (void *)phy); + cancel_work(&phy->roc_work); +  + mt7925_roc_abort_all(phy, phy->roc_token_id);  +  + if (phy->roc_notify)  + ieee80211_remain_on_channel_expired(mt76_hw(dev)); @@ drivers/net/wireless/mediatek/mt76/mt7925/main.c: void mt7925_roc_work(struct wo  - if (test_and_clear_bit(MT76_STATE_ROC, &phy->mt76->state))  + aborted = test_and_clear_bit(MT76_STATE_ROC, &phy->mt76->state);  + if (aborted) - err = mt7925_mcu_abort_roc(phy, mconf, phy->roc_token_id); + err = mt7925_mcu_abort_roc(phy, mconf->mt76.idx, + phy->roc_token_id); mt792x_mutex_release(phy->dev);   + if (aborted && phy->roc_notify)