Bläddra i källkod

qcacld-3.0: Make wlan_hdd_cfg80211_set_key_wapi static

The function wlan_hdd_cfg80211_set_key_wapi is currently set as public
which is not required as it is called from the same file only.

Make the function static.

Change-Id: I8188cf02ec06b7212607b2aba759b47ec5cc58ac
CRs-Fixed: 2247639
Sourav Mohapatra 7 år sedan
förälder
incheckning
d21fc6b148
2 ändrade filer med 5 tillägg och 10 borttagningar
  1. 5 4
      core/hdd/src/wlan_hdd_cfg80211.c
  2. 0 6
      core/hdd/src/wlan_hdd_cfg80211.h

+ 5 - 4
core/hdd/src/wlan_hdd_cfg80211.c

@@ -15814,10 +15814,11 @@ void wlan_hdd_cfg80211_deregister_frames(struct hdd_adapter *adapter)
 }
 
 #ifdef FEATURE_WLAN_WAPI
-void wlan_hdd_cfg80211_set_key_wapi(struct hdd_adapter *adapter,
-				    uint8_t key_index,
-				    const uint8_t *mac_addr, const uint8_t *key,
-				    int key_Len)
+static void wlan_hdd_cfg80211_set_key_wapi(struct hdd_adapter *adapter,
+					   uint8_t key_index,
+					   const uint8_t *mac_addr,
+					   const uint8_t *key,
+					   int key_Len)
 {
 	tCsrRoamSetKey setKey;
 	bool isConnected = true;

+ 0 - 6
core/hdd/src/wlan_hdd_cfg80211.h

@@ -256,12 +256,6 @@ wlan_hdd_cfg80211_roam_metrics_handover(struct hdd_adapter *adapter,
 					struct csr_roam_info *roam_info);
 #endif
 
-#ifdef FEATURE_WLAN_WAPI
-void wlan_hdd_cfg80211_set_key_wapi(struct hdd_adapter *adapter,
-				    uint8_t key_index,
-				    const uint8_t *mac_addr, const uint8_t *key,
-				    int key_Len);
-#endif
 struct hdd_context *hdd_cfg80211_wiphy_alloc(int priv_size);
 
 int wlan_hdd_cfg80211_tdls_scan(struct wiphy *wiphy,