qcacmn: Deregister NL MSG handlers during hdd_wlan_exit
Currently the NL MSG handlers for WLAN_NL_MSG_CNSS_DIAG, ANI_NL_MSG_PUMAC and ANI_NL_MSG_PTT are not deregistered during hdd_wlan_exit which can causes a page fault if NL issues cld80211_doit for these NL messages when the WLAN is not up. Add Deregsiter APIs for all the NL MSGs to call as part of hdd_exit_netlink_services during hdd_wlan_exit. Change-Id: I231e2f32e708e9a14305f0a8f9f2f603aa42b031 CRs-Fixed: 2243993
This commit is contained in:

committed by
nshrivas

orang tua
2318e0f0e7
melakukan
4c9e971f8e
@@ -164,9 +164,26 @@ int
|
||||
dbglog_parse_debug_logs(ol_scn_t scn, u_int8_t *datap,
|
||||
u_int32_t len);
|
||||
|
||||
|
||||
/** Register the cnss_diag activate with the wlan driver */
|
||||
/**
|
||||
* cnss_diag_activate_service() - API to register CNSS diag cmd handler
|
||||
*
|
||||
* API to register the handler for the NL message received from cnss_diag
|
||||
* application.
|
||||
*
|
||||
* Return: 0
|
||||
*/
|
||||
int cnss_diag_activate_service(void);
|
||||
|
||||
/**
|
||||
* cnss_diag_deactivate_service() - API to deregister CNSS diag cmd handler
|
||||
*
|
||||
* API to deregister the handler for the NL message received from cnss_diag
|
||||
* application.
|
||||
*
|
||||
* Return: 0
|
||||
*/
|
||||
int cnss_diag_deactivate_service(void);
|
||||
|
||||
#else
|
||||
static inline int
|
||||
dbglog_parser_type_init(wmi_unified_t wmi_handle, int type)
|
||||
@@ -205,6 +222,11 @@ static inline int cnss_diag_activate_service(void)
|
||||
return A_OK;
|
||||
}
|
||||
|
||||
static inline int cnss_diag_deactivate_service(void)
|
||||
{
|
||||
return A_OK;
|
||||
}
|
||||
|
||||
static inline int
|
||||
dbglog_module_log_enable(wmi_unified_t wmi_handle, uint32_t mod_id,
|
||||
A_BOOL isenable)
|
||||
|
Reference in New Issue
Block a user