linux/drivers/net/wireless/realtek/rtlwifi
Johannes Berg 6cb5f3ea46 mac80211: populate debugfs only after cfg80211 init
When fixing the initialization race, we neglected to account for
the fact that debugfs is initialized in wiphy_register(), and
some debugfs things went missing (or rather were rerooted to the
global debugfs root).

Fix this by adding debugfs entries only after wiphy_register().
This requires some changes in the rate control code since it
currently adds debugfs at alloc time, which can no longer be
done after the reordering.

Reported-by: Jouni Malinen <j@w1.fi>
Reported-by: kernel test robot <rong.a.chen@intel.com>
Reported-by: Hauke Mehrtens <hauke@hauke-m.de>
Reported-by: Felix Fietkau <nbd@nbd.name>
Cc: stable@vger.kernel.org
Fixes: 52e04b4ce5 ("mac80211: fix race in ieee80211_register_hw()")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Sumit Garg <sumit.garg@linaro.org>
Link: https://lore.kernel.org/r/20200423111344.0e00d3346f12.Iadc76a03a55093d94391fc672e996a458702875d@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2020-04-24 11:30:13 +02:00
..
btcoexist rtlwifi: btcoex: fix spelling mistake "initilized" -> "initialized" 2020-01-26 17:47:54 +02:00
rtl8188ee rtlwifi: rtl8188ee: Fix regression due to commit d1d1a96bdb 2020-03-12 15:31:39 +02:00
rtl8192c rtlwifi: rtl8192ce: rtl8192c_com: Remove usage of private bit manipulation macros 2019-12-18 20:22:28 +02:00
rtl8192ce rtlwifi: rtl8192ce: Make functions static & rm sw.h 2020-01-26 17:39:37 +02:00
rtl8192cu rtlwifi: rtl8192cu: Remove sw.h header 2020-01-26 17:39:38 +02:00
rtl8192de rtlwifi: rtl8192de: use generic rtl_signal_scale_mapping 2019-12-18 21:06:53 +02:00
rtl8192ee rtlwifi: rtl8192ee: remove unused variables 2020-01-26 17:46:39 +02:00
rtl8192se rtlwifi: rtl8192se: Remove sw.h header 2020-01-26 17:39:41 +02:00
rtl8723ae rtlwifi: rtl8723ae: remove unused variables 2020-01-26 17:47:10 +02:00
rtl8723be rtlwifi: rtl8723be: Make functions static & rm sw.h 2020-01-26 17:39:44 +02:00
rtl8723com rtlwifi: set proper udelay within rf_serial_read 2019-11-20 09:41:30 +02:00
rtl8821ae rtlwifi: rtl8821ae: remove unused variables 2020-01-26 17:45:43 +02:00
base.c mac80211: simplify TX aggregation start 2019-10-04 13:58:13 +02:00
base.h rtlwifi: Remove dependence on special bit manipulation macros for common driver 2019-12-18 20:22:29 +02:00
cam.c rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
cam.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
core.c rtlwifi: Fix all blank line irregularities in main code files 2019-02-28 10:30:02 +02:00
core.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
debug.c rtlwifi: Fix file release memory leak 2019-09-06 17:11:36 +03:00
debug.h rtlwifi: Remove CamelCase variables from base code 2019-02-19 17:02:51 +02:00
efuse.c rtlwifi: Remove set but not used variables 'dataempty','hoffset' 2019-10-02 07:32:50 +03:00
efuse.h rtlwifi: Remove CamelCase variables from base code 2019-02-19 17:02:51 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pci.c rtlwifi: rtl_pci: Fix -Wcast-function-type 2019-12-18 20:54:44 +02:00
pci.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
ps.c rtlwifi: Remove dependence on special bit manipulation macros for common driver 2019-12-18 20:22:29 +02:00
ps.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
pwrseqcmd.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
rc.c mac80211: populate debugfs only after cfg80211 init 2020-04-24 11:30:13 +02:00
rc.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
regd.c rtlwifi: Remove unnecessary NULL check in rtl_regd_init 2019-10-24 08:47:07 +03:00
regd.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
stats.c rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
stats.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
usb.c rtlwifi: prevent memory leak in rtl_usb_probe 2019-10-01 12:20:29 +03:00
usb.h rtlwifi: Fix blank line errors in main header files 2019-02-28 10:30:01 +02:00
wifi.h wireless: realtek: Replace zero-length array with flexible-array member 2020-03-23 18:51:56 +02:00