Message ID | 20200312074337.16198-1-yhchuang@realtek.com |
---|---|
State | New |
Headers | show |
Series | mac80211: driver can remain on channel if not using chan_ctx | expand |
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 944e86da5c65..fcb0e6e6b4dd 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -576,7 +576,7 @@ struct ieee80211_hw *ieee80211_alloc_hw_nm(size_t priv_data_len, WIPHY_FLAG_REPORTS_OBSS | WIPHY_FLAG_OFFCHAN_TX; - if (ops->remain_on_channel) + if (!use_chanctx || ops->remain_on_channel) wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL; wiphy->features |= NL80211_FEATURE_SK_TX_STATUS |