]> git.karo-electronics.de Git - karo-tx-linux.git/commit
softmac: fix wext MLME request reason code endianness
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 25 Oct 2007 20:16:23 +0000 (22:16 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Nov 2007 16:27:37 +0000 (08:27 -0800)
commiteeb4e8c2aeda4f366bc14bea2a3a2e10cb7bc66d
tree4b4191c78fe1f3d383bb0bd7ec5f072dcd693af2
parentcfebbe5fa7f4a2ec9f3b9edd56b877dc5c06f6a0
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>
net/ieee80211/softmac/ieee80211softmac_wx.c