diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2006-01-04 15:06:28 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-03-22 22:16:51 -0500 |
commit | 714e1a511627b7d95ff1666c66272613a96d2873 (patch) | |
tree | 2facb019a7b364f820402bf43346f674a1dcf2a0 /net/ieee80211/softmac | |
parent | 32821837fa0b3a37b1f3e020769eb2a186cfff6e (diff) |
[PATCH] softmac: fix some sparse warnings
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/ieee80211/softmac')
-rw-r--r-- | net/ieee80211/softmac/ieee80211softmac_auth.c | 2 | ||||
-rw-r--r-- | net/ieee80211/softmac/ieee80211softmac_io.c | 14 | ||||
-rw-r--r-- | net/ieee80211/softmac/ieee80211softmac_priv.h | 7 |
3 files changed, 14 insertions, 9 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_auth.c b/net/ieee80211/softmac/ieee80211softmac_auth.c index 94cac14bc1d4..286f0718eb7e 100644 --- a/net/ieee80211/softmac/ieee80211softmac_auth.c +++ b/net/ieee80211/softmac/ieee80211softmac_auth.c | |||
@@ -243,7 +243,7 @@ free_aq: | |||
243 | /* | 243 | /* |
244 | * Handle deauthorization | 244 | * Handle deauthorization |
245 | */ | 245 | */ |
246 | void | 246 | static void |
247 | ieee80211softmac_deauth_from_net(struct ieee80211softmac_device *mac, | 247 | ieee80211softmac_deauth_from_net(struct ieee80211softmac_device *mac, |
248 | struct ieee80211softmac_network *net) | 248 | struct ieee80211softmac_network *net) |
249 | { | 249 | { |
diff --git a/net/ieee80211/softmac/ieee80211softmac_io.c b/net/ieee80211/softmac/ieee80211softmac_io.c index 2cb3087197d8..a142daea6297 100644 --- a/net/ieee80211/softmac/ieee80211softmac_io.c +++ b/net/ieee80211/softmac/ieee80211softmac_io.c | |||
@@ -155,7 +155,7 @@ ieee80211softmac_hdr_3addr(struct ieee80211softmac_device *mac, | |||
155 | *****************************************************************************/ | 155 | *****************************************************************************/ |
156 | 156 | ||
157 | /* Creates an association request packet */ | 157 | /* Creates an association request packet */ |
158 | u32 | 158 | static u32 |
159 | ieee80211softmac_assoc_req(struct ieee80211_assoc_request **pkt, | 159 | ieee80211softmac_assoc_req(struct ieee80211_assoc_request **pkt, |
160 | struct ieee80211softmac_device *mac, struct ieee80211softmac_network *net) | 160 | struct ieee80211softmac_device *mac, struct ieee80211softmac_network *net) |
161 | { | 161 | { |
@@ -206,7 +206,7 @@ ieee80211softmac_assoc_req(struct ieee80211_assoc_request **pkt, | |||
206 | } | 206 | } |
207 | 207 | ||
208 | /* Create a reassociation request packet */ | 208 | /* Create a reassociation request packet */ |
209 | u32 | 209 | static u32 |
210 | ieee80211softmac_reassoc_req(struct ieee80211_reassoc_request **pkt, | 210 | ieee80211softmac_reassoc_req(struct ieee80211_reassoc_request **pkt, |
211 | struct ieee80211softmac_device *mac, struct ieee80211softmac_network *net) | 211 | struct ieee80211softmac_device *mac, struct ieee80211softmac_network *net) |
212 | { | 212 | { |
@@ -253,7 +253,7 @@ ieee80211softmac_reassoc_req(struct ieee80211_reassoc_request **pkt, | |||
253 | } | 253 | } |
254 | 254 | ||
255 | /* Create an authentication packet */ | 255 | /* Create an authentication packet */ |
256 | u32 | 256 | static u32 |
257 | ieee80211softmac_auth(struct ieee80211_auth **pkt, | 257 | ieee80211softmac_auth(struct ieee80211_auth **pkt, |
258 | struct ieee80211softmac_device *mac, struct ieee80211softmac_network *net, | 258 | struct ieee80211softmac_device *mac, struct ieee80211softmac_network *net, |
259 | u16 transaction, u16 status) | 259 | u16 transaction, u16 status) |
@@ -301,7 +301,7 @@ ieee80211softmac_auth(struct ieee80211_auth **pkt, | |||
301 | } | 301 | } |
302 | 302 | ||
303 | /* Create a disassocation or deauthentication packet */ | 303 | /* Create a disassocation or deauthentication packet */ |
304 | u32 | 304 | static u32 |
305 | ieee80211softmac_disassoc_deauth(struct ieee80211_disassoc **pkt, | 305 | ieee80211softmac_disassoc_deauth(struct ieee80211_disassoc **pkt, |
306 | struct ieee80211softmac_device *mac, struct ieee80211softmac_network *net, | 306 | struct ieee80211softmac_device *mac, struct ieee80211softmac_network *net, |
307 | u16 type, u16 reason) | 307 | u16 type, u16 reason) |
@@ -318,7 +318,7 @@ ieee80211softmac_disassoc_deauth(struct ieee80211_disassoc **pkt, | |||
318 | } | 318 | } |
319 | 319 | ||
320 | /* Create a probe request packet */ | 320 | /* Create a probe request packet */ |
321 | u32 | 321 | static u32 |
322 | ieee80211softmac_probe_req(struct ieee80211_probe_request **pkt, | 322 | ieee80211softmac_probe_req(struct ieee80211_probe_request **pkt, |
323 | struct ieee80211softmac_device *mac, struct ieee80211softmac_essid *essid) | 323 | struct ieee80211softmac_device *mac, struct ieee80211softmac_essid *essid) |
324 | { | 324 | { |
@@ -347,7 +347,7 @@ ieee80211softmac_probe_req(struct ieee80211_probe_request **pkt, | |||
347 | 347 | ||
348 | /* Create a probe response packet */ | 348 | /* Create a probe response packet */ |
349 | /* FIXME: Not complete */ | 349 | /* FIXME: Not complete */ |
350 | u32 | 350 | static u32 |
351 | ieee80211softmac_probe_resp(struct ieee80211_probe_response **pkt, | 351 | ieee80211softmac_probe_resp(struct ieee80211_probe_response **pkt, |
352 | struct ieee80211softmac_device *mac, struct ieee80211softmac_network *net) | 352 | struct ieee80211softmac_device *mac, struct ieee80211softmac_network *net) |
353 | { | 353 | { |
@@ -430,7 +430,7 @@ ieee80211softmac_send_mgt_frame(struct ieee80211softmac_device *mac, | |||
430 | 430 | ||
431 | 431 | ||
432 | /* Create an rts/cts frame */ | 432 | /* Create an rts/cts frame */ |
433 | u32 | 433 | static u32 |
434 | ieee80211softmac_rts_cts(struct ieee80211_hdr_2addr **pkt, | 434 | ieee80211softmac_rts_cts(struct ieee80211_hdr_2addr **pkt, |
435 | struct ieee80211softmac_device *mac, struct ieee80211softmac_network *net, | 435 | struct ieee80211softmac_device *mac, struct ieee80211softmac_network *net, |
436 | u32 type) | 436 | u32 type) |
diff --git a/net/ieee80211/softmac/ieee80211softmac_priv.h b/net/ieee80211/softmac/ieee80211softmac_priv.h index 591d3bdf37ee..44a8ba45355c 100644 --- a/net/ieee80211/softmac/ieee80211softmac_priv.h +++ b/net/ieee80211/softmac/ieee80211softmac_priv.h | |||
@@ -91,7 +91,12 @@ struct ieee80211softmac_network * ieee80211softmac_get_network_by_ssid_locked( | |||
91 | struct ieee80211softmac_device *mac, u8 *ssid, u8 ssid_len); | 91 | struct ieee80211softmac_device *mac, u8 *ssid, u8 ssid_len); |
92 | struct ieee80211softmac_network * ieee80211softmac_get_network_by_ssid( | 92 | struct ieee80211softmac_network * ieee80211softmac_get_network_by_ssid( |
93 | struct ieee80211softmac_device *mac, u8 *ssid, u8 ssid_len); | 93 | struct ieee80211softmac_device *mac, u8 *ssid, u8 ssid_len); |
94 | 94 | struct ieee80211softmac_network * | |
95 | ieee80211softmac_get_network_by_essid_locked(struct ieee80211softmac_device *mac, | ||
96 | struct ieee80211softmac_essid *essid); | ||
97 | struct ieee80211softmac_network * | ||
98 | ieee80211softmac_get_network_by_essid(struct ieee80211softmac_device *mac, | ||
99 | struct ieee80211softmac_essid *essid); | ||
95 | 100 | ||
96 | /* Rates related */ | 101 | /* Rates related */ |
97 | u8 ieee80211softmac_lower_rate_delta(struct ieee80211softmac_device *mac, u8 rate, int delta); | 102 | u8 ieee80211softmac_lower_rate_delta(struct ieee80211softmac_device *mac, u8 rate, int delta); |