mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
qcacmn: enable/disable monitor other
monitor other gets disabled or enabled from input passed in set_monrxfilter Change-Id: Ic6a00ce398ad0054b447f39f674eb6b9100b9d80
This commit is contained in:
parent
0a5167bb21
commit
4de3f492b0
1 changed files with 9 additions and 5 deletions
|
|
@ -497,10 +497,16 @@ static void dp_mon_filter_set_status_cmn(struct dp_pdev *pdev,
|
|||
filter->tlv_filter.fp_mgmt_filter = FILTER_MGMT_ALL;
|
||||
filter->tlv_filter.fp_ctrl_filter = FILTER_CTRL_ALL;
|
||||
filter->tlv_filter.fp_data_filter = FILTER_DATA_ALL;
|
||||
filter->tlv_filter.mo_mgmt_filter = FILTER_MGMT_ALL;
|
||||
filter->tlv_filter.mo_ctrl_filter = FILTER_CTRL_ALL;
|
||||
filter->tlv_filter.mo_data_filter = FILTER_DATA_ALL;
|
||||
filter->tlv_filter.offset_valid = false;
|
||||
|
||||
if (pdev->mon_filter_mode & MON_FILTER_OTHER) {
|
||||
filter->tlv_filter.enable_mo = 1;
|
||||
filter->tlv_filter.mo_mgmt_filter = FILTER_MGMT_ALL;
|
||||
filter->tlv_filter.mo_ctrl_filter = FILTER_CTRL_ALL;
|
||||
filter->tlv_filter.mo_data_filter = FILTER_DATA_ALL;
|
||||
} else {
|
||||
filter->tlv_filter.enable_mo = 0;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef FEATURE_PERPKT_INFO
|
||||
|
|
@ -855,8 +861,6 @@ void dp_mon_filter_setup_mon_mode(struct dp_pdev *pdev)
|
|||
/* Enabled the filter */
|
||||
filter.valid = true;
|
||||
dp_mon_filter_set_status_cmn(pdev, &filter);
|
||||
filter.tlv_filter.enable_mo = 1;
|
||||
|
||||
dp_mon_filter_show_filter(pdev, mode, &filter);
|
||||
|
||||
/* Store the above filter */
|
||||
|
|
|
|||
Loading…
Reference in a new issue