OpenCloudOS-Kernel/drivers/net/wireless/ath
Mohammed Shafi Shajakhan 569fba2cbb ath10k: remove unneccessary WARN_ON_ONCE in rx during ACS
The below warning message seems to hit occasionally with the following
combination (IPQ4019 + ACS scan) where we receive packets as a self peer
when hostapd does ACS when we bring up AP mode . ath10k has the below
fall back mechanism to fetch current operating channel in rx (it will
check for the next channel tracking variable if the current one is NULL)

	[scan channel] --> [rx channel] --> [peer channel] -->
	[vdev channel] -->  [any vdev channel] --> [target oper channel]

'scan channel' and 'target operating channel' are directly fetched from
firmware events. All the others should be updated by mac80211.

During ACS scan we wouldn't have a valid channel context
assigned from mac80211 ('ar->rx_channel'), and also relying on
('ar->scan_channel') is not helpful (it becomes NULL when it goes to
BSS channel and also when the scan event is completed). In short we
cannot always rely on these two channel tracking variables.

'Target Operating Channel' (ar->tgt_oper_chan) seems to keep track of
the current operating even while we are doing ACS scan and etc. Hence
remove this un-necessary warning message and continue with
target_operating channel. At the worst case scenario when the target
operating channel is invalid (NULL) we already have an ath10k warning
message to notify we really don't have a proper channel configured in
rx to update the rx status("no channel configured; ignoring frame(s)!")

    WARNING: CPU: 0 PID: 0 at ath/ath10k/htt_rx.c:803
    [<c0318838>] (warn_slowpath_null) from [<bf4a0104>]
    (ath10k_htt_rx_h_channel+0xe0/0x1b8 [ath10k_core])
    [<bf4a0104>] (ath10k_htt_rx_h_channel [ath10k_core]) from
    [<bf4a025c>] (ath10k_htt_rx_h_ppdu+0x80/0x288 [ath10k_core])
    [<bf4a025c>] (ath10k_htt_rx_h_ppdu [ath10k_core]) from
    [<bf4a1a9c>] (ath10k_htt_txrx_compl_task+0x724/0x9d4 [ath10k_core])
    [<bf4a1a9c>] (ath10k_htt_txrx_compl_task [ath10k_core])

Fixes:3b0499e9ce42 ("ath10k: reduce warning messages during rx without proper channel context")
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2016-06-30 13:52:23 +03:00
..
ar5523 cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
ath5k ath5k: fix misplaced default label in sifs switch 2016-06-14 15:18:09 +03:00
ath6kl ath6kl: simplify logical condition 2016-05-28 11:23:18 +03:00
ath9k Merge ath-next from ath.git 2016-06-19 11:19:30 +03:00
ath10k ath10k: remove unneccessary WARN_ON_ONCE in rx during ACS 2016-06-30 13:52:23 +03:00
carl9170 carl9170: Clarify kconfig text 2016-06-04 17:58:14 +03:00
wcn36xx wcn36xx: Set SMD timeout to 10 seconds 2016-04-27 15:02:51 +03:00
wil6210 wil6210: abort P2P search when stopping P2P device 2016-06-14 16:20:18 +03:00
Kconfig ath: unify Kconfig with other vendors 2015-11-18 14:28:31 +02:00
Makefile
ath.h cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
debug.c ath: Make ath_opmode_to_string understand OCB mode 2015-08-10 22:21:15 +03:00
dfs_pattern_detector.c ath: fix DFS timestamp wraparound reset condition 2015-10-09 11:47:31 +03:00
dfs_pattern_detector.h ath: use PRI value given by spec for fixed PRI 2015-09-27 15:50:30 +03:00
dfs_pri_detector.c ath: use PRI value given by spec for fixed PRI 2015-09-27 15:50:30 +03:00
dfs_pri_detector.h
hw.c
key.c
main.c
reg.h
regd.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
regd.h cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
regd_common.h
spectral_common.h
trace.c
trace.h