diff options
author | Luis Carlos Cobo <luisca@cozybit.com> | 2008-02-29 15:13:38 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-06 16:40:48 -0500 |
commit | 37659ff8e1d8d1f9c86bdb974d41479ccd001213 (patch) | |
tree | e7ceaebd97f6619064040e19086bc838f63f24c4 /net/mac80211/mesh_plink.c | |
parent | 96c46546e28282a743b97f26e94c7565350898b7 (diff) |
mac80211: fix mesh endianness sparse warnings and unmark it as broken
This patch fixes all the mesh related endianness warnings reported by sparse. As
they were the reason why Johannes marked mesh as BROKEN, that flag has been
removed.
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/mesh_plink.c')
-rw-r--r-- | net/mac80211/mesh_plink.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c index 7f02ae8abe90..307c90e61df6 100644 --- a/net/mac80211/mesh_plink.c +++ b/net/mac80211/mesh_plink.c | |||
@@ -85,7 +85,8 @@ void mesh_plink_dec_estab_count(struct ieee80211_sub_if_data *sdata) | |||
85 | static inline void mesh_plink_fsm_restart(struct sta_info *sta) | 85 | static inline void mesh_plink_fsm_restart(struct sta_info *sta) |
86 | { | 86 | { |
87 | sta->plink_state = LISTEN; | 87 | sta->plink_state = LISTEN; |
88 | sta->llid = sta->plid = sta->reason = sta->plink_retries = 0; | 88 | sta->llid = sta->plid = sta->reason = 0; |
89 | sta->plink_retries = 0; | ||
89 | } | 90 | } |
90 | 91 | ||
91 | static struct sta_info *mesh_plink_alloc(struct ieee80211_sub_if_data *sdata, | 92 | static struct sta_info *mesh_plink_alloc(struct ieee80211_sub_if_data *sdata, |
@@ -373,7 +374,7 @@ void mesh_plink_block(struct sta_info *sta) | |||
373 | int mesh_plink_close(struct sta_info *sta) | 374 | int mesh_plink_close(struct sta_info *sta) |
374 | { | 375 | { |
375 | struct ieee80211_sub_if_data *sdata = sta->sdata; | 376 | struct ieee80211_sub_if_data *sdata = sta->sdata; |
376 | int llid, plid, reason; | 377 | __le16 llid, plid, reason; |
377 | #ifdef CONFIG_MAC80211_VERBOSE_MPL_DEBUG | 378 | #ifdef CONFIG_MAC80211_VERBOSE_MPL_DEBUG |
378 | DECLARE_MAC_BUF(mac); | 379 | DECLARE_MAC_BUF(mac); |
379 | #endif | 380 | #endif |