mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
qcacmn: Fix excessive logging problem in TDLS
TDLS registered for optional action frames to print the information about unknown peer commands. This causes problem in the system with too many logs. Remove the optional action frames registration from the TDLS component. Change-Id: Iec2ee86ae1b3139858f6a1ff5b96477bc6dae169 CRs-Fixed: 2037911
This commit is contained in:
parent
d5fc9c0b8e
commit
9e5be67bab
1 changed files with 6 additions and 11 deletions
|
|
@ -172,28 +172,23 @@ QDF_STATUS tdls_process_rx_frame(struct scheduler_msg *msg)
|
|||
QDF_STATUS tdls_mgmt_rx_ops(struct wlan_objmgr_psoc *psoc,
|
||||
bool isregister)
|
||||
{
|
||||
struct mgmt_txrx_mgmt_frame_cb_info frm_cb_info[3];
|
||||
|
||||
struct mgmt_txrx_mgmt_frame_cb_info frm_cb_info;
|
||||
QDF_STATUS status;
|
||||
int num_of_entries;
|
||||
|
||||
tdls_debug("psoc:%p, is register rx:%d", psoc, isregister);
|
||||
|
||||
frm_cb_info[0].frm_type = MGMT_PROBE_REQ;
|
||||
frm_cb_info[0].mgmt_rx_cb = tgt_tdls_mgmt_frame_rx_cb;
|
||||
frm_cb_info[1].frm_type = MGMT_ACTION_TDLS_DISCRESP;
|
||||
frm_cb_info[1].mgmt_rx_cb = tgt_tdls_mgmt_frame_rx_cb;
|
||||
frm_cb_info[2].frm_type = MGMT_ACTION_VENDOR_SPECIFIC;
|
||||
frm_cb_info[2].mgmt_rx_cb = tgt_tdls_mgmt_frame_rx_cb;
|
||||
num_of_entries = 3;
|
||||
frm_cb_info.frm_type = MGMT_ACTION_TDLS_DISCRESP;
|
||||
frm_cb_info.mgmt_rx_cb = tgt_tdls_mgmt_frame_rx_cb;
|
||||
num_of_entries = 1;
|
||||
|
||||
if (isregister)
|
||||
status = wlan_mgmt_txrx_register_rx_cb(psoc,
|
||||
WLAN_UMAC_COMP_TDLS, frm_cb_info,
|
||||
WLAN_UMAC_COMP_TDLS, &frm_cb_info,
|
||||
num_of_entries);
|
||||
else
|
||||
status = wlan_mgmt_txrx_deregister_rx_cb(psoc,
|
||||
WLAN_UMAC_COMP_TDLS, frm_cb_info,
|
||||
WLAN_UMAC_COMP_TDLS, &frm_cb_info,
|
||||
num_of_entries);
|
||||
|
||||
return status;
|
||||
|
|
|
|||
Loading…
Reference in a new issue