mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacmn: Fix mic header derivation for 4 addr format packets
Extract the QoS field for 4 address format packets from the correct offset. Change-Id: Icae4750026c2834bc84eebccbe6fa835212ccb18 CRs-Fixed: 2257255
This commit is contained in:
parent
9a6dbbc0de
commit
068e6b92df
1 changed files with 10 additions and 3 deletions
|
|
@ -572,9 +572,16 @@ static void dp_rx_defrag_michdr(const struct ieee80211_frame *wh0,
|
|||
* a mgt type frame. It comes into picture for MFP.
|
||||
*/
|
||||
if (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_QOS) {
|
||||
const struct ieee80211_qosframe *qwh =
|
||||
(const struct ieee80211_qosframe *)wh;
|
||||
hdr[12] = qwh->i_qos[0] & IEEE80211_QOS_TID;
|
||||
if ((wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) ==
|
||||
IEEE80211_FC1_DIR_DSTODS) {
|
||||
const struct ieee80211_qosframe_addr4 *qwh =
|
||||
(const struct ieee80211_qosframe_addr4 *)wh;
|
||||
hdr[12] = qwh->i_qos[0] & IEEE80211_QOS_TID;
|
||||
} else {
|
||||
const struct ieee80211_qosframe *qwh =
|
||||
(const struct ieee80211_qosframe *)wh;
|
||||
hdr[12] = qwh->i_qos[0] & IEEE80211_QOS_TID;
|
||||
}
|
||||
} else {
|
||||
hdr[12] = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue