staging: rtl8192e: Remove function rtllib_update_active_chan_map()
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Fri, 8 Dec 2023 18:19:32 +0000 (19:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Dec 2023 14:07:07 +0000 (15:07 +0100)
Remove function rtllib_update_active_chan_map() as "active_channel_map"
and "channel_map" have the same content.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/bae3ddeffe96e4ac7d929127ce3a72cd23fae8dd.1701989555.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_softmac.c

index d20970652432241a723d7823319541d17164629a..fdb0e76d20b094e2714006763691718af032c7fb 100644 (file)
@@ -394,12 +394,6 @@ static void rtllib_send_probe_requests(struct rtllib_device *ieee)
        }
 }
 
-static void rtllib_update_active_chan_map(struct rtllib_device *ieee)
-{
-       memcpy(ieee->active_channel_map, GET_DOT11D_INFO(ieee)->channel_map,
-              MAX_CHANNEL_NUMBER + 1);
-}
-
 /* this performs syncro scan blocking the caller until all channels
  * in the allowed channel map has been checked.
  */
@@ -408,8 +402,6 @@ static void rtllib_softmac_scan_syncro(struct rtllib_device *ieee)
        union iwreq_data wrqu;
        short ch = 0;
 
-       rtllib_update_active_chan_map(ieee);
-
        ieee->be_scan_inprogress = true;
 
        mutex_lock(&ieee->scan_mutex);
@@ -475,8 +467,6 @@ static void rtllib_softmac_scan_wq(void *data)
                                     struct rtllib_device, softmac_scan_wq);
        u8 last_channel = ieee->current_network.channel;
 
-       rtllib_update_active_chan_map(ieee);
-
        if (!ieee->ieee_up)
                return;
        if (rtllib_act_scanning(ieee, true))
@@ -2042,8 +2032,6 @@ void rtllib_start_protocol(struct rtllib_device *ieee)
        short ch = 0;
        int i = 0;
 
-       rtllib_update_active_chan_map(ieee);
-
        if (ieee->proto_started)
                return;