Skip to content

Commit

Permalink
wifi: mac80211: Set TWT Information Frame Disabled bit as 1
Browse files Browse the repository at this point in the history
The TWT Information Frame Disabled bit of control field of TWT Setup
frame shall be set to 1 since handling TWT Information frame is not
supported by current mac80211 implementation.

Fixes: f5a4c24 ("mac80211: introduce individual TWT support in AP mode")
Signed-off-by: Howard Hsu <howard-yh.hsu@mediatek.com>
Link: https://lore.kernel.org/r/20221027015653.1448-1-howard-yh.hsu@mediatek.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Howard Hsu authored and Johannes Berg committed Nov 2, 2022
1 parent 39e7b5d commit 30ac96f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/mac80211/s1g.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ ieee80211_s1g_rx_twt_setup(struct ieee80211_sub_if_data *sdata,
goto out;
}

/* TWT Information not supported yet */
twt->control |= IEEE80211_TWT_CONTROL_RX_DISABLED;

drv_add_twt_setup(sdata->local, sdata, &sta->sta, twt);
out:
ieee80211_s1g_send_twt_setup(sdata, mgmt->sa, sdata->vif.addr, twt);
Expand Down

0 comments on commit 30ac96f

Please sign in to comment.