diff options
| author | Peng Xu <pxu@codeaurora.org> | 2017-08-06 07:39:13 -0700 |
|---|---|---|
| committer | snandini <snandini@codeaurora.org> | 2017-08-08 15:36:34 -0700 |
| commit | 2fe99012c29f7159faec7552772f74f6c57556e1 (patch) | |
| tree | cb5783f5c0e28394228ed2beeff51212e837ad18 | |
| parent | 51763998ecee927b99ce278576d9cdaa947bec43 (diff) | |
qcacld-3.0: Add interface info when sending P2P LO event
Add interface information when sending P2P listen offload stop
event to upper layer so that the event can be processed on the
correct interface.
Change-Id: I7aac52552e9277aff838d9bfef01201af48773c9
CRs-fixed: 2088732
| -rw-r--r-- | core/hdd/src/wlan_hdd_main.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 89f1d2073c06..df187c71b0b2 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -8804,6 +8804,7 @@ static void wlan_hdd_p2p_lo_event_callback(void *context_ptr, hdd_context_t *hdd_ctx = (hdd_context_t *)context_ptr; struct sir_p2p_lo_event *evt = event_ptr; struct sk_buff *vendor_event; + hdd_adapter_t *adapter; ENTER(); @@ -8812,9 +8813,16 @@ static void wlan_hdd_p2p_lo_event_callback(void *context_ptr, return; } + adapter = hdd_get_adapter_by_vdev(hdd_ctx, evt->vdev_id); + if (!adapter) { + hdd_err("Cannot find adapter by vdev_id = %d", + evt->vdev_id); + return; + } + vendor_event = cfg80211_vendor_event_alloc(hdd_ctx->wiphy, - NULL, sizeof(uint32_t) + NLMSG_HDRLEN, + &(adapter->wdev), sizeof(uint32_t) + NLMSG_HDRLEN, QCA_NL80211_VENDOR_SUBCMD_P2P_LO_EVENT_INDEX, GFP_KERNEL); @@ -8832,6 +8840,8 @@ static void wlan_hdd_p2p_lo_event_callback(void *context_ptr, } cfg80211_vendor_event(vendor_event, GFP_KERNEL); + hdd_debug("Sent P2P_LISTEN_OFFLOAD_STOP event for vdev_id = %d", + evt->vdev_id); } /** |
