diff options
Diffstat (limited to 'sys/contrib/dev/mediatek/mt76/mt7615/main.c')
| -rw-r--r-- | sys/contrib/dev/mediatek/mt76/mt7615/main.c | 17 | 
1 files changed, 10 insertions, 7 deletions
| diff --git a/sys/contrib/dev/mediatek/mt76/mt7615/main.c b/sys/contrib/dev/mediatek/mt76/mt7615/main.c index 2e7b05eeef7a..15fe155ac3f3 100644 --- a/sys/contrib/dev/mediatek/mt76/mt7615/main.c +++ b/sys/contrib/dev/mediatek/mt76/mt7615/main.c @@ -97,7 +97,7 @@ static void mt7615_stop(struct ieee80211_hw *hw, bool suspend)  	struct mt7615_phy *phy = mt7615_hw_phy(hw);  	cancel_delayed_work_sync(&phy->mt76->mac_work); -	del_timer_sync(&phy->roc_timer); +	timer_delete_sync(&phy->roc_timer);  	cancel_work_sync(&phy->roc_work);  	cancel_delayed_work_sync(&dev->pm.ps_work); @@ -420,7 +420,7 @@ static int mt7615_set_sar_specs(struct ieee80211_hw *hw,  	return mt76_update_channel(phy->mt76);  } -static int mt7615_config(struct ieee80211_hw *hw, u32 changed) +static int mt7615_config(struct ieee80211_hw *hw, int radio_idx, u32 changed)  {  	struct mt7615_dev *dev = mt7615_hw_dev(hw);  	struct mt7615_phy *phy = mt7615_hw_phy(hw); @@ -784,7 +784,8 @@ static void mt7615_tx(struct ieee80211_hw *hw,  	mt76_connac_pm_queue_skb(hw, &dev->pm, wcid, skb);  } -static int mt7615_set_rts_threshold(struct ieee80211_hw *hw, u32 val) +static int mt7615_set_rts_threshold(struct ieee80211_hw *hw, int radio_idx, +				    u32 val)  {  	struct mt7615_dev *dev = mt7615_hw_dev(hw);  	struct mt7615_phy *phy = mt7615_hw_phy(hw); @@ -972,7 +973,8 @@ mt7615_offset_tsf(struct ieee80211_hw *hw, struct ieee80211_vif *vif,  }  static void -mt7615_set_coverage_class(struct ieee80211_hw *hw, s16 coverage_class) +mt7615_set_coverage_class(struct ieee80211_hw *hw, int radio_idx, +			  s16 coverage_class)  {  	struct mt7615_phy *phy = mt7615_hw_phy(hw);  	struct mt7615_dev *dev = phy->dev; @@ -984,7 +986,8 @@ mt7615_set_coverage_class(struct ieee80211_hw *hw, s16 coverage_class)  }  static int -mt7615_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) +mt7615_set_antenna(struct ieee80211_hw *hw, int radio_idx, +		   u32 tx_ant, u32 rx_ant)  {  	struct mt7615_dev *dev = mt7615_hw_dev(hw);  	struct mt7615_phy *phy = mt7615_hw_phy(hw); @@ -1043,7 +1046,7 @@ void mt7615_roc_work(struct work_struct *work)  void mt7615_roc_timer(struct timer_list *timer)  { -	struct mt7615_phy *phy = from_timer(phy, timer, roc_timer); +	struct mt7615_phy *phy = timer_container_of(phy, timer, roc_timer);  	ieee80211_queue_work(phy->mt76->hw, &phy->roc_work);  } @@ -1194,7 +1197,7 @@ static int mt7615_cancel_remain_on_channel(struct ieee80211_hw *hw,  	if (!test_and_clear_bit(MT76_STATE_ROC, &phy->mt76->state))  		return 0; -	del_timer_sync(&phy->roc_timer); +	timer_delete_sync(&phy->roc_timer);  	cancel_work_sync(&phy->roc_work);  	mt7615_mutex_acquire(phy->dev); | 
