Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath9k_htc: process rx spectral packets

use code provided by Ashish Patro <patro@cs.wisc.edu>

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Oleksij Rempel and committed by
John W. Linville
83fb287e 911544f6

+14
+14
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
··· 1012 1012 * separately to avoid doing two lookups for a rate for each frame. 1013 1013 */ 1014 1014 hdr = (struct ieee80211_hdr *)skb->data; 1015 + 1016 + /* 1017 + * Process PHY errors and return so that the packet 1018 + * can be dropped. 1019 + */ 1020 + if (rx_stats.rs_status & ATH9K_RXERR_PHY) { 1021 + /* TODO: Not using DFS processing now. */ 1022 + if (ath_cmn_process_fft(&priv->spec_priv, hdr, 1023 + &rx_stats, rx_status->mactime)) { 1024 + /* TODO: Code to collect spectral scan statistics */ 1025 + } 1026 + goto rx_next; 1027 + } 1028 + 1015 1029 if (!ath9k_cmn_rx_accept(common, hdr, rx_status, &rx_stats, 1016 1030 &decrypt_error, priv->rxfilter)) 1017 1031 goto rx_next;