diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-12-21 03:42:01 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:08:53 -0500 |
commit | e0c0056c677709bd1e2c18b84a1d10e54f7c8fcc (patch) | |
tree | 95545a60f18da1412d575c561045d912cbb22341 /drivers/net/wireless/hostap | |
parent | 2ab1f519cbec0902cb86f1e29b10f2f00dd020c0 (diff) |
hostap: fix endianness with txdesc->sw_support
it's le32, not le16...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/hostap')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_hw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/hostap/hostap_hw.c b/drivers/net/wireless/hostap/hostap_hw.c index 286b46c516ce..700a9c34815b 100644 --- a/drivers/net/wireless/hostap/hostap_hw.c +++ b/drivers/net/wireless/hostap/hostap_hw.c | |||
@@ -1852,7 +1852,7 @@ static int prism2_tx_80211(struct sk_buff *skb, struct net_device *dev) | |||
1852 | tx_control = local->tx_control; | 1852 | tx_control = local->tx_control; |
1853 | if (meta->tx_cb_idx) { | 1853 | if (meta->tx_cb_idx) { |
1854 | tx_control |= HFA384X_TX_CTRL_TX_OK; | 1854 | tx_control |= HFA384X_TX_CTRL_TX_OK; |
1855 | txdesc.sw_support = cpu_to_le16(meta->tx_cb_idx); | 1855 | txdesc.sw_support = cpu_to_le32(meta->tx_cb_idx); |
1856 | } | 1856 | } |
1857 | txdesc.tx_control = cpu_to_le16(tx_control); | 1857 | txdesc.tx_control = cpu_to_le16(tx_control); |
1858 | txdesc.tx_rate = meta->rate; | 1858 | txdesc.tx_rate = meta->rate; |
@@ -2190,7 +2190,7 @@ static void hostap_tx_callback(local_info_t *local, | |||
2190 | return; | 2190 | return; |
2191 | } | 2191 | } |
2192 | 2192 | ||
2193 | sw_support = le16_to_cpu(txdesc->sw_support); | 2193 | sw_support = le32_to_cpu(txdesc->sw_support); |
2194 | 2194 | ||
2195 | spin_lock(&local->lock); | 2195 | spin_lock(&local->lock); |
2196 | cb = local->tx_callback; | 2196 | cb = local->tx_callback; |