qcacmn: During host-invoked roaming, don't to send null data to AP

During host invoked roaming, set
WMI_ROAM_INVOKE_FLAG_NO_NULL_FRAME_TO_AP
flag so that FW will not send NULL data frame while doing transition.

CRs-Fixed: 2046964
Change-Id: I043c3d2431e4da5af36fb710bd36a520550abbd3
This commit is contained in:
Krunal Soni 2017-07-25 11:23:44 -07:00 • committed by snandini
commit 78819cf2bd
2 changed files with 5 additions and 0 deletions

View file

@ -3354,6 +3354,7 @@ struct wmi_unit_test_cmd {
* @channel: channel
* @frame_len: frame length, includs mac header, fixed params and ies
* @frame_buf: buffer contaning probe response or beacon
* @is_same_bssid: flag to indicate if roaming is requested for same bssid
*/
struct wmi_roam_invoke_cmd {
uint32_t vdev_id;
@ -3361,6 +3362,7 @@ struct wmi_roam_invoke_cmd {
uint32_t channel;
uint32_t frame_len;
uint8_t *frame_buf;
uint8_t is_same_bssid;
};
/**

View file

@ -14772,6 +14772,9 @@ static QDF_STATUS send_roam_invoke_cmd_tlv(wmi_unified_t wmi_handle,
WMITLV_GET_STRUCT_TLVLEN(wmi_roam_invoke_cmd_fixed_param));
cmd->vdev_id = roaminvoke->vdev_id;
cmd->flags |= (1 << WMI_ROAM_INVOKE_FLAG_REPORT_FAILURE);
if (roaminvoke->is_same_bssid)
cmd->flags |= (1 << WMI_ROAM_INVOKE_FLAG_NO_NULL_FRAME_TO_AP);
WMI_LOGD(FL("is_same_bssid flag: %d"), roaminvoke->is_same_bssid);
if (roaminvoke->frame_len) {
cmd->roam_scan_mode = WMI_ROAM_INVOKE_SCAN_MODE_SKIP;