[3/5] staging: rtl8192e: Remove variable dot11d_info
Commit Message
Remove variable dot11d_info as it is unused. Remove unused struct
channel_list and empty struct rt_dot11d_info.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
---
drivers/staging/rtl8192e/dot11d.c | 5 -----
drivers/staging/rtl8192e/dot11d.h | 6 ------
drivers/staging/rtl8192e/rtllib.h | 1 -
drivers/staging/rtl8192e/rtllib_softmac.c | 6 ------
4 files changed, 18 deletions(-)
@@ -7,11 +7,6 @@
******************************************************************************/
#include "dot11d.h"
-struct channel_list {
- u8 channel[32];
- u8 len;
-};
-
void dot11d_channel_map(struct rtllib_device *ieee)
{
@@ -18,12 +18,6 @@
* 2 - valid (passive scan)
*/
-struct rt_dot11d_info {
-};
-
-#define GET_DOT11D_INFO(__ieee_dev) \
- ((struct rt_dot11d_info *)((__ieee_dev)->dot11d_info))
-
void dot11d_channel_map(struct rtllib_device *ieee);
#endif
@@ -1320,7 +1320,6 @@ struct rtllib_device {
u16 scan_watch_dog;
/* map of allowed channels. 0 is dummy */
- void *dot11d_info;
u8 active_channel_map[MAX_CHANNEL_NUMBER+1];
int rate; /* current rate */
@@ -2077,9 +2077,6 @@ int rtllib_softmac_init(struct rtllib_device *ieee)
ieee->link_state = MAC80211_NOLINK;
for (i = 0; i < 5; i++)
ieee->seq_ctrl[i] = 0;
- ieee->dot11d_info = kzalloc(sizeof(struct rt_dot11d_info), GFP_ATOMIC);
- if (!ieee->dot11d_info)
- return -ENOMEM;
ieee->link_detect_info.SlotIndex = 0;
ieee->link_detect_info.SlotNum = 2;
@@ -2153,9 +2150,6 @@ void rtllib_softmac_free(struct rtllib_device *ieee)
cancel_work_sync(&ieee->ips_leave_wq);
cancel_work_sync(&ieee->wx_sync_scan_wq);
cancel_work_sync(&ieee->ps_task);
-
- kfree(ieee->dot11d_info);
- ieee->dot11d_info = NULL;
}
static inline struct sk_buff *