qcacld-3.0: Fix to call NDP session end handler only if the mode is NDI
NDP session end handler is being invoked, whenever a session is being ended irrespective of the mode of the session. Add a check to call the ndp session end handler only if the adapter mode is NDI. Change-Id: Iade4de486ede375239a66517fd47d1eb4501b517 CRs-Fixed: 1060808
Šī revīzija ir iekļauta:

revīziju iesūtīja
Gerrit - the friendly Code Review server

vecāks
b0f314063e
revīzija
3480f96cd8
@@ -2498,7 +2498,8 @@ QDF_STATUS hdd_sme_close_session_callback(void *pContext)
|
|||||||
* For NAN Data interface, the close session results in the final
|
* For NAN Data interface, the close session results in the final
|
||||||
* indication to the userspace
|
* indication to the userspace
|
||||||
*/
|
*/
|
||||||
hdd_ndp_session_end_handler(adapter);
|
if (adapter->device_mode == QDF_NDI_MODE)
|
||||||
|
hdd_ndp_session_end_handler(adapter);
|
||||||
|
|
||||||
clear_bit(SME_SESSION_OPENED, &adapter->event_flags);
|
clear_bit(SME_SESSION_OPENED, &adapter->event_flags);
|
||||||
|
|
||||||
|
@@ -900,12 +900,6 @@ void hdd_ndp_session_end_handler(hdd_adapter_t *adapter)
|
|||||||
if (wlan_hdd_validate_context(hdd_ctx))
|
if (wlan_hdd_validate_context(hdd_ctx))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Handle only if adapter is in NDI mode */
|
|
||||||
if (QDF_NDI_MODE != adapter->device_mode) {
|
|
||||||
hdd_err("Adapter is not in NDI mode");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
ndp_ctx = WLAN_HDD_GET_NDP_CTX_PTR(adapter);
|
ndp_ctx = WLAN_HDD_GET_NDP_CTX_PTR(adapter);
|
||||||
if (!ndp_ctx) {
|
if (!ndp_ctx) {
|
||||||
hdd_err("ndp context is NULL");
|
hdd_err("ndp context is NULL");
|
||||||
|
Atsaukties uz šo jaunā problēmā
Block a user