diff options
author | Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de> | 2013-01-08 08:48:58 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-01-09 14:37:12 -0500 |
commit | e93d083f42a126b5ad8137b5f0e8d6f900b332b8 (patch) | |
tree | 813dde7e8c79800d0cd71cb84ebf175d22c19faa /drivers/net/wireless/ath/ath9k/init.c | |
parent | 1a26cda8e0d954257ef2e4e732350232e1506a65 (diff) |
ath9k: add spectral scan feature
Adds the spectral scan feature for ath9k. AR92xx and AR93xx chips
are supported for now. The spectral scan is triggered by configuring
a mode through a debugfs control file. Samples can be gathered via
another relay debugfs file.
Essentially, to try it out:
echo chanscan > /sys/kernel/debug/ieee80211/phy0/ath9k/spectral_scan_ctl
iw dev wlan0 scan
cat /sys/kernel/debug/ieee80211/phy0/ath9k/spectral_scan0 > samples
echo disable > /sys/kernel/debug/ieee80211/phy0/ath9k/spectral_scan_ctl
This feature is still experimental.
The special "chanscan" mode is used to perform spectral scan while
mac80211 is scanning for channels. To allow this,
sw_scan_start/complete() ops have been added.
The patch contains code snippets and information from Zefir Kurtisi and
information provided by Adrian Chadd and Felix Fietkau.
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/init.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 5c01f43c32b0..90cfcb3983d1 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/slab.h> | 20 | #include <linux/slab.h> |
21 | #include <linux/ath9k_platform.h> | 21 | #include <linux/ath9k_platform.h> |
22 | #include <linux/module.h> | 22 | #include <linux/module.h> |
23 | #include <linux/relay.h> | ||
23 | 24 | ||
24 | #include "ath9k.h" | 25 | #include "ath9k.h" |
25 | 26 | ||
@@ -916,6 +917,11 @@ static void ath9k_deinit_softc(struct ath_softc *sc) | |||
916 | sc->dfs_detector->exit(sc->dfs_detector); | 917 | sc->dfs_detector->exit(sc->dfs_detector); |
917 | 918 | ||
918 | ath9k_eeprom_release(sc); | 919 | ath9k_eeprom_release(sc); |
920 | |||
921 | if (sc->rfs_chan_spec_scan) { | ||
922 | relay_close(sc->rfs_chan_spec_scan); | ||
923 | sc->rfs_chan_spec_scan = NULL; | ||
924 | } | ||
919 | } | 925 | } |
920 | 926 | ||
921 | void ath9k_deinit_device(struct ath_softc *sc) | 927 | void ath9k_deinit_device(struct ath_softc *sc) |