mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
wlan: Drop invalid EAPOL packets in SAP mode
Drop inalid EAPOL packets in SAP mode which are not destined to self mac address. Change-Id: I9754dddf580e60bd88ddc6e28355162499a8d125 CRs-Fixed: 2868054
This commit is contained in:
parent
0a25b3c7c0
commit
d25cb7e425
1 changed files with 15 additions and 1 deletions
|
@ -1304,6 +1304,20 @@ VOS_STATUS hdd_softap_rx_packet_cbk( v_VOID_t *vosContext,
|
|||
return VOS_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
if (TRUE == hdd_IsEAPOLPacket(pVosPacket)) {
|
||||
//wlan_hdd_log_eapol(skb, WIFI_EVENT_DRIVER_EAPOL_FRAME_RECEIVED);
|
||||
|
||||
if (vos_mem_compare2(skb->data,
|
||||
pAdapter->macAddressCurrent.bytes, 6) != 0) {
|
||||
//VOS_TRACE(VOS_MODULE_ID_HDD_SAP_DATA, VOS_TRACE_LEVEL_ERROR,
|
||||
// "Packet is not destined to this address, dropping");
|
||||
kfree_skb(skb);
|
||||
pVosPacket = pNextVosPacket;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
pVosPacket->pSkb = NULL;
|
||||
//hdd_softap_dump_sk_buff(skb);
|
||||
|
||||
skb->dev = pAdapter->dev;
|
||||
|
|
Loading…
Reference in a new issue