Commit 5d24bcd5 authored by Kenneth Lu's avatar Kenneth Lu Committed by Kalle Valo

ath6kl: improve endianness handling

Replace ntohs with be16_to_cpu to do endian conversions for ethhdr
h_proto assignment.
Signed-off-by: default avatarKenneth Lu <kuohsianglu@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 42e01cb9
...@@ -1001,7 +1001,7 @@ static void aggr_slice_amsdu(struct aggr_info *p_aggr, ...@@ -1001,7 +1001,7 @@ static void aggr_slice_amsdu(struct aggr_info *p_aggr,
while (amsdu_len > mac_hdr_len) { while (amsdu_len > mac_hdr_len) {
hdr = (struct ethhdr *) framep; 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 || if (payload_8023_len < MIN_MSDU_SUBFRAME_PAYLOAD_LEN ||
payload_8023_len > MAX_MSDU_SUBFRAME_PAYLOAD_LEN) { payload_8023_len > MAX_MSDU_SUBFRAME_PAYLOAD_LEN) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment