qcacld-3.0: use adapter's vdev_id instead of vdev dereference

This is to fix the error of missing vdev NULL check.
Instead of dereferencing vdev to get the vdev_id, can directly
use adapter's vdev_id, so that can avoid unnecessary vdev NULL
check and lesser operation.

Change-Id: I7d84046c405a82cd6967a8d79142acd5618e18db
CRs-Fixed: 2669233
This commit is contained in:
Vevek Venkatesan 2020-04-28 19:56:44 +05:30 committed by nshrivas
parent c8ef7c5577
commit 7df42ef747

View File

@ -1125,7 +1125,7 @@ static void __hdd_hard_start_xmit(struct sk_buff *skb,
sizeof(qdf_nbuf_data(skb)),
QDF_TX));
if (!hdd_is_tx_allowed(skb, wlan_vdev_get_id(vdev),
if (!hdd_is_tx_allowed(skb, adapter->vdev_id,
mac_addr_tx_allowed.bytes)) {
QDF_TRACE(QDF_MODULE_ID_HDD_DATA,
QDF_TRACE_LEVEL_INFO_HIGH,