diff options
author | Luis Carlos Cobo <luisca@cozybit.com> | 2008-03-31 20:39:18 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-04-01 17:14:12 -0400 |
commit | 6c4711b4697d93424e4b1f76a9929ba844d714a5 (patch) | |
tree | 84fe42a88c9bac873889bd03ae8173db1b2b3aeb /net/mac80211/ieee80211_i.h | |
parent | 05e5e88373d91c75e9262a3f984be511960e510d (diff) |
mac80211: use a struct for bss->mesh_config
This allows cleaner code when accesing bss->mesh_config components.
Signed-off-by: Luis Carlos Cobo <luisca@cozybit.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 0997a0f96203..6c62dd42f915 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -69,6 +69,14 @@ struct ieee80211_fragment_entry { | |||
69 | u8 last_pn[6]; /* PN of the last fragment if CCMP was used */ | 69 | u8 last_pn[6]; /* PN of the last fragment if CCMP was used */ |
70 | }; | 70 | }; |
71 | 71 | ||
72 | struct bss_mesh_config { | ||
73 | u32 path_proto_id; | ||
74 | u32 path_metric_id; | ||
75 | u32 cong_control_id; | ||
76 | u32 channel_precedence; | ||
77 | u8 mesh_version; | ||
78 | }; | ||
79 | |||
72 | 80 | ||
73 | struct ieee80211_sta_bss { | 81 | struct ieee80211_sta_bss { |
74 | struct list_head list; | 82 | struct list_head list; |
@@ -94,7 +102,7 @@ struct ieee80211_sta_bss { | |||
94 | #ifdef CONFIG_MAC80211_MESH | 102 | #ifdef CONFIG_MAC80211_MESH |
95 | u8 *mesh_id; | 103 | u8 *mesh_id; |
96 | size_t mesh_id_len; | 104 | size_t mesh_id_len; |
97 | u8 *mesh_cfg; | 105 | struct bss_mesh_config *mesh_cfg; |
98 | #endif | 106 | #endif |
99 | #define IEEE80211_MAX_SUPP_RATES 32 | 107 | #define IEEE80211_MAX_SUPP_RATES 32 |
100 | u8 supp_rates[IEEE80211_MAX_SUPP_RATES]; | 108 | u8 supp_rates[IEEE80211_MAX_SUPP_RATES]; |
@@ -113,7 +121,8 @@ struct ieee80211_sta_bss { | |||
113 | u8 erp_value; | 121 | u8 erp_value; |
114 | }; | 122 | }; |
115 | 123 | ||
116 | static inline u8 *bss_mesh_cfg(struct ieee80211_sta_bss *bss) | 124 | static inline |
125 | struct bss_mesh_config *bss_mesh_cfg(struct ieee80211_sta_bss *bss) | ||
117 | { | 126 | { |
118 | #ifdef CONFIG_MAC80211_MESH | 127 | #ifdef CONFIG_MAC80211_MESH |
119 | return bss->mesh_cfg; | 128 | return bss->mesh_cfg; |