From: Johannes Berg <[EMAIL PROTECTED]>
Date: Wed Jan 4 21:06:28 2006 +0100
Subject: [PATCH] softmac: fix some sparse warnings
Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
net/ieee80211/softmac/ieee80211softmac_auth.c | 2 +-
net/ieee80211/softmac/ieee80211softmac_io.c | 14 +++++++-------
net/ieee80211/softmac/ieee80211softmac_priv.h | 7 ++++++-
3 files changed, 14 insertions(+), 9 deletions(-)
7c2a4da7e8726203b7141d82c5e522cd5b354317
diff --git a/net/ieee80211/softmac/ieee80211softmac_auth.c
b/net/ieee80211/softmac/ieee80211softmac_auth.c
index 94cac14..286f071 100644
--- a/net/ieee80211/softmac/ieee80211softmac_auth.c
+++ b/net/ieee80211/softmac/ieee80211softmac_auth.c
@@ -243,7 +243,7 @@ free_aq:
/*
* Handle deauthorization
*/
-void
+static void
ieee80211softmac_deauth_from_net(struct ieee80211softmac_device *mac,
struct ieee80211softmac_network *net)
{
diff --git a/net/ieee80211/softmac/ieee80211softmac_io.c
b/net/ieee80211/softmac/ieee80211softmac_io.c
index 2cb3087..a142dae 100644
--- a/net/ieee80211/softmac/ieee80211softmac_io.c
+++ b/net/ieee80211/softmac/ieee80211softmac_io.c
@@ -155,7 +155,7 @@ ieee80211softmac_hdr_3addr(struct ieee80
*****************************************************************************/
/* Creates an association request packet */
-u32
+static u32
ieee80211softmac_assoc_req(struct ieee80211_assoc_request **pkt,
struct ieee80211softmac_device *mac, struct ieee80211softmac_network
*net)
{
@@ -206,7 +206,7 @@ ieee80211softmac_assoc_req(struct ieee80
}
/* Create a reassociation request packet */
-u32
+static u32
ieee80211softmac_reassoc_req(struct ieee80211_reassoc_request **pkt,
struct ieee80211softmac_device *mac, struct ieee80211softmac_network
*net)
{
@@ -253,7 +253,7 @@ ieee80211softmac_reassoc_req(struct ieee
}
/* Create an authentication packet */
-u32
+static u32
ieee80211softmac_auth(struct ieee80211_auth **pkt,
struct ieee80211softmac_device *mac, struct ieee80211softmac_network
*net,
u16 transaction, u16 status)
@@ -301,7 +301,7 @@ ieee80211softmac_auth(struct ieee80211_a
}
/* Create a disassocation or deauthentication packet */
-u32
+static u32
ieee80211softmac_disassoc_deauth(struct ieee80211_disassoc **pkt,
struct ieee80211softmac_device *mac, struct ieee80211softmac_network
*net,
u16 type, u16 reason)
@@ -318,7 +318,7 @@ ieee80211softmac_disassoc_deauth(struct
}
/* Create a probe request packet */
-u32
+static u32
ieee80211softmac_probe_req(struct ieee80211_probe_request **pkt,
struct ieee80211softmac_device *mac, struct ieee80211softmac_essid
*essid)
{
@@ -347,7 +347,7 @@ ieee80211softmac_probe_req(struct ieee80
/* Create a probe response packet */
/* FIXME: Not complete */
-u32
+static u32
ieee80211softmac_probe_resp(struct ieee80211_probe_response **pkt,
struct ieee80211softmac_device *mac, struct ieee80211softmac_network
*net)
{
@@ -430,7 +430,7 @@ ieee80211softmac_send_mgt_frame(struct i
/* Create an rts/cts frame */
-u32
+static u32
ieee80211softmac_rts_cts(struct ieee80211_hdr_2addr **pkt,
struct ieee80211softmac_device *mac, struct ieee80211softmac_network
*net,
u32 type)
diff --git a/net/ieee80211/softmac/ieee80211softmac_priv.h
b/net/ieee80211/softmac/ieee80211softmac_priv.h
index 591d3bd..44a8ba4 100644
--- a/net/ieee80211/softmac/ieee80211softmac_priv.h
+++ b/net/ieee80211/softmac/ieee80211softmac_priv.h
@@ -91,7 +91,12 @@ struct ieee80211softmac_network * ieee80
struct ieee80211softmac_device *mac, u8 *ssid, u8 ssid_len);
struct ieee80211softmac_network * ieee80211softmac_get_network_by_ssid(
struct ieee80211softmac_device *mac, u8 *ssid, u8 ssid_len);
-
+struct ieee80211softmac_network *
+ieee80211softmac_get_network_by_essid_locked(struct ieee80211softmac_device
*mac,
+ struct ieee80211softmac_essid *essid);
+struct ieee80211softmac_network *
+ieee80211softmac_get_network_by_essid(struct ieee80211softmac_device *mac,
+ struct ieee80211softmac_essid *essid);
/* Rates related */
u8 ieee80211softmac_lower_rate_delta(struct ieee80211softmac_device *mac, u8
rate, int delta);
--
1.2.4
--
John W. Linville
[EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html