|
@@ -2905,7 +2905,8 @@ void lim_process_switch_channel_rsp(struct mac_context *mac,
|
|
|
pe_session->send_p2p_conf_frame = true;
|
|
|
}
|
|
|
|
|
|
- ucfg_pkt_capture_record_channel(pe_session->vdev);
|
|
|
+ if (ucfg_pkt_capture_get_pktcap_mode(mac->psoc))
|
|
|
+ ucfg_pkt_capture_record_channel(pe_session->vdev);
|
|
|
break;
|
|
|
case LIM_SWITCH_CHANNEL_SAP_DFS:
|
|
|
/* Note: This event code specific to SAP mode
|
|
@@ -2932,7 +2933,8 @@ void lim_process_switch_channel_rsp(struct mac_context *mac,
|
|
|
*/
|
|
|
policy_mgr_update_connection_info(mac->psoc,
|
|
|
pe_session->smeSessionId);
|
|
|
- ucfg_pkt_capture_record_channel(pe_session->vdev);
|
|
|
+ if (ucfg_pkt_capture_get_pktcap_mode(mac->psoc))
|
|
|
+ ucfg_pkt_capture_record_channel(pe_session->vdev);
|
|
|
break;
|
|
|
default:
|
|
|
break;
|