diff options
author | David S. Miller <davem@davemloft.net> | 2008-03-04 16:44:01 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-04 16:44:01 -0800 |
commit | 3123e666ea92ab0b1762e97e0785d20a0ab25088 (patch) | |
tree | aab303bf0d7158edb438de6b47886f9b574d2541 /drivers/net/wireless/rndis_wlan.c | |
parent | ed58dd41f3aeefc11a7f634db90687f92ea8632e (diff) | |
parent | c256e05b7b30fab484deacb4f8cff59ce649c75e (diff) | |
download | talos-obmc-linux-3123e666ea92ab0b1762e97e0785d20a0ab25088.tar.gz talos-obmc-linux-3123e666ea92ab0b1762e97e0785d20a0ab25088.zip |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/linville/wireless-2.6
Diffstat (limited to 'drivers/net/wireless/rndis_wlan.c')
-rw-r--r-- | drivers/net/wireless/rndis_wlan.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index d9460aed1f22..10b776c1adc5 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c @@ -260,7 +260,7 @@ struct NDIS_802_11_KEY { __le32 KeyLength; u8 Bssid[6]; u8 Padding[6]; - __le64 KeyRSC; + u8 KeyRSC[8]; u8 KeyMaterial[32]; } __attribute__((packed)); @@ -1508,7 +1508,7 @@ static int rndis_iw_set_encode_ext(struct net_device *dev, struct usbnet *usbdev = dev->priv; struct rndis_wext_private *priv = get_rndis_wext_priv(usbdev); struct NDIS_802_11_KEY ndis_key; - int i, keyidx, ret; + int keyidx, ret; u8 *addr; keyidx = wrqu->encoding.flags & IW_ENCODE_INDEX; @@ -1543,9 +1543,7 @@ static int rndis_iw_set_encode_ext(struct net_device *dev, ndis_key.KeyIndex = cpu_to_le32(keyidx); if (ext->ext_flags & IW_ENCODE_EXT_RX_SEQ_VALID) { - for (i = 0; i < 6; i++) - ndis_key.KeyRSC |= - cpu_to_le64(ext->rx_seq[i] << (i * 8)); + memcpy(ndis_key.KeyRSC, ext->rx_seq, 6); ndis_key.KeyIndex |= cpu_to_le32(1 << 29); } |