]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - net/mac80211/main.c
Merge tag 'mac80211-next-for-net-next-2020-04-25' of git://git.kernel.org/pub/scm...
[mirror_ubuntu-hirsute-kernel.git] / net / mac80211 / main.c
index dfcee5e462da073c0160a78f3ef94a9c76c06f8f..06c90d3606332bb1202a34d191b00a3842f1838e 100644 (file)
@@ -1188,8 +1188,6 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
        local->tx_headroom = max_t(unsigned int , local->hw.extra_tx_headroom,
                                   IEEE80211_TX_STATUS_HEADROOM);
 
-       debugfs_hw_add(local);
-
        /*
         * if the driver doesn't specify a max listen interval we
         * use 5 which should be a safe default
@@ -1278,6 +1276,9 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
        if (result < 0)
                goto fail_wiphy_register;
 
+       debugfs_hw_add(local);
+       rate_control_add_debugfs(local);
+
        rtnl_lock();
 
        /* add one default STA interface if supported */