X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=target_firmware%2Fwlan%2Fieee80211_output.c;h=dcfe9d49d4e05bd1984a6c67cb1b40b6c7a242c9;hb=6f2219c1ab25d1dfbb5d2de6508212a27f9d7e9c;hp=3d687043405ece246a80fd14bfe8bccaef2a26ff;hpb=da213e4442109ebad163518ed9edd3467e6be863;p=open-ath9k-htc-firmware.git diff --git a/target_firmware/wlan/ieee80211_output.c b/target_firmware/wlan/ieee80211_output.c index 3d68704..dcfe9d4 100755 --- a/target_firmware/wlan/ieee80211_output.c +++ b/target_firmware/wlan/ieee80211_output.c @@ -74,7 +74,7 @@ ieee80211_tgt_crypto_encap(struct ieee80211_frame *wh, /* set the offset to 32 if the mesh control field is present */ wh_mesh = (struct ieee80211_qosframe_addr4 *)wh; - if (wh_mesh->i_qos[1] == 0x01) + if (wh_mesh->i_qos[1] & 0x01) offset = 32; iv = (a_uint8_t *) wh; @@ -136,4 +136,4 @@ ieee80211_tgt_crypto_encap(struct ieee80211_frame *wh, #undef CRYPTO_KEY_TYPE_WAPI #undef IEEE80211_WLAN_HDR_LEN } -#undef IEEE80211_ADDR_LEN +#undef IEEE80211_ADDR_LEN