diff options
author | Pavel Roskin <proski@gnu.org> | 2009-05-18 21:43:52 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-20 14:46:32 -0400 |
commit | e43e820c9cc5cc37ca8fc07d1f18cb29f13a2ce8 (patch) | |
tree | eb8ec439c3b1d69d67d902f9209c3504fe92c3e0 /net/wireless | |
parent | 9c8b3eddc0666255851942df8ec72cd91d22f280 (diff) |
cfg80211: fix compile error with CONFIG_CFG80211_DEBUGFS
If CONFIG_CFG80211_DEBUGFS is enabled and CONFIG_MAC80211_DEBUGFS is
not, compilation fails in net/wireless/debugfs.c:
net/wireless/debugfs.c: In function 'cfg80211_debugfs_drv_add':
net/wireless/debugfs.c:117: error: 'struct cfg80211_registered_device'
has no member named 'debugfs'
The debugfs filed is needed if and only if CONFIG_CFG80211_DEBUGFS is
enabled, so use that instead of CONFIG_MAC80211_DEBUGFS.
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/core.h b/net/wireless/core.h index 9511c2be83d8..ab512bcd8153 100644 --- a/net/wireless/core.h +++ b/net/wireless/core.h | |||
@@ -51,7 +51,7 @@ struct cfg80211_registered_device { | |||
51 | struct cfg80211_scan_request *scan_req; /* protected by RTNL */ | 51 | struct cfg80211_scan_request *scan_req; /* protected by RTNL */ |
52 | unsigned long suspend_at; | 52 | unsigned long suspend_at; |
53 | 53 | ||
54 | #ifdef CONFIG_MAC80211_DEBUGFS | 54 | #ifdef CONFIG_CFG80211_DEBUGFS |
55 | /* Debugfs entries */ | 55 | /* Debugfs entries */ |
56 | struct wiphy_debugfsdentries { | 56 | struct wiphy_debugfsdentries { |
57 | struct dentry *rts_threshold; | 57 | struct dentry *rts_threshold; |