diff options
author | Moritz Muehlenhoff <jmm@debian.org> | 2009-01-21 22:00:45 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:53:17 -0700 |
commit | ae26230bf93d37de73febdd1990090dcbd489b38 (patch) | |
tree | fba2d9038a7eb9dec440d6e543c41bbe06304ef3 /drivers/staging/wlan-ng/prism2sta.c | |
parent | 8a251b55ef34c2a03e8ddf6d17bb125b92bb4a54 (diff) |
Staging: wlan-ng: Use generic byteorder macros
This patch removes the ieee2host16(), ieee2host32(), host2ieee16()
and host2ieee32() macros and replaces them with the generic ones.
Signed-off-by: Moritz Muehlenhoff <jmm@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/wlan-ng/prism2sta.c')
-rw-r--r-- | drivers/staging/wlan-ng/prism2sta.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/wlan-ng/prism2sta.c b/drivers/staging/wlan-ng/prism2sta.c index 7a0b960f2c58..45d4455f11d7 100644 --- a/drivers/staging/wlan-ng/prism2sta.c +++ b/drivers/staging/wlan-ng/prism2sta.c @@ -65,6 +65,7 @@ #include <linux/wireless.h> #include <linux/netdevice.h> #include <linux/workqueue.h> +#include <linux/byteorder/generic.h> #include <asm/io.h> #include <linux/delay.h> @@ -316,7 +317,7 @@ static int prism2sta_txframe(wlandevice_t *wlandev, struct sk_buff *skb, /* If necessary, set the 802.11 WEP bit */ if ((wlandev->hostwep & (HOSTWEP_PRIVACYINVOKED | HOSTWEP_ENCRYPT)) == HOSTWEP_PRIVACYINVOKED) { - p80211_hdr->a3.fc |= host2ieee16(WLAN_SET_FC_ISWEP(1)); + p80211_hdr->a3.fc |= cpu_to_le16(WLAN_SET_FC_ISWEP(1)); } result = hfa384x_drvr_txframe(hw, skb, p80211_hdr, p80211_wep); |