summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSriram, Madhvapathi <msriram@codeaurora.org>2016-04-21 16:41:00 +0530
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-05-10 17:57:02 +0530
commit3ad1edb9d187afae398d9a5c4247ae16e678442d (patch)
tree2a76870aa9e263e2e0d30ea301345eddacdb0fc2
parentfe47c98bde66b4a786ee818b15571dec81d5de0a (diff)
qcacld-2.0: Fix check for adapter device_mode while changing back from IBSS
Presently, if the current device_mode is STA/P2P/AP interface mode change takes effect. If the current device_mode is IBSS the interface mode change is rejected in __wlan_hdd_cfg80211_change_iface. This causes user applications like wpa_supplicant, which start the interface in STA mode, to fail to reconfigure the interface after termination CRs-Fixed: 1005808 Change-Id: I67bcdb7453e8232dc711499ee66793877697582b
-rw-r--r--CORE/HDD/src/wlan_hdd_cfg80211.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 46848ec16a2e..db5b5aa2d890 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -14578,7 +14578,8 @@ static int __wlan_hdd_cfg80211_change_iface(struct wiphy *wiphy,
if ((pAdapter->device_mode == WLAN_HDD_INFRA_STATION) ||
(pAdapter->device_mode == WLAN_HDD_P2P_CLIENT) ||
- (pAdapter->device_mode == WLAN_HDD_P2P_DEVICE)) {
+ (pAdapter->device_mode == WLAN_HDD_P2P_DEVICE) ||
+ (pAdapter->device_mode == WLAN_HDD_IBSS)) {
hdd_wext_state_t *pWextState = WLAN_HDD_GET_WEXT_STATE_PTR(pAdapter);
pRoamProfile = &pWextState->roamProfile;