Parcourir la source

qcacld-3.0: Remove obsolete P2P macros

As a result of P2P componentization a variety of P2P-related macros
are no longer used, so remove them.

Change-Id: I693c4f11575968ce0aae9f3ecac9e008b0dbf5b9
CRs-Fixed: 2237726
Jeff Johnson il y a 7 ans
Parent
commit
9421434405
2 fichiers modifiés avec 1 ajouts et 32 suppressions
  1. 1 29
      core/hdd/inc/wlan_hdd_p2p.h
  2. 0 3
      core/mac/inc/ani_global.h

+ 1 - 29
core/hdd/inc/wlan_hdd_p2p.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -24,45 +24,17 @@
  *
  * Linux HDD P2P include file
  */
-#define ACTION_FRAME_TX_TIMEOUT 2000
-#define WAIT_CANCEL_REM_CHAN    1000
-#define WAIT_REM_CHAN_READY     1000
-#define WAIT_CHANGE_CHANNEL_FOR_OFFCHANNEL_TX 3000
-#define COMPLETE_EVENT_PROPOGATE_TIME 10
-
-#ifdef QCA_WIFI_3_0_EMU
-#define ACTION_FRAME_DEFAULT_WAIT 500
-#else
-#define ACTION_FRAME_DEFAULT_WAIT 200
-#endif
 
 #define WLAN_HDD_GET_TYPE_FRM_FC(__fc__)         (((__fc__) & 0x0F) >> 2)
 #define WLAN_HDD_GET_SUBTYPE_FRM_FC(__fc__)      (((__fc__) & 0xF0) >> 4)
 #define WLAN_HDD_80211_FRM_DA_OFFSET             4
-#define P2P_WILDCARD_SSID_LEN                    7
-#define P2P_WILDCARD_SSID                        "DIRECT-"
 #define WLAN_HDD_80211_PEER_ADDR_OFFSET (WLAN_HDD_80211_FRM_DA_OFFSET + \
 					 MAC_ADDR_LEN)
 
-
-#ifdef QCA_WIFI_3_0_EMU
-#define P2P_ROC_DURATION_MULTIPLIER_GO_PRESENT   2
-#define P2P_ROC_DURATION_MULTIPLIER_GO_ABSENT    3
-#else
-#define P2P_ROC_DURATION_MULTIPLIER_GO_PRESENT   2
-#define P2P_ROC_DURATION_MULTIPLIER_GO_ABSENT    5
-#endif
-
-#define HDD_P2P_MAX_ROC_DURATION 1000
-#define MAX_ROC_REQ_QUEUE_ENTRY 10
-
 #define P2P_POWER_SAVE_TYPE_OPPORTUNISTIC        (1 << 0)
 #define P2P_POWER_SAVE_TYPE_PERIODIC_NOA         (1 << 1)
 #define P2P_POWER_SAVE_TYPE_SINGLE_NOA           (1 << 2)
 
-#define ACTION_FRAME_RSP_WAIT 500
-#define ACTION_FRAME_ACK_WAIT 300
-
 struct p2p_app_set_ps {
 	uint8_t opp_ps;
 	uint32_t ctWindow;

+ 0 - 3
core/mac/inc/ani_global.h

@@ -71,9 +71,6 @@
 /* max number of legacy bssid we can store during scan on one channel */
 #define MAX_NUM_LEGACY_BSSID_PER_CHANNEL    10
 
-#define P2P_WILDCARD_SSID "DIRECT-"     /* TODO Put it in proper place; */
-#define P2P_WILDCARD_SSID_LEN 7
-
 #ifdef WLAN_FEATURE_CONCURRENT_P2P
 #define MAX_NO_OF_P2P_SESSIONS  5
 #endif /* WLAN_FEATURE_CONCURRENT_P2P */