From 9f61f2a79437cbfe350ecff8d9e2b068e57c6e6a Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sat, 29 Dec 2007 04:58:39 -0500 Subject: [PATCH] --- yaml --- r: 79331 b: refs/heads/master c: c414e84b2200ca8a7e7ae565cad200e5c02e02ec h: refs/heads/master i: 79329: 0244b839691dc227407067712f606933a567d807 79327: 5a7b0e3fdce42453d8cdb16106fdd071a576d79a v: v3 --- [refs] | 2 +- trunk/net/ieee80211/softmac/ieee80211softmac_auth.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index d1fb738ca107..ed68de0e476b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b16f13d00c6f7e7317d3074f9bd07b5c9f313891 +refs/heads/master: c414e84b2200ca8a7e7ae565cad200e5c02e02ec diff --git a/trunk/net/ieee80211/softmac/ieee80211softmac_auth.c b/trunk/net/ieee80211/softmac/ieee80211softmac_auth.c index a53a751d0702..1a96c2572578 100644 --- a/trunk/net/ieee80211/softmac/ieee80211softmac_auth.c +++ b/trunk/net/ieee80211/softmac/ieee80211softmac_auth.c @@ -178,11 +178,11 @@ ieee80211softmac_auth_resp(struct net_device *dev, struct ieee80211_auth *auth) } /* Parse the auth packet */ - switch(auth->algorithm) { + switch(le16_to_cpu(auth->algorithm)) { case WLAN_AUTH_OPEN: /* Check the status code of the response */ - switch(auth->status) { + switch(le16_to_cpu(auth->status)) { case WLAN_STATUS_SUCCESS: /* Update the status to Authenticated */ spin_lock_irqsave(&mac->lock, flags); @@ -210,7 +210,7 @@ ieee80211softmac_auth_resp(struct net_device *dev, struct ieee80211_auth *auth) break; case WLAN_AUTH_SHARED_KEY: /* Figure out where we are in the process */ - switch(auth->transaction) { + switch(le16_to_cpu(auth->transaction)) { case IEEE80211SOFTMAC_AUTH_SHARED_CHALLENGE: /* Check to make sure we have a challenge IE */ data = (u8 *)auth->info_element;