diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-10-25 22:16:23 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-11-16 08:27:37 -0800 |
commit | eeb4e8c2aeda4f366bc14bea2a3a2e10cb7bc66d (patch) | |
tree | 4b4191c78fe1f3d383bb0bd7ec5f072dcd693af2 /net | |
parent | cfebbe5fa7f4a2ec9f3b9edd56b877dc5c06f6a0 (diff) | |
download | lwn-eeb4e8c2aeda4f366bc14bea2a3a2e10cb7bc66d.tar.gz lwn-eeb4e8c2aeda4f366bc14bea2a3a2e10cb7bc66d.zip |
softmac: fix wext MLME request reason code endianness
patch 94e10bfb8a7372df3ef2759c9ec2a37de2f24aca in mainline.
The MLME request reason code is host-endian and our passing
it to the low level functions is host-endian as well since
they do the swapping. I noticed that the reason code 768 was
sent (0x300) rather than 3 when wpa_supplicant terminates.
This removes the superfluous cpu_to_le16() call.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/ieee80211/softmac/ieee80211softmac_wx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_wx.c b/net/ieee80211/softmac/ieee80211softmac_wx.c index 5742dc803b79..2b0b4c73089d 100644 --- a/net/ieee80211/softmac/ieee80211softmac_wx.c +++ b/net/ieee80211/softmac/ieee80211softmac_wx.c @@ -469,7 +469,7 @@ ieee80211softmac_wx_set_mlme(struct net_device *dev, { struct ieee80211softmac_device *mac = ieee80211_priv(dev); struct iw_mlme *mlme = (struct iw_mlme *)extra; - u16 reason = cpu_to_le16(mlme->reason_code); + u16 reason = mlme->reason_code; struct ieee80211softmac_network *net; int err = -EINVAL; |