diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-02-18 12:45:06 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-27 14:52:42 -0500 |
commit | 77965c970d7da9c9b6349ff2b1d9adecf54c403b (patch) | |
tree | bda8a85fa872a46d5cb5c48891cf3ee21c91e838 /include | |
parent | 630e64c487c0a9550f05b465216a1cd9125b52f2 (diff) |
cfg80211: clean up signal type
It wasn't a good idea to make the signal type a per-BSS option,
although then it is closer to the actual value. Move it to be
a per-wiphy setting, update mac80211 to match.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/cfg80211.h | 8 | ||||
-rw-r--r-- | include/net/wireless.h | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 8dcc46444037..e0312746a8cc 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -577,8 +577,7 @@ enum cfg80211_signal_type { | |||
577 | * @information_elements: the information elements (Note that there | 577 | * @information_elements: the information elements (Note that there |
578 | * is no guarantee that these are well-formed!) | 578 | * is no guarantee that these are well-formed!) |
579 | * @len_information_elements: total length of the information elements | 579 | * @len_information_elements: total length of the information elements |
580 | * @signal: signal strength value | 580 | * @signal: signal strength value (type depends on the wiphy's signal_type) |
581 | * @signal_type: signal type | ||
582 | * @free_priv: function pointer to free private data | 581 | * @free_priv: function pointer to free private data |
583 | * @priv: private area for driver use, has at least wiphy->bss_priv_size bytes | 582 | * @priv: private area for driver use, has at least wiphy->bss_priv_size bytes |
584 | */ | 583 | */ |
@@ -593,7 +592,6 @@ struct cfg80211_bss { | |||
593 | size_t len_information_elements; | 592 | size_t len_information_elements; |
594 | 593 | ||
595 | s32 signal; | 594 | s32 signal; |
596 | enum cfg80211_signal_type signal_type; | ||
597 | 595 | ||
598 | void (*free_priv)(struct cfg80211_bss *bss); | 596 | void (*free_priv)(struct cfg80211_bss *bss); |
599 | u8 priv[0] __attribute__((__aligned__(sizeof(void *)))); | 597 | u8 priv[0] __attribute__((__aligned__(sizeof(void *)))); |
@@ -782,6 +780,7 @@ void cfg80211_scan_done(struct cfg80211_scan_request *request, bool aborted); | |||
782 | * | 780 | * |
783 | * @wiphy: the wiphy reporting the BSS | 781 | * @wiphy: the wiphy reporting the BSS |
784 | * @bss: the found BSS | 782 | * @bss: the found BSS |
783 | * @signal: the signal strength, type depends on the wiphy's signal_type | ||
785 | * @gfp: context flags | 784 | * @gfp: context flags |
786 | * | 785 | * |
787 | * This informs cfg80211 that BSS information was found and | 786 | * This informs cfg80211 that BSS information was found and |
@@ -791,8 +790,7 @@ struct cfg80211_bss* | |||
791 | cfg80211_inform_bss_frame(struct wiphy *wiphy, | 790 | cfg80211_inform_bss_frame(struct wiphy *wiphy, |
792 | struct ieee80211_channel *channel, | 791 | struct ieee80211_channel *channel, |
793 | struct ieee80211_mgmt *mgmt, size_t len, | 792 | struct ieee80211_mgmt *mgmt, size_t len, |
794 | s32 signal, enum cfg80211_signal_type sigtype, | 793 | s32 signal, gfp_t gfp); |
795 | gfp_t gfp); | ||
796 | 794 | ||
797 | struct cfg80211_bss *cfg80211_get_bss(struct wiphy *wiphy, | 795 | struct cfg80211_bss *cfg80211_get_bss(struct wiphy *wiphy, |
798 | struct ieee80211_channel *channel, | 796 | struct ieee80211_channel *channel, |
diff --git a/include/net/wireless.h b/include/net/wireless.h index 1c6285eb1666..d815aa8b4534 100644 --- a/include/net/wireless.h +++ b/include/net/wireless.h | |||
@@ -200,6 +200,7 @@ struct ieee80211_supported_band { | |||
200 | * the regulatory_hint() API. This can be used by the driver | 200 | * the regulatory_hint() API. This can be used by the driver |
201 | * on the reg_notifier() if it chooses to ignore future | 201 | * on the reg_notifier() if it chooses to ignore future |
202 | * regulatory domain changes caused by other drivers. | 202 | * regulatory domain changes caused by other drivers. |
203 | * @signal_type: signal type reported in &struct cfg80211_bss. | ||
203 | */ | 204 | */ |
204 | struct wiphy { | 205 | struct wiphy { |
205 | /* assign these fields before you register the wiphy */ | 206 | /* assign these fields before you register the wiphy */ |
@@ -213,6 +214,8 @@ struct wiphy { | |||
213 | bool custom_regulatory; | 214 | bool custom_regulatory; |
214 | bool strict_regulatory; | 215 | bool strict_regulatory; |
215 | 216 | ||
217 | enum cfg80211_signal_type signal_type; | ||
218 | |||
216 | int bss_priv_size; | 219 | int bss_priv_size; |
217 | u8 max_scan_ssids; | 220 | u8 max_scan_ssids; |
218 | 221 | ||