diff options
| author | Sriram Madhvapathi <msriram@codeaurora.org> | 2016-08-24 16:45:43 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-08-25 16:14:56 +0530 |
| commit | b39b1d6e01280615051487f1dcf31a7fc7a90c83 (patch) | |
| tree | 6549261159c100657f7b93060864e0e61c1a4a21 | |
| parent | 2354a4c985bcc50f7a020e4c37b11312e926cc29 (diff) | |
qcacld-2.0: Do not advertise NL80211_IFTYPE_P2P_DEVICE mode
Currently hdd_open_adapter for second interface, initialises
wdev->iftype to NL80211_IFTYPE_P2P_DEVICE. This is incorrect
since the driver does not support a interface of type
NL80211_IFTYPE_P2P_DEVICE, as is evident from interface_modes
advertised during wiphy initialization and registration.
NL80211_IFTYPE_P2P_DEVICE should only be used if a dedicated
P2P management interface is supported, which isn't the case here.
Correct this by initialising iftype to NL80211_IFTYPE_STATION.
CRs-Fixed: 1058675
Change-Id: Iff71377df7fb1b87c34d907c8b290b9320b462be
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_main.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c index cb7e82a614ab..88cf90113154 100644 --- a/CORE/HDD/src/wlan_hdd_main.c +++ b/CORE/HDD/src/wlan_hdd_main.c @@ -10898,10 +10898,6 @@ hdd_adapter_t* hdd_open_adapter( hdd_context_t *pHddCtx, tANI_U8 session_type, if (session_type == WLAN_HDD_P2P_CLIENT) pAdapter->wdev.iftype = NL80211_IFTYPE_P2P_CLIENT; -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0)) || defined(WITH_BACKPORTS) - else if (session_type == WLAN_HDD_P2P_DEVICE) - pAdapter->wdev.iftype = NL80211_IFTYPE_P2P_DEVICE; -#endif else pAdapter->wdev.iftype = NL80211_IFTYPE_STATION; |
