Unverified Commit 6f584fed authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!13285 wifi: mac80211: do not pass a stopped vif to the driver in .get_txpower

parents 7ba23861 bc6fa5e4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2720,7 +2720,8 @@ static int ieee80211_get_tx_power(struct wiphy *wiphy,
	struct ieee80211_local *local = wiphy_priv(wiphy);
	struct ieee80211_sub_if_data *sdata = IEEE80211_WDEV_TO_SUB_IF(wdev);

	if (local->ops->get_txpower)
	if (local->ops->get_txpower &&
	    (sdata->flags & IEEE80211_SDATA_IN_DRIVER))
		return drv_get_txpower(local, sdata, dbm);

	if (!local->use_chanctx)