qcacld-3.0: Fix mac address check in lim_send_sme_mgmt_frame_ind

Broadcast mac address check is performed on an empty buffer pointer
before it is filled. Use the input frame pointer instead.

CRs-Fixed: 2191063
Change-Id: Ie02dcf05da70d52a0f3532b8d5647a7e8e0bcfe8
Dieser Commit ist enthalten in:
Varun Reddy Yeturu
2018-05-17 14:57:18 -07:00
committet von nshrivas
Ursprung 9a6afd1a1a
Commit 8e94f725ed

Datei anzeigen

@@ -8294,7 +8294,7 @@ void lim_send_sme_mgmt_frame_ind(tpAniSirGlobal mac_ctx, uint8_t frame_type,
}
if (qdf_is_macaddr_broadcast(
(struct qdf_mac_addr *) sme_mgmt_frame->frameBuf + 4) &&
(struct qdf_mac_addr *)(frame + 4)) &&
!session_id) {
pe_debug("Broadcast action frame");
session_id = SME_SESSION_ID_BROADCAST;