]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mt76x0: pci: enable VHT rates in IBSS mode
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Tue, 6 Nov 2018 22:54:49 +0000 (23:54 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 30 Nov 2018 11:29:25 +0000 (12:29 +0100)
Enable VHT tx rates in ad-hoc mode for mt76x0e driver.

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x02_util.c
drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c

index a52db63c3c688ffe6650a866a59dd6231c1672e4..48f2f5382b5730decf0236aceece5ab5b935c224 100644 (file)
@@ -105,6 +105,8 @@ void mt76x02_init_device(struct mt76x02_dev *dev)
                        BIT(NL80211_IFTYPE_MESH_POINT) |
 #endif
                        BIT(NL80211_IFTYPE_ADHOC);
+
+               wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_VHT_IBSS);
        }
 
        hw->sta_data_size = sizeof(struct mt76x02_sta);
index 80b4e11ea28ecb978042cd9d5b25d9430e737671..843dda261cf870b87f138cfe74a95e7fe8e3ef72 100644 (file)
@@ -388,8 +388,6 @@ static void mt76x2_led_set_brightness(struct led_classdev *led_cdev,
 
 int mt76x2_register_device(struct mt76x02_dev *dev)
 {
-       struct ieee80211_hw *hw = mt76_hw(dev);
-       struct wiphy *wiphy = hw->wiphy;
        int ret;
 
        INIT_DELAYED_WORK(&dev->cal_work, mt76x2_phy_calibrate);
@@ -401,7 +399,6 @@ int mt76x2_register_device(struct mt76x02_dev *dev)
                return ret;
 
        mt76x02_config_mac_addr_list(dev);
-       wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_VHT_IBSS);
 
        /* init led callbacks */
        dev->mt76.led_cdev.brightness_set = mt76x2_led_set_brightness;