diff mbox

mac80211: fix reason code output endianness

Message ID 1256807368.3865.92.camel@johannes.local (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Johannes Berg Oct. 29, 2009, 9:09 a.m. UTC
None
diff mbox

Patch

--- wireless-testing.orig/net/mac80211/ht.c	2009-10-29 10:07:41.000000000 +0100
+++ wireless-testing/net/mac80211/ht.c	2009-10-29 10:07:49.000000000 +0100
@@ -153,7 +153,7 @@  void ieee80211_process_delba(struct ieee
 	if (net_ratelimit())
 		printk(KERN_DEBUG "delba from %pM (%s) tid %d reason code %d\n",
 			mgmt->sa, initiator ? "initiator" : "recipient", tid,
-			mgmt->u.action.u.delba.reason_code);
+			le16_to_cpu(mgmt->u.action.u.delba.reason_code));
 #endif /* CONFIG_MAC80211_HT_DEBUG */
 
 	if (initiator == WLAN_BACK_INITIATOR)