mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-08 19:55:16 -05:00
qcacld-3.0: SAP Rx: get sta_id for dhcp packet only
Check for dhcp packet type before processing on packet sta_id. This reduces per packet mem_copy and mem_cmp instructions for sap Rx. Change-Id: I4a2732ff4d9e3fa31aace25cc824f26b0c339b52 CRs-Fixed: 2331420
This commit is contained in:
parent
02dee15df5
commit
028d471e7b
1 changed files with 2 additions and 1 deletions
|
|
@ -401,7 +401,8 @@ void hdd_ipa_send_skb_to_network(qdf_nbuf_t skb, qdf_netdev_t dev)
|
|||
return;
|
||||
}
|
||||
|
||||
if (adapter->device_mode == QDF_SAP_MODE) {
|
||||
if ((adapter->device_mode == QDF_SAP_MODE) &&
|
||||
(qdf_nbuf_is_ipv4_dhcp_pkt(skb) == true)) {
|
||||
/* Send DHCP Indication to FW */
|
||||
struct qdf_mac_addr *src_mac =
|
||||
(struct qdf_mac_addr *)(skb->data +
|
||||
|
|
|
|||
Loading…
Reference in a new issue