Browse Source

qcacld-3.0: Declare hdd_roam_deregister_tdlssta as static

Currently the function hdd_roam_deregister_tdlssta is not declared
as static when the macro FEATURE_WLAN_TDLS is not defined. This can
cause a multiple definition error.

Declare the function as static so as to avoid this build time error.

Change-Id: Id85f8bed57a7bdfbeac5722ea687066f7f74a50f
CRs-Fixed: 2511744
Sourav Mohapatra 5 years ago
parent
commit
ebcbae20cc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/hdd/inc/wlan_hdd_assoc.h

+ 1 - 0
core/hdd/inc/wlan_hdd_assoc.h

@@ -351,6 +351,7 @@ QDF_STATUS hdd_roam_deregister_tdlssta(struct hdd_adapter *adapter,
 				       struct qdf_mac_addr *peer_mac);
 
 #else
+static
 inline QDF_STATUS hdd_roam_deregister_tdlssta(struct hdd_adapter *adapter,
 					      struct qdf_mac_addr *peer_mac)
 {