[PATCH 0/5] staging: rtl8192e: Remove c files dot11d.c/.h

From: Philipp Hortmann
Date: Fri Dec 08 2023 - 13:19:31 EST


Remove function rtllib_update_active_chan_map() as "active_channel_map"
and "channel_map" have the same content. Content of "channel_map" does
not change.

Tested with rtl8192e (WLL6130-D99) in Mode n (12.5 MB/s)
Transferred this patch over wlan connection of rtl8192e.

Used the following code for testing:
struct rt_dot11d_info *ph = priv->rtllib->dot11d_info;
for (i = 1; i <= 13; i++){
printk("priv->rtllib->active_channel_map) [%d] %d\n", i, priv->rtllib->active_channel_map[i]);
printk("priv->rtllib->dot11d_info->chan_map[%d] %d\n", i, ph->channel_map[i]);
}
Log:
[ 1141.288386] priv->rtllib->active_channel_map) [1] 1
[ 1141.288393] priv->rtllib->dot11d_info->chan_map[1] 1
[ 1141.288395] priv->rtllib->active_channel_map) [2] 1
[ 1141.288396] priv->rtllib->dot11d_info->chan_map[2] 1
...
[ 1141.288426] priv->rtllib->active_channel_map) [11] 1
[ 1141.288428] priv->rtllib->dot11d_info->chan_map[11] 1
[ 1141.288429] priv->rtllib->active_channel_map) [12] 2
[ 1141.288431] priv->rtllib->dot11d_info->chan_map[12] 2
[ 1141.288433] priv->rtllib->active_channel_map) [13] 2
[ 1141.288434] priv->rtllib->dot11d_info->chan_map[13] 2

Philipp Hortmann (5):
staging: rtl8192e: Remove function rtllib_update_active_chan_map()
staging: rtl8192e: Remove variable channel_map
staging: rtl8192e: Remove variable dot11d_info
staging: rtl8192e: Remove function dot11d_channel_map()
staging: rtl8192e: Remove files dot11d.c and dot11d.h

drivers/staging/rtl8192e/Makefile | 1 -
drivers/staging/rtl8192e/dot11d.c | 29 -------------------
drivers/staging/rtl8192e/dot11d.h | 30 --------------------
drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 1 -
drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 2 --
drivers/staging/rtl8192e/rtllib.h | 1 -
drivers/staging/rtl8192e/rtllib_rx.c | 1 -
drivers/staging/rtl8192e/rtllib_softmac.c | 19 -------------
drivers/staging/rtl8192e/rtllib_softmac_wx.c | 1 -
9 files changed, 85 deletions(-)
delete mode 100644 drivers/staging/rtl8192e/dot11d.c
delete mode 100644 drivers/staging/rtl8192e/dot11d.h

--
2.43.0