qcacld-3.0: Add reason codes for internal disconnections

Currently, host driver sends disconnect reason code as UNSPECIFIED
to kernel in most of the disconnection scenarios. Correct the same
to send proper reason code received from peer in case of peer
initiated disconnections.
Introduce new reason codes for internal disconnections and assign
proper reason code for each possible disconnect scenario.

Change-Id: I99bf4573b59dc810e0a1529fcd48061d10acae4e
CRs-Fixed: 2622310
This commit is contained in:
Srinivas Dasari
2020-02-13 09:49:24 +05:30
committed by nshrivas
vanhempi 3a19d9fa48
commit 644dbc18c1
26 muutettua tiedostoa jossa 434 lisäystä ja 148 poistoa

Näytä tiedosto

@@ -3993,4 +3993,25 @@ QDF_STATUS ucfg_mlme_get_peer_unmap_conf(struct wlan_objmgr_psoc *psoc)
{
return wlan_mlme_get_peer_unmap_conf(psoc);
}
/**
* ucfg_mlme_get_discon_reason_n_from_ap() - Get disconnect reason and from ap
* @psoc: PSOC pointer
* @vdev_id: vdev id
* @from_ap: Get the from_ap cached through mlme_set_discon_reason_n_from_ap
* and copy to this buffer.
* @reason_code: Get the reason_code cached through
* mlme_set_discon_reason_n_from_ap and copy to this buffer.
*
* Fetch the contents of from_ap and reason_codes.
*
* Return: void
*/
static inline void
ucfg_mlme_get_discon_reason_n_from_ap(struct wlan_objmgr_psoc *psoc,
uint8_t vdev_id, bool *from_ap,
uint32_t *reason_code)
{
mlme_get_discon_reason_n_from_ap(psoc, vdev_id, from_ap, reason_code);
}
#endif /* _WLAN_MLME_UCFG_API_H_ */