qcacld-3.0: Consolidate DS mode definitions
The file cds_ieee80211_common.h contains a large number of macros that
are used to describe most fields in IEEE 802.11 frames. Despite that,
currently WMA has an enum ds_mode to represent the Distribution System
Mode settings. In order to avoid unnecessary duplicate definitions
remove enum ds_mode and instead use the cds_ieee80211_common macros.
Change-Id: I0dc722009e063a1eac0da4afbe77f96772c583b2
CRs-Fixed: 2365060
diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c
index 2fd8da6..d5084a3 100644
--- a/core/wma/src/wma_features.c
+++ b/core/wma/src/wma_features.c
@@ -2497,22 +2497,22 @@
wh->i_fc[1] & IEEE80211_FC1_DIR_TODS,
wh->i_fc[1] & IEEE80211_FC1_DIR_FROMDS);
- to_from_ds = wh->i_fc[1] & IEEE80211_FC1_DIR_DSTODS;
+ to_from_ds = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK;
switch (to_from_ds) {
- case IEEE80211_NO_DS:
+ case IEEE80211_FC1_DIR_NODS:
WMA_LOGE("BSSID: " MAC_ADDRESS_STR,
MAC_ADDR_ARRAY(wh->i_addr3));
break;
- case IEEE80211_TO_DS:
+ case IEEE80211_FC1_DIR_TODS:
WMA_LOGE("DA: " MAC_ADDRESS_STR,
MAC_ADDR_ARRAY(wh->i_addr3));
break;
- case IEEE80211_FROM_DS:
+ case IEEE80211_FC1_DIR_FROMDS:
WMA_LOGE("SA: " MAC_ADDRESS_STR,
MAC_ADDR_ARRAY(wh->i_addr3));
break;
- case IEEE80211_DS_TO_DS:
+ case IEEE80211_FC1_DIR_DSTODS:
if (buf_len >= sizeof(struct ieee80211_frame_addr4))
WMA_LOGE("DA: " MAC_ADDRESS_STR " SA: "
MAC_ADDRESS_STR,