summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshish Kumar Dhanotiya <adhanoti@codeaurora.org>2020-06-16 11:41:06 +0530
committernshrivas <nshrivas@codeaurora.org>2020-06-25 11:10:41 -0700
commit2ce94d43dbfaa2ba88ab424110534665b8efb68d (patch)
tree250bacebe0db1e458cec56c5dbe8565c21d7a41c
parent7ea9882f8ec44acadd0930c6e5ed5eebaaa81d2d (diff)
qcacld-3.0: kernel-tests: Fix compilation error
Fix compilation error with llvm. CRs-Fixed: 2711116 Change-Id: I8fb8e58a3474ae6a2777216b6965af28b623bc99
-rw-r--r--core/hdd/src/wlan_hdd_assoc.c5
-rw-r--r--core/hdd/src/wlan_hdd_hostapd.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c
index df3aa8be02c8..dc070c6c7836 100644
--- a/core/hdd/src/wlan_hdd_assoc.c
+++ b/core/hdd/src/wlan_hdd_assoc.c
@@ -54,6 +54,7 @@
#include <wlan_logging_sock_svc.h>
#include "wlan_hdd_tsf.h"
#include "wlan_hdd_scan.h"
+#include "wlan_hdd_main.h"
/* These are needed to recognize WPA and RSN suite types */
#define HDD_WPA_OUI_SIZE 4
@@ -2307,10 +2308,10 @@ static void hdd_send_re_assoc_event(struct net_device *dev,
chan_no = pCsrRoamInfo->pBssDesc->channelId;
if (chan_no <= 14)
freq = ieee80211_channel_to_frequency(chan_no,
- NL80211_BAND_2GHZ);
+ HDD_NL80211_BAND_2GHZ);
else
freq = ieee80211_channel_to_frequency(chan_no,
- NL80211_BAND_5GHZ);
+ HDD_NL80211_BAND_5GHZ);
chan = ieee80211_get_channel(pAdapter->wdev.wiphy, freq);
sme_roam_get_connect_profile(hal_handle, pAdapter->sessionId,
diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c
index f232d18428a7..c9f26cf59fe5 100644
--- a/core/hdd/src/wlan_hdd_hostapd.c
+++ b/core/hdd/src/wlan_hdd_hostapd.c
@@ -9023,7 +9023,7 @@ static void hdd_update_beacon_rate(hdd_adapter_t *adapter,
struct cfg80211_bitrate_mask *beacon_rate_mask;
enum nl80211_band band;
- band = params->chandef.chan->band;
+ band = (enum nl80211_band)params->chandef.chan->band;
beacon_rate_mask = &params->beacon_rate;
if (beacon_rate_mask->control[band].legacy) {
adapter->sessionCtx.ap.sapConfig.beacon_tx_rate =