diff options
Diffstat (limited to 'sys/contrib/dev/rtw88/mac80211.c')
| -rw-r--r-- | sys/contrib/dev/rtw88/mac80211.c | 11 | 
1 files changed, 8 insertions, 3 deletions
| diff --git a/sys/contrib/dev/rtw88/mac80211.c b/sys/contrib/dev/rtw88/mac80211.c index 719052b7c6bb..8d84f1a3bc18 100644 --- a/sys/contrib/dev/rtw88/mac80211.c +++ b/sys/contrib/dev/rtw88/mac80211.c @@ -71,7 +71,7 @@ static void rtw_ops_stop(struct ieee80211_hw *hw, bool suspend)  	mutex_unlock(&rtwdev->mutex);  } -static int rtw_ops_config(struct ieee80211_hw *hw, u32 changed) +static int rtw_ops_config(struct ieee80211_hw *hw, int radio_idx, u32 changed)  {  	struct rtw_dev *rtwdev = hw->priv;  	int ret = 0; @@ -411,6 +411,8 @@ static void rtw_ops_bss_info_changed(struct ieee80211_hw *hw,  			if (rtw_bf_support)  				rtw_bf_assoc(rtwdev, vif, conf); +			rtw_set_ampdu_factor(rtwdev, vif, conf); +  			rtw_fw_beacon_filter_config(rtwdev, true, vif);  		} else {  			rtw_leave_lps(rtwdev); @@ -721,7 +723,8 @@ static void rtw_ops_mgd_prepare_tx(struct ieee80211_hw *hw,  	mutex_unlock(&rtwdev->mutex);  } -static int rtw_ops_set_rts_threshold(struct ieee80211_hw *hw, u32 value) +static int rtw_ops_set_rts_threshold(struct ieee80211_hw *hw, int radio_idx, +				     u32 value)  {  	struct rtw_dev *rtwdev = hw->priv; @@ -810,6 +813,7 @@ static int rtw_ops_set_bitrate_mask(struct ieee80211_hw *hw,  }  static int rtw_ops_set_antenna(struct ieee80211_hw *hw, +			       int radio_idx,  			       u32 tx_antenna,  			       u32 rx_antenna)  { @@ -821,13 +825,14 @@ static int rtw_ops_set_antenna(struct ieee80211_hw *hw,  		return -EOPNOTSUPP;  	mutex_lock(&rtwdev->mutex); -	ret = chip->ops->set_antenna(rtwdev, tx_antenna, rx_antenna); +	ret = chip->ops->set_antenna(rtwdev, -1, tx_antenna, rx_antenna);  	mutex_unlock(&rtwdev->mutex);  	return ret;  }  static int rtw_ops_get_antenna(struct ieee80211_hw *hw, +			       int radio_idx,  			       u32 *tx_antenna,  			       u32 *rx_antenna)  { | 
