From: Jes Sorensen Date: Wed, 21 May 2014 07:38:24 +0000 (+0200) Subject: staging: rtl8723au: Get rid of unused get_bsstype23a() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=41a5a460ed18a88b7efc8a7257416857daa76356;p=openwrt%2Fstaging%2Fblogic.git staging: rtl8723au: Get rid of unused get_bsstype23a() Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/core/rtw_wlan_util.c b/drivers/staging/rtl8723au/core/rtw_wlan_util.c index ce581a2c8f10..256385c2f382 100644 --- a/drivers/staging/rtl8723au/core/rtw_wlan_util.c +++ b/drivers/staging/rtl8723au/core/rtw_wlan_util.c @@ -394,15 +394,6 @@ void set_channel_bwmode23a(struct rtw_adapter *padapter, unsigned char channel, set_bwmode(padapter, bwmode, channel_offset); } -int get_bsstype23a(unsigned short capability) -{ - if (capability & BIT(0)) - return WIFI_FW_AP_STATE; - else if (capability & BIT(1)) - return WIFI_FW_ADHOC_STATE; - return 0; -} - inline u8 *get_my_bssid23a(struct wlan_bssid_ex *pnetwork) { return pnetwork->MacAddress; diff --git a/drivers/staging/rtl8723au/include/rtw_mlme_ext.h b/drivers/staging/rtl8723au/include/rtw_mlme_ext.h index 8d15297c3cb4..b5f3dbbeb157 100644 --- a/drivers/staging/rtl8723au/include/rtw_mlme_ext.h +++ b/drivers/staging/rtl8723au/include/rtw_mlme_ext.h @@ -502,7 +502,6 @@ int collect_bss_info23a(struct rtw_adapter *padapter, void update_network23a(struct wlan_bssid_ex *dst, struct wlan_bssid_ex *src, struct rtw_adapter *padapter, bool update_ie); -int get_bsstype23a(unsigned short capability); u8 *get_my_bssid23a(struct wlan_bssid_ex *pnetwork); u16 get_beacon_interval23a(struct wlan_bssid_ex *bss);