staging: rtl8192e: Remove unused function rtllib_get_beacon_()
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Fri, 24 Nov 2023 21:31:08 +0000 (22:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Nov 2023 10:27:49 +0000 (10:27 +0000)
Remove unused function rtllib_get_beacon_().

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

index 4e33a453f86e3675c74bf3784a68a57d56580b0f..8c7ad56d4402294936a9d91404f1f12c27afd612 100644 (file)
@@ -2130,25 +2130,6 @@ exit:
        mutex_unlock(&ieee->wx_mutex);
 }
 
-static struct sk_buff *rtllib_get_beacon_(struct rtllib_device *ieee)
-{
-       static const u8 broadcast_addr[] = {
-               0xff, 0xff, 0xff, 0xff, 0xff, 0xff
-       };
-       struct sk_buff *skb;
-       struct rtllib_probe_response *b;
-
-       skb = rtllib_probe_resp(ieee, broadcast_addr);
-
-       if (!skb)
-               return NULL;
-
-       b = (struct rtllib_probe_response *)skb->data;
-       b->header.frame_control = cpu_to_le16(IEEE80211_STYPE_BEACON);
-
-       return skb;
-}
-
 void rtllib_softmac_stop_protocol(struct rtllib_device *ieee)
 {
        rtllib_stop_scan_syncro(ieee);