mac80211_hwsim: enable TODS BIT in null data frame
Same as in ieee80211_nullfunc_get, enable the TODS bit, otherwise the nullfunc packet will not be handled in ap rx path. (will be dropped in ieee80211_accept_frame()). Signed-off-by: Adiel Aloni <adiel.aloni@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
4564b187c1
commit
b65c7b8aea
|
@ -684,6 +684,7 @@ static void hwsim_send_nullfunc(struct mac80211_hwsim_data *data, u8 *mac,
|
|||
hdr = skb_put(skb, sizeof(*hdr) - ETH_ALEN);
|
||||
hdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_DATA |
|
||||
IEEE80211_STYPE_NULLFUNC |
|
||||
IEEE80211_FCTL_TODS |
|
||||
(ps ? IEEE80211_FCTL_PM : 0));
|
||||
hdr->duration_id = cpu_to_le16(0);
|
||||
memcpy(hdr->addr1, vp->bssid, ETH_ALEN);
|
||||
|
|
Loading…
Reference in New Issue