mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 06:50:43 -04:00
staging: rtl8192e: Remove variable dot11d_info
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> Link: https://lore.kernel.org/r/2438971feb0c02c5c72776f57201a4011f249190.1701989555.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5c983f6187
commit
0c2d3ca560
@@ -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 *
|
||||
|
||||
Reference in New Issue
Block a user