blob: 6d2768cfce30c8f0881d8244a4e50d522b730eb4 [file] [log] [blame]
developera09ec1d2022-11-26 11:00:33 +08001From 2ab83ae18c82ad410bc9eab8c49d8f1718c9f7b2 Mon Sep 17 00:00:00 2001
developer2e487862022-10-04 11:16:07 +08002From: Howard Hsu <howard-yh.hsu@mediatek.com>
3Date: Tue, 4 Oct 2022 10:47:05 +0800
developera09ec1d2022-11-26 11:00:33 +08004Subject: [PATCH 912/913] mac80211: mtk: Set TWT Information Frame Disabled bit
5 as 1.
developer2e487862022-10-04 11:16:07 +08006
developera09ec1d2022-11-26 11:00:33 +08007This modification means that current implementation do not support twt information frame.
developer2e487862022-10-04 11:16:07 +08008---
9 net/mac80211/s1g.c | 1 +
10 1 file changed, 1 insertion(+)
11
12diff --git a/net/mac80211/s1g.c b/net/mac80211/s1g.c
13index 4141bc8..82da404 100644
14--- a/net/mac80211/s1g.c
15+++ b/net/mac80211/s1g.c
16@@ -101,6 +101,7 @@ ieee80211_s1g_rx_twt_setup(struct ieee80211_sub_if_data *sdata,
17 struct ieee80211_twt_params *twt_agrt = (void *)twt->params;
18
19 twt_agrt->req_type &= cpu_to_le16(~IEEE80211_TWT_REQTYPE_REQUEST);
20+ twt->control |= IEEE80211_TWT_CONTROL_RX_DISABLED;
21
22 /* broadcast TWT not supported yet */
23 if (twt->control & IEEE80211_TWT_CONTROL_NEG_TYPE_BROADCAST) {
24--
developera09ec1d2022-11-26 11:00:33 +0800252.36.1
developer2e487862022-10-04 11:16:07 +080026