qcacmn: Save vdev id of current roc ctx

RX mgmt frame is from interrupt thread, it may be access freed roc
ctx for low rate case. Save vdev id of current roc ctx in p2p psoc
object. Low log level of P2P RX and TX conf since too many output.

Change-Id: I4c944244f32b844d78bb69d66e341a1f3bf13abf
CRs-Fixed: 2180116
This commit is contained in:
Wu Gao
2018-01-19 22:58:32 +05:30
committed by snandini
parent f2dce0cf16
commit d82af43cd3

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2017 The Linux Foundation. All rights reserved. * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
* *
* Permission to use, copy, modify, and/or distribute this software for * Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the * any purpose with or without fee is hereby granted, provided that the
@@ -91,7 +91,7 @@ static void wlan_p2p_rx_callback(void *user_data,
freq = ieee80211_channel_to_frequency( freq = ieee80211_channel_to_frequency(
rx_frame->rx_chan, NL80211_BAND_5GHZ); rx_frame->rx_chan, NL80211_BAND_5GHZ);
cfg80211_notice("Indicate frame over nl80211, vdev id:%d, idx:%d", cfg80211_debug("Indicate frame over nl80211, vdev id:%d, idx:%d",
rx_frame->vdev_id, wdev->netdev->ifindex); rx_frame->vdev_id, wdev->netdev->ifindex);
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0)) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0))
@@ -129,7 +129,7 @@ static void wlan_p2p_action_tx_cnf_callback(void *user_data,
struct wireless_dev *wdev; struct wireless_dev *wdev;
bool is_success; bool is_success;
cfg80211_info("user data:%pK, action cookie:%llx, buf:%pK, len:%d, tx status:%d", cfg80211_debug("user data:%pK, action cookie:%llx, buf:%pK, len:%d, tx status:%d",
user_data, tx_cnf->action_cookie, tx_cnf->buf, user_data, tx_cnf->action_cookie, tx_cnf->buf,
tx_cnf->buf_len, tx_cnf->status); tx_cnf->buf_len, tx_cnf->status);