staging: rtl8188eu: remove unused function get_bsstype()
authorMichael Straube <straube.linux@gmail.com>
Sun, 23 Jun 2019 17:59:56 +0000 (19:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Jun 2019 01:50:51 +0000 (09:50 +0800)
Function get_bsstype() is not used in the driver code, so remove it.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_wlan_util.c
drivers/staging/rtl8188eu/include/rtw_mlme_ext.h

index d1e99885c8f5484fbf0eec611539b66704e9f3be..159c46b096cbda2b79a32db4fec9c74c4ba85ce0 100644 (file)
@@ -346,16 +346,6 @@ void set_channel_bwmode(struct adapter *padapter, unsigned char channel, unsigne
        SetBWMode(padapter, bwmode, channel_offset);
 }
 
-int get_bsstype(unsigned short capability)
-{
-       if (capability & BIT(0))
-               return WIFI_FW_AP_STATE;
-       else if (capability & BIT(1))
-               return WIFI_FW_ADHOC_STATE;
-       else
-               return 0;
-}
-
 u16 get_beacon_interval(struct wlan_bssid_ex *bss)
 {
        __le16 val;
index 1fb2349bd0a0ffebbf7c089a23d9d334f8498acf..fa14b6fedf08cfad9f341404027a0b7473a63d5a 100644 (file)
@@ -485,7 +485,6 @@ void flush_all_cam_entry(struct adapter *padapter);
 void update_network(struct wlan_bssid_ex *dst, struct wlan_bssid_ex *src,
                    struct adapter *adapter, bool update_ie);
 
-int get_bsstype(unsigned short capability);
 u16 get_beacon_interval(struct wlan_bssid_ex *bss);
 
 int is_client_associated_to_ap(struct adapter *padapter);