瀏覽代碼

qcacld-3.0: change peer search to mac address based in monitor mode

Commit 9e02e1e104e8 ("qcacmn: Cleanup dp_register_peer [PEER_ID_PHASE1]")
of qca-wifi-host-cmn changes peer search from peer id based to mac address
based, this change makes corresponding fix for monitor mode, otherwise it
will fail to get wlan interface up, since can't find peer.

Change-Id: Ife031b9e9b856850e08ef8c195e1a99c6dee80c5
Kai Liu 5 年之前
父節點
當前提交
cdc307f6a4
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      core/hdd/src/wlan_hdd_tx_rx.c

+ 1 - 0
core/hdd/src/wlan_hdd_tx_rx.c

@@ -2683,6 +2683,7 @@ int hdd_set_mon_rx_cb(struct net_device *dev)
 	void *soc = cds_get_context(QDF_MODULE_ID_SOC);
 	void *pdev = cds_get_context(QDF_MODULE_ID_TXRX);
 
+	WLAN_ADDR_COPY(sta_desc.peer_addr.bytes, adapter->mac_addr.bytes);
 	qdf_mem_zero(&txrx_ops, sizeof(txrx_ops));
 	txrx_ops.rx.rx = hdd_mon_rx_packet_cbk;
 	hdd_monitor_set_rx_monitor_cb(&txrx_ops, hdd_rx_monitor_callback);