aboutsummaryrefslogtreecommitdiffstats
path: root/net/ieee80211
diff options
context:
space:
mode:
Diffstat (limited to 'net/ieee80211')
-rw-r--r--net/ieee80211/softmac/ieee80211softmac_auth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_auth.c b/net/ieee80211/softmac/ieee80211softmac_auth.c
index a53a751d0702..1a96c2572578 100644
--- a/net/ieee80211/softmac/ieee80211softmac_auth.c
+++ b/net/ieee80211/softmac/ieee80211softmac_auth.c
@@ -178,11 +178,11 @@ ieee80211softmac_auth_resp(struct net_device *dev, struct ieee80211_auth *auth)
178 } 178 }
179 179
180 /* Parse the auth packet */ 180 /* Parse the auth packet */
181 switch(auth->algorithm) { 181 switch(le16_to_cpu(auth->algorithm)) {
182 case WLAN_AUTH_OPEN: 182 case WLAN_AUTH_OPEN:
183 /* Check the status code of the response */ 183 /* Check the status code of the response */
184 184
185 switch(auth->status) { 185 switch(le16_to_cpu(auth->status)) {
186 case WLAN_STATUS_SUCCESS: 186 case WLAN_STATUS_SUCCESS:
187 /* Update the status to Authenticated */ 187 /* Update the status to Authenticated */
188 spin_lock_irqsave(&mac->lock, flags); 188 spin_lock_irqsave(&mac->lock, flags);
@@ -210,7 +210,7 @@ ieee80211softmac_auth_resp(struct net_device *dev, struct ieee80211_auth *auth)
210 break; 210 break;
211 case WLAN_AUTH_SHARED_KEY: 211 case WLAN_AUTH_SHARED_KEY:
212 /* Figure out where we are in the process */ 212 /* Figure out where we are in the process */
213 switch(auth->transaction) { 213 switch(le16_to_cpu(auth->transaction)) {
214 case IEEE80211SOFTMAC_AUTH_SHARED_CHALLENGE: 214 case IEEE80211SOFTMAC_AUTH_SHARED_CHALLENGE:
215 /* Check to make sure we have a challenge IE */ 215 /* Check to make sure we have a challenge IE */
216 data = (u8 *)auth->info_element; 216 data = (u8 *)auth->info_element;