Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c414e84b2200ca8a7e7ae565cad200e5c02e02ec
Commit:     c414e84b2200ca8a7e7ae565cad200e5c02e02ec
Parent:     b16f13d00c6f7e7317d3074f9bd07b5c9f313891
Author:     Al Viro <[EMAIL PROTECTED]>
AuthorDate: Sat Dec 29 04:58:39 2007 -0500
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 15:08:47 2008 -0800

    ieee80211softmac_auth_resp() fix
    
    The struct ieee8021_auth * passed to it comes straight from skb->data
    without any conversions; members of the struct are little-endian, so
    we'd better take that into account when doing switch by auth->algorithm,
    etc.
    
    Signed-off-by: Al Viro <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 net/ieee80211/softmac/ieee80211softmac_auth.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/net/ieee80211/softmac/ieee80211softmac_auth.c 
b/net/ieee80211/softmac/ieee80211softmac_auth.c
index a53a751..1a96c25 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)
        }
 
        /* 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to