Skip to contentSkip to conversation

staging: rtl8188eu: remove unused function get_bsstype()

PATCH New Michael Straube 1 participant 2 messages Jun 23, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 staging: rtl8188eu: remove unused function get_bsstype()

Function get_bsstype() is not used in the driver code, so remove it.

---
 drivers/staging/rtl8188eu/core/rtw_wlan_util.c   | 10 ----------
 drivers/staging/rtl8188eu/include/rtw_mlme_ext.h |  1 -
 2 files changed, 11 deletions(-)
drivers/staging/rtl8188eu/core/rtw_wlan_util.c +0 -10
index d1e99885c8f5..159c46b096cb 100644
@@ -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;
drivers/staging/rtl8188eu/include/rtw_mlme_ext.h +0 -1
index 1fb2349bd0a0..fa14b6fedf08 100644
@@ -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);
Signature · 1 line
2.22.0
#1 lore raw

PATCH 2/2 staging: rtl8188eu: remove unused function is_ap_in_wep()

Function is_ap_in_wep() is not used in the driver code, so remove it.

---
 .../staging/rtl8188eu/core/rtw_wlan_util.c    | 30 -------------------
 .../staging/rtl8188eu/include/rtw_mlme_ext.h  |  1 -
 2 files changed, 31 deletions(-)
drivers/staging/rtl8188eu/core/rtw_wlan_util.c +0 -30
index 159c46b096cb..7bfc5b7c2757 100644
@@ -1074,36 +1074,6 @@ unsigned int is_ap_in_tkip(struct adapter *padapter)
 	}
 }
 
-unsigned int is_ap_in_wep(struct adapter *padapter)
-{
-	u32 i;
-	struct ndis_802_11_var_ie *pIE;
-	struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
-	struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
-	struct wlan_bssid_ex *cur_network = &pmlmeinfo->network;
-
-	if (rtw_get_capability((struct wlan_bssid_ex *)cur_network) & WLAN_CAPABILITY_PRIVACY) {
-		for (i = sizeof(struct ndis_802_11_fixed_ie); i < pmlmeinfo->network.ie_length;) {
-			pIE = (struct ndis_802_11_var_ie *)(pmlmeinfo->network.ies + i);
-
-			switch (pIE->ElementID) {
-			case _VENDOR_SPECIFIC_IE_:
-				if (!memcmp(pIE->data, RTW_WPA_OUI, 4))
-					return false;
-				break;
-			case _RSN_IE_2_:
-				return false;
-			default:
-				break;
-			}
-			i += (pIE->Length + 2);
-		}
-		return true;
-	} else {
-		return false;
-	}
-}
-
 static int wifirate2_ratetbl_inx(unsigned char rate)
 {
 	rate = rate & 0x7f;
drivers/staging/rtl8188eu/include/rtw_mlme_ext.h +0 -1
index fa14b6fedf08..327f7d1bc20c 100644
@@ -525,7 +525,6 @@ void set_sta_rate(struct adapter *padapter, struct sta_info *psta);
 unsigned char get_highest_rate_idx(u32 mask);
 int support_short_GI(struct adapter *padapter, struct ieee80211_ht_cap *caps);
 unsigned int is_ap_in_tkip(struct adapter *padapter);
-unsigned int is_ap_in_wep(struct adapter *padapter);
 
 void report_join_res(struct adapter *padapter, int res);
 void report_survey_event(struct adapter *padapter,
Signature · 1 line
2.22.0