Skip to contentSkip to conversation

mac80211: fix reason code output endianness

PATCH New Johannes Berg 1 participant 1 message Oct 29, 2009 mac80211

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 mac80211: fix reason code output endianness

When HT debugging is enabled and we receive a DelBA frame we print out the reason code in the wrong byte order. Fix that so we don't get weird values printed.

---
 net/mac80211/ht.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac80211/ht.c +1 -1
@@ -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)