* [PATCH] ath6kl: improve endianness handling
@ 2017-12-02 9:54 Kenneth Lu
2017-12-07 14:36 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Kenneth Lu @ 2017-12-02 9:54 UTC (permalink / raw)
To: kvalo; +Cc: linux-wireless, ath6kl
Replace ntohs with be16_to_cpu to do endian conversions for ethhdr
h_proto assignment.
Signed-off-by: Kenneth Lu <kuohsianglu@gmail.com>
---
drivers/net/wireless/ath/ath6kl/txrx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath6kl/txrx.c b/drivers/net/wireless/ath/ath6kl/txrx.c
index 1379906..8da9506 100644
--- a/drivers/net/wireless/ath/ath6kl/txrx.c
+++ b/drivers/net/wireless/ath/ath6kl/txrx.c
@@ -1001,7 +1001,7 @@ static void aggr_slice_amsdu(struct aggr_info *p_aggr,
while (amsdu_len > mac_hdr_len) {
hdr = (struct ethhdr *) framep;
- payload_8023_len = ntohs(hdr->h_proto);
+ payload_8023_len = be16_to_cpu(hdr->h_proto);
if (payload_8023_len < MIN_MSDU_SUBFRAME_PAYLOAD_LEN ||
payload_8023_len > MAX_MSDU_SUBFRAME_PAYLOAD_LEN) {
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: ath6kl: improve endianness handling
2017-12-02 9:54 [PATCH] ath6kl: improve endianness handling Kenneth Lu
@ 2017-12-07 14:36 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2017-12-07 14:36 UTC (permalink / raw)
To: Kenneth Lu; +Cc: linux-wireless, ath6kl
Kenneth Lu <kuohsianglu@gmail.com> wrote:
> Replace ntohs with be16_to_cpu to do endian conversions for ethhdr
> h_proto assignment.
>
> Signed-off-by: Kenneth Lu <kuohsianglu@gmail.com>
> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Patch applied to ath-next branch of ath.git, thanks.
5d24bcd56dc7 ath6kl: improve endianness handling
--
https://patchwork.kernel.org/patch/10088565/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-12-07 14:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-02 9:54 [PATCH] ath6kl: improve endianness handling Kenneth Lu
2017-12-07 14:36 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).