Browse Source

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
Manjunathappa Prakash 6 years ago
parent
commit
028d471e7b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/hdd/src/wlan_hdd_ipa.c

+ 2 - 1
core/hdd/src/wlan_hdd_ipa.c

@@ -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 +