mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
mac80211/cfg80211: move wiphy specific debugfs entries to cfg80211
This moves the cfg80211 specific stuff to new cfg80211 debugfs entries. Non-mac80211 will also get these entries now. There were only 4 which we take: rts_threshold fragmentation_threshold short_retry_limit long_retry_limit Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
294196ab22
commit
1ac61302dc
8 changed files with 109 additions and 20 deletions
|
@ -17,6 +17,7 @@
|
|||
#include "nl80211.h"
|
||||
#include "core.h"
|
||||
#include "sysfs.h"
|
||||
#include "debugfs.h"
|
||||
|
||||
/* name for sysfs, %d is appended */
|
||||
#define PHY_NAME "phy"
|
||||
|
@ -375,6 +376,8 @@ int wiphy_register(struct wiphy *wiphy)
|
|||
nl80211_send_reg_change_event(&request);
|
||||
}
|
||||
|
||||
cfg80211_debugfs_drv_add(drv);
|
||||
|
||||
res = 0;
|
||||
out_unlock:
|
||||
mutex_unlock(&cfg80211_mutex);
|
||||
|
@ -405,6 +408,8 @@ void wiphy_unregister(struct wiphy *wiphy)
|
|||
/* unlock again before freeing */
|
||||
mutex_unlock(&drv->mtx);
|
||||
|
||||
cfg80211_debugfs_drv_del(drv);
|
||||
|
||||
/* If this device got a regulatory hint tell core its
|
||||
* free to listen now to a new shiny device regulatory hint */
|
||||
reg_device_remove(wiphy);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue