qcacld-3.0: Enable p2p component of umac convergence
This is a change to enable P2P component of umac convergence.
Change-Id: I583d64af4451777dfb7656ed8fdb9fddb33f2932
CRs-Fixed: 2006267
diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c
index 9a54995..20d38ed 100644
--- a/core/hdd/src/wlan_hdd_cfg80211.c
+++ b/core/hdd/src/wlan_hdd_cfg80211.c
@@ -6611,7 +6611,6 @@
hdd_adapter_t *adapter;
struct nlattr *tb[QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX + 1];
struct sir_p2p_lo_start params;
- QDF_STATUS status;
ENTER_DEV(dev);
@@ -6718,14 +6717,7 @@
hdd_debug("P2P LO params: freq=%d, period=%d, interval=%d, count=%d",
params.freq, params.period, params.interval, params.count);
- status = wma_p2p_lo_start(¶ms);
-
- if (!QDF_IS_STATUS_SUCCESS(status)) {
- hdd_err("P2P LO start failed");
- return -EINVAL;
- }
-
- return 0;
+ return wlan_hdd_listen_offload_start(adapter, ¶ms);
}
@@ -6773,7 +6765,6 @@
const void *data,
int data_len)
{
- QDF_STATUS status;
hdd_adapter_t *adapter;
struct net_device *dev = wdev->netdev;
@@ -6790,14 +6781,7 @@
return -EINVAL;
}
- status = wma_p2p_lo_stop(adapter->sessionId);
-
- if (!QDF_IS_STATUS_SUCCESS(status)) {
- hdd_err("P2P LO stop failed");
- return -EINVAL;
- }
-
- return 0;
+ return wlan_hdd_listen_offload_stop(adapter);
}
/**