TDLS: Optimize TDLS External Control operation handling.
Commit "Initiate the TDLS setup only when externally configured"
defined an additional data structure to represent a force peer.
Optimize this implementation by defining a new field isForcedPeer,
signifying a forced peer, in TDLS peer data structure (hddTdlsPeer_t).
CRs-fixed: 537537
Change-Id: Ibf55499fc648868e04a2ec9f18f5dce94fe61108
diff --git a/CORE/HDD/inc/wlan_hdd_tdls.h b/CORE/HDD/inc/wlan_hdd_tdls.h
index 3738cf3..b0e7a8a 100644
--- a/CORE/HDD/inc/wlan_hdd_tdls.h
+++ b/CORE/HDD/inc/wlan_hdd_tdls.h
@@ -127,10 +127,6 @@
struct _hddTdlsPeer_t;
typedef struct {
- tSirMacAddr macAddr;
-} hddTdlsForcePeer_t;
-
-typedef struct {
struct list_head peer_list[256];
hdd_adapter_t *pAdapter;
#ifdef TDLS_USE_SEPARATE_DISCOVERY_TIMER
@@ -145,8 +141,6 @@
struct _hddTdlsPeer_t *curr_candidate;
struct work_struct implicit_setup;
v_U32_t magic;
- hddTdlsForcePeer_t forcePeer[HDD_MAX_NUM_TDLS_STA];
- tANI_U8 forcePeerCnt;
} tdlsCtx_t;
typedef struct _hddTdlsPeer_t {
@@ -168,6 +162,7 @@
tANI_U8 isBufSta;
vos_timer_t peerIdleTimer;
vos_timer_t initiatorWaitTimeoutTimer;
+ tANI_BOOLEAN isForcedPeer;
} hddTdlsPeer_t;
typedef struct {
@@ -278,8 +273,7 @@
hddTdlsPeer_t *curr_peer,
tANI_U16 reason);
-int wlan_hdd_tdls_add_force_peer(hdd_adapter_t *pAdapter, u8 *mac);
-
-int wlan_hdd_tdls_remove_force_peer(hdd_adapter_t *pAdapter, u8 *mac);
+int wlan_hdd_tdls_set_force_peer(hdd_adapter_t *pAdapter, u8 *mac,
+ tANI_BOOLEAN forcePeer);
#endif // __HDD_TDSL_H