aboutsummaryrefslogtreecommitdiffstats
path: root/net/ieee80211/softmac/ieee80211softmac_auth.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2006-01-31 13:48:06 -0500
committerJohn W. Linville <linville@tuxdriver.com>2006-03-22 22:17:00 -0500
commitb10c991fa4cf0f1353228e04671aa793b4b3cf1d (patch)
tree9e2a09fbca25358fefddcf5eeb36e90388dd789d /net/ieee80211/softmac/ieee80211softmac_auth.c
parentf484d582d3e66ad78dcce2465c9ec479bacc1075 (diff)
[PATCH] softmac: update deauth handler to quiet warning
Recently the deauth packet handler was updated to use a deauth packet struct (identical to the auth packet struct) and this now gives a warning. This patch updates the code to properly use a deauth struct and deauth variable. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/ieee80211/softmac/ieee80211softmac_auth.c')
-rw-r--r--net/ieee80211/softmac/ieee80211softmac_auth.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_auth.c b/net/ieee80211/softmac/ieee80211softmac_auth.c
index dd5fb0f34628..ac09e0c836ee 100644
--- a/net/ieee80211/softmac/ieee80211softmac_auth.c
+++ b/net/ieee80211/softmac/ieee80211softmac_auth.c
@@ -342,7 +342,7 @@ ieee80211softmac_deauth_req(struct ieee80211softmac_device *mac,
342 * This should be registered with ieee80211 as handle_deauth 342 * This should be registered with ieee80211 as handle_deauth
343 */ 343 */
344int 344int
345ieee80211softmac_deauth_resp(struct net_device *dev, struct ieee80211_auth *auth) 345ieee80211softmac_deauth_resp(struct net_device *dev, struct ieee80211_deauth *deauth)
346{ 346{
347 347
348 struct ieee80211softmac_network *net = NULL; 348 struct ieee80211softmac_network *net = NULL;
@@ -350,16 +350,16 @@ ieee80211softmac_deauth_resp(struct net_device *dev, struct ieee80211_auth *auth
350 350
351 function_enter(); 351 function_enter();
352 352
353 if (!auth) { 353 if (!deauth) {
354 dprintk("deauth without deauth packet. eek!\n"); 354 dprintk("deauth without deauth packet. eek!\n");
355 return 0; 355 return 0;
356 } 356 }
357 357
358 net = ieee80211softmac_get_network_by_bssid(mac, auth->header.addr2); 358 net = ieee80211softmac_get_network_by_bssid(mac, deauth->header.addr2);
359 359
360 if (net == NULL) { 360 if (net == NULL) {
361 printkl(KERN_DEBUG PFX "Received deauthentication packet from "MAC_FMT", but that network is unknown.\n", 361 printkl(KERN_DEBUG PFX "Received deauthentication packet from "MAC_FMT", but that network is unknown.\n",
362 MAC_ARG(auth->header.addr2)); 362 MAC_ARG(deauth->header.addr2));
363 return 0; 363 return 0;
364 } 364 }
365 365