mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacld-3.0: Don't remove p2p device adapter when SAP comes up
With current code, as soon as change interface command comes to convert interface type to AP, it removes p2p device adapter which is not required. In new platform, various concurrencies are supported which includes SAP+GO, SAP+STA+GO, and so on. To make these concurrencies work properly, no longer remove the p2p device adapter when SAP comes up. Change-Id: Icb1729f25e0604e0c342a136d9b4cf332e50d7c8 CRs-Fixed: 953788
This commit is contained in:
parent
031007422b
commit
9889494810
1 changed files with 0 additions and 27 deletions
|
|
@ -5915,33 +5915,6 @@ static int __wlan_hdd_cfg80211_change_iface(struct wiphy *wiphy,
|
|||
wlan_hdd_cancel_existing_remain_on_channel
|
||||
(pAdapter);
|
||||
}
|
||||
|
||||
if (NL80211_IFTYPE_AP == type) {
|
||||
/* As Loading WLAN Driver one interface being created for
|
||||
* p2p device address. This will take one HW STA and the
|
||||
* max number of clients that can connect to softAP will be
|
||||
* reduced by one. so while changing the interface type to
|
||||
* NL80211_IFTYPE_AP (SoftAP) remove p2p0 interface as it is
|
||||
* not required in SoftAP mode.
|
||||
*/
|
||||
|
||||
/* Get P2P Adapter */
|
||||
hdd_adapter_t *pP2pAdapter = NULL;
|
||||
pP2pAdapter =
|
||||
hdd_get_adapter(pHddCtx,
|
||||
WLAN_HDD_P2P_DEVICE);
|
||||
|
||||
if (pP2pAdapter) {
|
||||
hdd_stop_adapter(pHddCtx,
|
||||
pP2pAdapter,
|
||||
true);
|
||||
hdd_deinit_adapter(pHddCtx,
|
||||
pP2pAdapter, true);
|
||||
hdd_close_adapter(pHddCtx,
|
||||
pP2pAdapter,
|
||||
true);
|
||||
}
|
||||
}
|
||||
hdd_stop_adapter(pHddCtx, pAdapter, true);
|
||||
|
||||
/* De-init the adapter */
|
||||
|
|
|
|||
Loading…
Reference in a new issue