Skip to content

Commit

Permalink
hostap: fix endianness with txdesc->sw_support
Browse files Browse the repository at this point in the history
it's le32, not le16...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Al Viro authored and David S. Miller committed Jan 28, 2008
1 parent 2ab1f51 commit e0c0056
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/hostap/hostap_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1852,7 +1852,7 @@ static int prism2_tx_80211(struct sk_buff *skb, struct net_device *dev)
tx_control = local->tx_control;
if (meta->tx_cb_idx) {
tx_control |= HFA384X_TX_CTRL_TX_OK;
txdesc.sw_support = cpu_to_le16(meta->tx_cb_idx);
txdesc.sw_support = cpu_to_le32(meta->tx_cb_idx);
}
txdesc.tx_control = cpu_to_le16(tx_control);
txdesc.tx_rate = meta->rate;
Expand Down Expand Up @@ -2190,7 +2190,7 @@ static void hostap_tx_callback(local_info_t *local,
return;
}

sw_support = le16_to_cpu(txdesc->sw_support);
sw_support = le32_to_cpu(txdesc->sw_support);

spin_lock(&local->lock);
cb = local->tx_callback;
Expand Down

0 comments on commit e0c0056

Please sign in to comment.