|
@@ -1,5 +1,5 @@
|
|
/*
|
|
/*
|
|
- * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
|
|
|
|
|
|
+ * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
|
|
*
|
|
*
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
@@ -4720,7 +4720,6 @@ int wlan_hdd_cfg80211_start_bss(struct hdd_adapter *adapter,
|
|
bool MFPRequired = false;
|
|
bool MFPRequired = false;
|
|
uint16_t prev_rsn_length = 0;
|
|
uint16_t prev_rsn_length = 0;
|
|
enum dfs_mode mode;
|
|
enum dfs_mode mode;
|
|
- struct hdd_adapter *sta_adapter;
|
|
|
|
bool ignore_cac = 0;
|
|
bool ignore_cac = 0;
|
|
uint8_t is_overlap_enable = 0, scc_on_dfs_chan = 0;
|
|
uint8_t is_overlap_enable = 0, scc_on_dfs_chan = 0;
|
|
uint8_t beacon_fixed_len, indoor_chnl_marking = 0;
|
|
uint8_t beacon_fixed_len, indoor_chnl_marking = 0;
|
|
@@ -4769,12 +4768,7 @@ int wlan_hdd_cfg80211_start_bss(struct hdd_adapter *adapter,
|
|
* disconnect the STA interface first if connection or key exchange is
|
|
* disconnect the STA interface first if connection or key exchange is
|
|
* in progress and then start SAP interface.
|
|
* in progress and then start SAP interface.
|
|
*/
|
|
*/
|
|
- sta_adapter = hdd_get_sta_connection_in_progress(hdd_ctx);
|
|
|
|
- if (sta_adapter) {
|
|
|
|
- hdd_debug("Disconnecting STA with session id: %d",
|
|
|
|
- sta_adapter->session_id);
|
|
|
|
- wlan_hdd_disconnect(sta_adapter, eCSR_DISCONNECT_REASON_DEAUTH);
|
|
|
|
- }
|
|
|
|
|
|
+ hdd_abort_ongoing_sta_connection(hdd_ctx);
|
|
|
|
|
|
/*
|
|
/*
|
|
* Reject start bss if reassoc in progress on any adapter.
|
|
* Reject start bss if reassoc in progress on any adapter.
|
|
@@ -5520,7 +5514,6 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy,
|
|
struct net_device *dev)
|
|
struct net_device *dev)
|
|
{
|
|
{
|
|
struct hdd_adapter *adapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
struct hdd_adapter *adapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
- struct hdd_adapter *sta_adapter;
|
|
|
|
struct hdd_context *hdd_ctx = wiphy_priv(wiphy);
|
|
struct hdd_context *hdd_ctx = wiphy_priv(wiphy);
|
|
QDF_STATUS status = QDF_STATUS_E_FAILURE;
|
|
QDF_STATUS status = QDF_STATUS_E_FAILURE;
|
|
QDF_STATUS qdf_status = QDF_STATUS_E_FAILURE;
|
|
QDF_STATUS qdf_status = QDF_STATUS_E_FAILURE;
|
|
@@ -5571,12 +5564,7 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy,
|
|
* the STA and complete the SAP operation. STA will reconnect
|
|
* the STA and complete the SAP operation. STA will reconnect
|
|
* after SAP stop is done.
|
|
* after SAP stop is done.
|
|
*/
|
|
*/
|
|
- sta_adapter = hdd_get_sta_connection_in_progress(hdd_ctx);
|
|
|
|
- if (sta_adapter) {
|
|
|
|
- hdd_debug("Disconnecting STA with session id: %d",
|
|
|
|
- sta_adapter->session_id);
|
|
|
|
- wlan_hdd_disconnect(sta_adapter, eCSR_DISCONNECT_REASON_DEAUTH);
|
|
|
|
- }
|
|
|
|
|
|
+ hdd_abort_ongoing_sta_connection(hdd_ctx);
|
|
|
|
|
|
if (adapter->device_mode == QDF_SAP_MODE)
|
|
if (adapter->device_mode == QDF_SAP_MODE)
|
|
wlan_hdd_del_station(adapter);
|
|
wlan_hdd_del_station(adapter);
|