move hw feature flags to common code

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2015-12-08 10:22:13 +01:00
parent 89c32b4b58
commit 1dcd197ae3
2 changed files with 8 additions and 8 deletions
+8
View File
@@ -205,6 +205,14 @@ int mt76_register_device(struct mt76_dev *dev, int bands, bool vht,
wiphy->features |= NL80211_FEATURE_ACTIVE_MONITOR;
ieee80211_hw_set(hw, SIGNAL_DBM);
ieee80211_hw_set(hw, PS_NULLFUNC_STACK);
ieee80211_hw_set(hw, SUPPORTS_HT_CCK_RATES);
ieee80211_hw_set(hw, HOST_BROADCAST_PS_BUFFERING);
ieee80211_hw_set(hw, AMPDU_AGGREGATION);
ieee80211_hw_set(hw, SUPPORTS_RC_TABLE);
ieee80211_hw_set(hw, SUPPORT_FAST_XMIT);
if (bands & BIT(IEEE80211_BAND_2GHZ)) {
ret = mt76_init_sband_2g(dev, rates, n_rates);
if (ret)
-8
View File
@@ -632,14 +632,6 @@ int mt76x2_register_device(struct mt76x2_dev *dev)
hw->max_rate_tries = 1;
hw->extra_tx_headroom = 2;
ieee80211_hw_set(hw, SIGNAL_DBM);
ieee80211_hw_set(hw, PS_NULLFUNC_STACK);
ieee80211_hw_set(hw, SUPPORTS_HT_CCK_RATES);
ieee80211_hw_set(hw, HOST_BROADCAST_PS_BUFFERING);
ieee80211_hw_set(hw, AMPDU_AGGREGATION);
ieee80211_hw_set(hw, SUPPORTS_RC_TABLE);
ieee80211_hw_set(hw, SUPPORT_FAST_XMIT);
hw->sta_data_size = sizeof(struct mt76x2_sta);
hw->vif_data_size = sizeof(struct mt76x2_vif);
hw->txq_data_size = sizeof(struct mt76x2_txq);