Skip to contentSkip to conversation

fix braino in mwifiex_fw_dump_info_event()

PATCH New Al Viro 1 participant 1 message Aug 4, 2018

Subsystems (3)
lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 fix braino in mwifiex_fw_dump_info_event()

... and on little-endian host it even worked ;-)

---

drivers/net/wireless/marvell/mwifiex/sta_event.c +1 -1
index 03a6492662ca..1cd42a6a25c9 100644
@@ -631,7 +631,7 @@ mwifiex_fw_dump_info_event(struct mwifiex_private *priv,
 		adapter->event_skb->data, event_skb->len);
 	adapter->devdump_len += event_skb->len;
 
-	if (le16_to_cpu(fw_dump_hdr->type == FW_DUMP_INFO_ENDED)) {
+	if (le16_to_cpu(fw_dump_hdr->type) == FW_DUMP_INFO_ENDED) {
 		mwifiex_dbg(adapter, MSG,
 			    "receive end of transmission flag event!\n");
 		goto upload_dump;