mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
qcacld-3.0: Update SAE frame session id to avoid using invalid id 0
In current SAE implementation, lim_process_sae_auth_frame() and lim_process_sae_preauth_frame() all pass parameter session id 0 to lim_send_sme_mgmt_frame_ind(). In some test case, once vdev id 0 is removed, hdd_indicate_mgmt_frame() can not get adapter through vdev id 0, then SAE frame will not forward to supplicant. Update SAE frame session id to make sure at least one adapter can be found. Once adapter is available, __hdd_indicate_mgmt_frame() can get the expected interface through destination mac address. Change-Id: I3e8f430c4760448c6cc8dab9464979371de86118 CRs-Fixed: 2507342
This commit is contained in:
parent
cf3cf662ed
commit
3e96c89d1a
1 changed files with 4 additions and 2 deletions
|
|
@ -405,7 +405,8 @@ static void lim_process_sae_auth_frame(struct mac_context *mac_ctx,
|
|||
|
||||
lim_send_sme_mgmt_frame_ind(mac_ctx, mac_hdr->fc.subType,
|
||||
(uint8_t *)mac_hdr,
|
||||
frame_len + sizeof(tSirMacMgmtHdr), 0,
|
||||
frame_len + sizeof(tSirMacMgmtHdr),
|
||||
pe_session->smeSessionId,
|
||||
WMA_GET_RX_CH(rx_pkt_info), pe_session,
|
||||
WMA_GET_RX_RSSI_NORMALIZED(rx_pkt_info),
|
||||
rx_flags);
|
||||
|
|
@ -1640,7 +1641,8 @@ bool lim_process_sae_preauth_frame(struct mac_context *mac, uint8_t *rx_pkt)
|
|||
|
||||
lim_send_sme_mgmt_frame_ind(mac, dot11_hdr->fc.subType,
|
||||
(uint8_t *)dot11_hdr,
|
||||
frm_len + sizeof(tSirMacMgmtHdr), 0,
|
||||
frm_len + sizeof(tSirMacMgmtHdr),
|
||||
SME_SESSION_ID_ANY,
|
||||
WMA_GET_RX_CH(rx_pkt), NULL,
|
||||
WMA_GET_RX_RSSI_NORMALIZED(rx_pkt),
|
||||
RXMGMT_FLAG_NONE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue