diff options
| author | Patrick McHardy <kaber@trash.net> | 2010-05-10 18:39:28 +0200 | 
|---|---|---|
| committer | Patrick McHardy <kaber@trash.net> | 2010-05-10 18:39:28 +0200 | 
| commit | 1e4b1057121bc756b91758a434b504d2010f6088 (patch) | |
| tree | b016cf2c728289c7e36d9e4e488f30ab0bd0ae6e /drivers/net/wireless/ath/ath5k/base.c | |
| parent | 3b254c54ec46eb022cb26ee6ab37fae23f5f7d6a (diff) | |
| parent | 3ee943728fff536edaf8f59faa58aaa1aa7366e3 (diff) | |
| download | olio-linux-3.10-1e4b1057121bc756b91758a434b504d2010f6088.tar.xz olio-linux-3.10-1e4b1057121bc756b91758a434b504d2010f6088.zip  | |
Merge branch 'master' of /repos/git/net-next-2.6
Conflicts:
	net/bridge/br_device.c
	net/bridge/br_forward.c
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/base.c')
| -rw-r--r-- | drivers/net/wireless/ath/ath5k/base.c | 25 | 
1 files changed, 21 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index 93005f1d326..7f5953fac43 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c @@ -242,6 +242,8 @@ static int ath5k_set_key(struct ieee80211_hw *hw,  		struct ieee80211_key_conf *key);  static int ath5k_get_stats(struct ieee80211_hw *hw,  		struct ieee80211_low_level_stats *stats); +static int ath5k_get_survey(struct ieee80211_hw *hw, +		int idx, struct survey_info *survey);  static u64 ath5k_get_tsf(struct ieee80211_hw *hw);  static void ath5k_set_tsf(struct ieee80211_hw *hw, u64 tsf);  static void ath5k_reset_tsf(struct ieee80211_hw *hw); @@ -267,6 +269,7 @@ static const struct ieee80211_ops ath5k_hw_ops = {  	.configure_filter = ath5k_configure_filter,  	.set_key 	= ath5k_set_key,  	.get_stats 	= ath5k_get_stats, +	.get_survey	= ath5k_get_survey,  	.conf_tx 	= NULL,  	.get_tsf 	= ath5k_get_tsf,  	.set_tsf 	= ath5k_set_tsf, @@ -545,8 +548,7 @@ ath5k_pci_probe(struct pci_dev *pdev,  	SET_IEEE80211_DEV(hw, &pdev->dev);  	hw->flags = IEEE80211_HW_RX_INCLUDES_FCS |  		    IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING | -		    IEEE80211_HW_SIGNAL_DBM | -		    IEEE80211_HW_NOISE_DBM; +		    IEEE80211_HW_SIGNAL_DBM;  	hw->wiphy->interface_modes =  		BIT(NL80211_IFTYPE_AP) | @@ -2027,8 +2029,7 @@ accept:  		rxs->freq = sc->curchan->center_freq;  		rxs->band = sc->curband->band; -		rxs->noise = sc->ah->ah_noise_floor; -		rxs->signal = rxs->noise + rs.rs_rssi; +		rxs->signal = sc->ah->ah_noise_floor + rs.rs_rssi;  		rxs->antenna = rs.rs_antenna; @@ -3292,6 +3293,22 @@ ath5k_get_stats(struct ieee80211_hw *hw,  	return 0;  } +static int ath5k_get_survey(struct ieee80211_hw *hw, int idx, +		struct survey_info *survey) +{ +	struct ath5k_softc *sc = hw->priv; +	struct ieee80211_conf *conf = &hw->conf; + +	 if (idx != 0) +		return -ENOENT; + +	survey->channel = conf->channel; +	survey->filled = SURVEY_INFO_NOISE_DBM; +	survey->noise = sc->ah->ah_noise_floor; + +	return 0; +} +  static u64  ath5k_get_tsf(struct ieee80211_hw *hw)  {  |