summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 =