staging: rtl8192e: Remove undefined function set_security
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sat, 13 May 2023 18:09:17 +0000 (20:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 May 2023 09:11:12 +0000 (10:11 +0100)
Remove function set_security as it is not defined.

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

index 7be02cfe56feac7beab6273449ccbf2a6bb7a517..cc1ce106678c9582d702041b73782705d10c70ac 100644 (file)
@@ -1651,8 +1651,6 @@ struct rtllib_device {
        };
 
        /* Callback functions */
-       void (*set_security)(struct net_device *dev,
-                            struct rtllib_security *sec);
 
        /* Softmac-generated frames (management) are TXed via this
         * callback if the flag IEEE_SOFTMAC_SINGLE_QUEUE is
index 1876ff75c31cfe14e54ab1eadfd8744076b3fcd7..82b537da8b21de360e5660e0e259561c3d03bac1 100644 (file)
@@ -416,10 +416,6 @@ int rtllib_wx_set_encode(struct rtllib_device *ieee,
         */
        sec.flags |= SEC_LEVEL;
        sec.level = SEC_LEVEL_1; /* 40 and 104 bit WEP */
-
-       if (ieee->set_security)
-               ieee->set_security(dev, &sec);
-
        return 0;
 }
 EXPORT_SYMBOL(rtllib_wx_set_encode);
@@ -611,8 +607,6 @@ int rtllib_wx_set_encode_ext(struct rtllib_device *ieee,
                        sec.flags &= ~SEC_LEVEL;
        }
 done:
-       if (ieee->set_security)
-               ieee->set_security(ieee->dev, &sec);
        return ret;
 }
 EXPORT_SYMBOL(rtllib_wx_set_encode_ext);