possible bug in sta_info.c : ieee80211_send_null_response
Hi,
in this function there is some effort to set the EOSP flag in QoS Null frames:
if (reason == IEEE80211_FRAME_RELEASE_UAPSD)
nullfunc->qos_ctrl |= cpu_to_le16(IEEE80211_QOS_CTL_EOSP);
ieee80211_xmit is called at the end of the function. Which then calls ieee80211_set_qos_hdr.
But ieee80211_set_qos_hdr will completely overwrite the QoS header again. So, what is wrong here?
Regards
Marco
begin:vcard
fn:Marco Porsch
n:Porsch;Marco
org:Chemnitz University of Technology;Communication Networks adr;quoted-printable;quoted-printable:Fakult=C3=A4t f=C3=BCr Elektrotechnik und Informationstechnik , Professur=
Kommunikationsnetze;;Technische Universit=C3=A4t Chemnitz;Chemnitz;;D - 09107;Germany
email;internet:[email protected]
title:Dipl.-Ing.
tel;work:+49 371 531 37523
version:2.1
end:vcard
Quoted 5 lines · Marco Porsch
ieee80211_xmitis called at the end of the function. Which then callsieee80211_set_qos_hdr.But
ieee80211_set_qos_hdrwill completely overwrite the QoS header again. So, what is wrong here?
You, I think?
void ieee80211_set_qos_hdr(struct ieee80211_sub_if_data *sdata,
struct sk_buff *skb)
...
/* preserve EOSP bit */
ack_policy = *p & IEEE80211_QOS_CTL_EOSP;
...
/* qos header is 2 bytes */
*p++ = ack_policy | tid;
*p = ieee80211_vif_is_mesh(&sdata->vif) ?
(IEEE80211_QOS_CTL_MESH_CONTROL_PRESENT >> 8) :0;
johannes