qcacld-3.0: ipa offload data path only support STA and SAP

ipa hardware data path should only support sap/sta mode.
P2PGo, P2PCli and all other mode should not support
IPA offload data path. Any ipa event came from non-sta/sap adapter
should be ignored and return success.

Change-Id: If2b6e9026d351ac5fb3c87e8f65df1615dfb154a
CRs-fixed: 1078289
This commit is contained in:
Leo Chang 2016-10-14 16:13:50 -07:00 • committed by qcabuildsw
commit a202b52f06

View file

@ -4080,7 +4080,12 @@ int hdd_ipa_wlan_evt(hdd_adapter_t *adapter, uint8_t sta_id,
{
enum ipa_wlan_event type = hdd_to_ipa_wlan_event(hdd_event_type);
return __hdd_ipa_wlan_evt(adapter, sta_id, type, mac_addr);
/* Data path offload only support for STA and SAP mode */
if ((QDF_STA_MODE == adapter->device_mode) ||
(QDF_SAP_MODE == adapter->device_mode))
return __hdd_ipa_wlan_evt(adapter, sta_id, type, mac_addr);
return 0;
}
/**