diff options
author | Bruno Randolf <br1@einfach.org> | 2010-05-18 21:31:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-02 16:13:26 -0400 |
commit | 40ca22eafeb61ee1419dd7c4c2698459183c582c (patch) | |
tree | 334285722b332023d7216621b022026e59ba8f7d /drivers/net/wireless/ath/ath5k/base.c | |
parent | 6673e2e8e040e319e0505f31580b7f1dbb5862e4 (diff) |
ath5k: add sysfs files for ANI parameters
/sys/class/ieee80211/phy0/device/ani/ani_mode
/sys/class/ieee80211/phy0/device/ani/noise_immunity_level
/sys/class/ieee80211/phy0/device/ani/spur_level
/sys/class/ieee80211/phy0/device/ani/firstep_level
/sys/class/ieee80211/phy0/device/ani/ofdm_weak_signal_detection
/sys/class/ieee80211/phy0/device/ani/cck_weak_signal_detection
/sys/class/ieee80211/phy0/device/ani/noise_immunity_level_max
/sys/class/ieee80211/phy0/device/ani/spur_level_max
/sys/class/ieee80211/phy0/device/ani/firstep_level_max
sysfs has a lot of symlinks, so you can find the files also in other locations,
like (by PCI ID) /sys/devices/pci0000:00/0000:00:11.0/ani and others.
Signed-off-by: Bruno Randolf <br1@einfach.org>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/base.c')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/base.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index e63aeaa36c3..0aabfab2770 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c | |||
@@ -862,6 +862,8 @@ ath5k_attach(struct pci_dev *pdev, struct ieee80211_hw *hw) | |||
862 | 862 | ||
863 | ath5k_init_leds(sc); | 863 | ath5k_init_leds(sc); |
864 | 864 | ||
865 | ath5k_sysfs_register(sc); | ||
866 | |||
865 | return 0; | 867 | return 0; |
866 | err_queues: | 868 | err_queues: |
867 | ath5k_txq_release(sc); | 869 | ath5k_txq_release(sc); |
@@ -897,6 +899,7 @@ ath5k_detach(struct pci_dev *pdev, struct ieee80211_hw *hw) | |||
897 | ath5k_hw_release_tx_queue(sc->ah, sc->bhalq); | 899 | ath5k_hw_release_tx_queue(sc->ah, sc->bhalq); |
898 | ath5k_unregister_leds(sc); | 900 | ath5k_unregister_leds(sc); |
899 | 901 | ||
902 | ath5k_sysfs_unregister(sc); | ||
900 | /* | 903 | /* |
901 | * NB: can't reclaim these until after ieee80211_ifdetach | 904 | * NB: can't reclaim these until after ieee80211_ifdetach |
902 | * returns because we'll get called back to reclaim node | 905 | * returns because we'll get called back to reclaim node |