Commit 1b2e9feb authored by Stefan Kerkmann's avatar Stefan Kerkmann Committed by Johannes Berg
Browse files

wifi: mwifiex: fix endianness handling in mwifiex_send_rgpower_table



The length of the host command is a u16 stored in little endian byte
order, which needs byte order conversion to work correctly on big endian
systems.

Reported-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/linux-wireless/aLqZI4FfOI4iJZtf@stanley.mountain


Fixes: 7b6f16a2 ("wifi: mwifiex: add rgpower table loading support")
Signed-off-by: default avatarStefan Kerkmann <s.kerkmann@pengutronix.de>
Reviewed-by: default avatarFrancesco Dolcini <francesco.dolcini@toradex.com>
Link: https://patch.msgid.link/20250910-for-next-v1-1-3ee311706231@pengutronix.de


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 6f4f8aba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment