]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Atmel wireless bigendian fix.
authorSimon Kelley <simon@thekelleys.org.uk>
Tue, 10 Aug 2004 13:00:21 +0000 (09:00 -0400)
committerJeff Garzik <jgarzik@pobox.com>
Tue, 10 Aug 2004 13:00:21 +0000 (09:00 -0400)
The following patch adds a couple of missing byteswaps and allows the
Atmel wireless driver to work in WEP mode on big-endian CPUs. (tested
on powerPC).

drivers/net/wireless/atmel.c

index 2da0102a750afd2962fafec737a0e3f016f6ff2a..cde68a4435700142d9606dc6c4eb3f494bb79cdd 100644 (file)
@@ -2647,12 +2647,12 @@ static void send_authentication_request(struct atmel_private *priv, u8 *challeng
        memcpy(header.addr3, priv->CurrentBSSID, 6);
        
        if (priv->wep_is_on) {
-               auth.alg = C80211_MGMT_AAN_SHAREDKEY
+               auth.alg = cpu_to_le16(C80211_MGMT_AAN_SHAREDKEY)
                /* no WEP for authentication frames with TrSeqNo 1 */
                if (priv->CurrentAuthentTransactionSeqNum != 1)
                        header.frame_ctl |=  cpu_to_le16(IEEE802_11_FCTL_WEP); 
        } else {
-               auth.alg = C80211_MGMT_AAN_OPENSYSTEM;
+               auth.alg = cpu_to_le16(C80211_MGMT_AAN_OPENSYSTEM);
        }
 
        auth.status = 0;