Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3481226pxb; Mon, 4 Apr 2022 18:20:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2BTf8HmrssxKHCpmFmPZpTShZzCirDBYfh65bk5vW0Pn37WdtktLairK2Om9mrbFhB5qI X-Received: by 2002:a63:5520:0:b0:399:8cd:5f62 with SMTP id j32-20020a635520000000b0039908cd5f62mr810187pgb.12.1649121645999; Mon, 04 Apr 2022 18:20:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649121645; cv=none; d=google.com; s=arc-20160816; b=SeHVf4IHgpjNZqQC8VnNjH7wHqTGpsMNOMrVooHPsgAJgHFE/7BuEpMyLwIk6lTgPv 45OYlA4qL10Q1V7VV3Vmrh/8gRVtzTDlFq1O5y+dhjV0CiAqH4vlXKSTY/KwVA5cbG/R 2sXrICjRHw3IkpnuRjA5DukE3cz3UoTgWhuzaw8ZpjEwuaj0vjajK04TAx/hBr14Zd/X n5d635vnrAKEPu7o0D/jOcyueh3VQk/i3TpM8NYal2SGs5LLv9kzE6RtylihnaU20gVc Bq+Gep1VrS1MlgDJbwot9JwH5d3E20mONNgFzvigjDzsyzx5JQQF/l/UuLVXOdgi9VVI hoMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EiZF/Qr6iwGs2hyqUfY7JePap+6rMqg9c0ZRjVkijgY=; b=HfiAXGsIgZHzyksXY71+F66pVWM0kE4nBs20O92tyIkylTqSMDub5M7mhcWaJXKR1p tUUlnnfzmhewScDJa6myrmJ4nUthP3nf8YstT0QqcBzHVMXxtnUbQyo0r6GrzAOSODEn LCWRV6sHTfAJR7qwLkA/epnkg8MRXbqLfbzt2IZg37Q0+lUQmPEFJFEw4MbidhGsPw8k RGM0aALDi40CmXs4d9d6DFhzM+Dsu8XPyPiUaIklHQmVJ1oUxNcCl2gv36TKxQH7+jR9 zT50ECvx2hoEOQdDhytHO6Ax6RVmxn/8aaMnQ/I37nyYE9pZ+AODwsuntu5u9Rcbtk1J J7Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="i/HCaEqv"; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h6-20020a632106000000b003816043f10dsi10676555pgh.770.2022.04.04.18.20.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 18:20:45 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="i/HCaEqv"; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4DB791EC9B7; Mon, 4 Apr 2022 17:24:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378933AbiDDVS1 (ORCPT + 69 others); Mon, 4 Apr 2022 17:18:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378918AbiDDQEy (ORCPT ); Mon, 4 Apr 2022 12:04:54 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 39B0C427DA for ; Mon, 4 Apr 2022 09:02:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649088176; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=EiZF/Qr6iwGs2hyqUfY7JePap+6rMqg9c0ZRjVkijgY=; b=i/HCaEqv8JbKQRBcNnZJ+i82m2PjECdV47wLwMzEDuvInuEYbkyc7aM4/sI5Z4Iq4hUFTj qiCB2ZR0fmfNoNDOZh3lQh4a37z6MQczk8ynCJVM3o24Ps63/NCNGRv0SgAOOFnRkr1d83 s4whTgHSswWgyu5672SGj4PTCjkJpXA= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-636--O2bKZFDM3C56dYfmuK4EA-1; Mon, 04 Apr 2022 12:02:53 -0400 X-MC-Unique: -O2bKZFDM3C56dYfmuK4EA-1 Received: by mail-wr1-f69.google.com with SMTP id r26-20020adfa15a000000b002061064408fso748222wrr.3 for ; Mon, 04 Apr 2022 09:02:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=EiZF/Qr6iwGs2hyqUfY7JePap+6rMqg9c0ZRjVkijgY=; b=5wVOdR9dCUPdOboYJWkOczO6nDJW/ymwjNm1fOMdZUC6a0+brtmSBrtiy1DxI8PQCl uOze49PE26u47Er3lNcz2/WI5LIVt7GMyPuInmT+1tDy1dpZJSRLdYHK3ION+F8UR+Wc Aq3Alrn4h0l+koaPB/wqCbU807VRwVVJyPWkGgy4gcn8WGxNZIgUyWjlCog/o0sPlUrf 0r2qt7/ZkUAJ7CNUlAfPsmecTwwzkSaxIbHK1+vpCc4LdNni/AM6f4BM5LGxyWFHNs+h KoW6koPE95YM/uriB9kakEOsiyxAQMm9bLeGAlpJcUIuRszdmNIg5cxIj98QGDfbSAlM eCAQ== X-Gm-Message-State: AOAM531x3dbwz0N55fAVKbCFlaH3laMjp61PjT1ZhZhdHrvv1OplgYPO pF89w5K80qgpufgePqdPP3L+zuUnPCioqxsczFWzjAzXA2CqAryCNXA47zFtbcp3Gs71+3RPIJ3 hiRwX708USAj5Q9bPTTTCWHpavQY= X-Received: by 2002:adf:fa83:0:b0:206:1084:37ec with SMTP id h3-20020adffa83000000b00206108437ecmr319490wrr.417.1649088171794; Mon, 04 Apr 2022 09:02:51 -0700 (PDT) X-Received: by 2002:adf:fa83:0:b0:206:1084:37ec with SMTP id h3-20020adffa83000000b00206108437ecmr319472wrr.417.1649088171525; Mon, 04 Apr 2022 09:02:51 -0700 (PDT) Received: from localhost (net-93-71-56-156.cust.vodafonedsl.it. [93.71.56.156]) by smtp.gmail.com with ESMTPSA id 100-20020adf806d000000b00205ba671b25sm9842086wrk.56.2022.04.04.09.02.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 09:02:50 -0700 (PDT) Date: Mon, 4 Apr 2022 18:02:49 +0200 From: Lorenzo Bianconi To: sean.wang@mediatek.com Cc: nbd@nbd.name, Soul.Huang@mediatek.com, YN.Chen@mediatek.com, Leon.Yen@mediatek.com, Eric-SY.Chang@mediatek.com, Deren.Wu@mediatek.com, km.lin@mediatek.com, jenhao.yang@mediatek.com, robin.chiu@mediatek.com, Eddie.Chen@mediatek.com, ch.yeh@mediatek.com, posh.sun@mediatek.com, ted.huang@mediatek.com, Eric.Liang@mediatek.com, Stella.Chang@mediatek.com, Tom.Chou@mediatek.com, steve.lee@mediatek.com, jsiuda@google.com, frankgor@google.com, jemele@google.com, abhishekpandit@google.com, shawnku@google.com, linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH] mt76: mt7921: Add hotspot mode support Message-ID: References: <734908dd741b85b7cc3855f23596cc5884c335e4.1648765636.git.objelf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+BimVkDN4/xKoKAF" Content-Disposition: inline In-Reply-To: <734908dd741b85b7cc3855f23596cc5884c335e4.1648765636.git.objelf@gmail.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --+BimVkDN4/xKoKAF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > From: Sean Wang >=20 > add hostspot mode support to mt7921 that can work for mt7921[e,s,u] > with the common code. >=20 > Tested-by: Deren Wu > Signed-off-by: Sean Wang > --- > .../net/wireless/mediatek/mt76/mt7921/init.c | 11 ++- > .../net/wireless/mediatek/mt76/mt7921/mac.c | 9 +++ > .../net/wireless/mediatek/mt76/mt7921/main.c | 46 +++++++++++ > .../net/wireless/mediatek/mt76/mt7921/mcu.c | 79 ++++++++++++++++++- > .../wireless/mediatek/mt76/mt7921/mt7921.h | 4 + > 5 files changed, 147 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/init.c b/drivers/n= et/wireless/mediatek/mt76/mt7921/init.c > index 91fc41922d95..f9e1255bd9c7 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt7921/init.c > +++ b/drivers/net/wireless/mediatek/mt76/mt7921/init.c > @@ -11,6 +11,10 @@ static const struct ieee80211_iface_limit if_limits[] = =3D { > { > .max =3D MT7921_MAX_INTERFACES, > .types =3D BIT(NL80211_IFTYPE_STATION) > + }, > + { > + .max =3D 1, > + .types =3D BIT(NL80211_IFTYPE_AP) > } > }; > =20 > @@ -64,7 +68,8 @@ mt7921_init_wiphy(struct ieee80211_hw *hw) > wiphy->iface_combinations =3D if_comb; > wiphy->flags &=3D ~(WIPHY_FLAG_IBSS_RSN | WIPHY_FLAG_4ADDR_AP | > WIPHY_FLAG_4ADDR_STATION); > - wiphy->interface_modes =3D BIT(NL80211_IFTYPE_STATION); > + wiphy->interface_modes =3D BIT(NL80211_IFTYPE_STATION) | > + BIT(NL80211_IFTYPE_AP); > wiphy->n_iface_combinations =3D ARRAY_SIZE(if_comb); > wiphy->max_scan_ie_len =3D MT76_CONNAC_SCAN_IE_LEN; > wiphy->max_scan_ssids =3D 4; > @@ -80,6 +85,10 @@ mt7921_init_wiphy(struct ieee80211_hw *hw) > wiphy->features |=3D NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR | > NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR; > wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_SET_SCAN_DWELL); > + wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_BEACON_RATE_LEGACY); > + wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_BEACON_RATE_HT); > + wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_BEACON_RATE_VHT); > + wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_BEACON_RATE_HE); > =20 > ieee80211_hw_set(hw, SINGLE_SCAN_ON_ALL_BANDS); > ieee80211_hw_set(hw, HAS_RATE_CONTROL); > diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/mac.c b/drivers/ne= t/wireless/mediatek/mt76/mt7921/mac.c > index f34070ca7bbe..368e54c53ddd 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt7921/mac.c > +++ b/drivers/net/wireless/mediatek/mt76/mt7921/mac.c > @@ -1361,12 +1361,21 @@ mt7921_vif_connect_iter(void *priv, u8 *mac, > { > struct mt7921_vif *mvif =3D (struct mt7921_vif *)vif->drv_priv; > struct mt7921_dev *dev =3D mvif->phy->dev; > + struct ieee80211_hw *hw =3D mt76_hw(dev); > =20 > if (vif->type =3D=3D NL80211_IFTYPE_STATION) > ieee80211_disconnect(vif, true); > =20 > mt76_connac_mcu_uni_add_dev(&dev->mphy, vif, &mvif->sta.wcid, true); > mt7921_mcu_set_tx(dev, vif); > + > + if (vif->type =3D=3D NL80211_IFTYPE_AP) { > + mt76_connac_mcu_uni_add_bss(dev->phy.mt76, vif, &mvif->sta.wcid, > + true); > + mt7921_mcu_sta_update(dev, NULL, vif, true, > + MT76_STA_INFO_STATE_NONE); > + mt7921_mcu_uni_add_beacon_offload(dev, hw, vif, true); > + } > } > =20 > /* system error recovery */ > diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/main.c b/drivers/n= et/wireless/mediatek/mt76/mt7921/main.c > index ae86705faec2..52b7e3684189 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt7921/main.c > +++ b/drivers/net/wireless/mediatek/mt76/mt7921/main.c > @@ -53,6 +53,7 @@ mt7921_init_he_caps(struct mt7921_phy *phy, enum nl8021= 1_band band, > =20 > switch (i) { > case NL80211_IFTYPE_STATION: > + case NL80211_IFTYPE_AP: > break; > default: > continue; > @@ -86,6 +87,23 @@ mt7921_init_he_caps(struct mt7921_phy *phy, enum nl802= 11_band band, > IEEE80211_HE_PHY_CAP2_UL_MU_PARTIAL_MU_MIMO; > =20 > switch (i) { > + case NL80211_IFTYPE_AP: > + he_cap_elem->mac_cap_info[2] |=3D > + IEEE80211_HE_MAC_CAP2_BSR; > + he_cap_elem->mac_cap_info[4] |=3D > + IEEE80211_HE_MAC_CAP4_BQR; > + he_cap_elem->mac_cap_info[5] |=3D > + IEEE80211_HE_MAC_CAP5_OM_CTRL_UL_MU_DATA_DIS_RX; > + he_cap_elem->phy_cap_info[3] |=3D > + IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_TX_QPSK | > + IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_RX_QPSK; > + he_cap_elem->phy_cap_info[6] |=3D > + IEEE80211_HE_PHY_CAP6_PARTIAL_BW_EXT_RANGE | > + IEEE80211_HE_PHY_CAP6_PPE_THRESHOLD_PRESENT; > + he_cap_elem->phy_cap_info[9] |=3D > + IEEE80211_HE_PHY_CAP9_TX_1024_QAM_LESS_THAN_242_TONE_RU | > + IEEE80211_HE_PHY_CAP9_RX_1024_QAM_LESS_THAN_242_TONE_RU; > + break; > case NL80211_IFTYPE_STATION: > he_cap_elem->mac_cap_info[1] |=3D > IEEE80211_HE_MAC_CAP1_TF_MAC_PAD_DUR_16US; > @@ -634,6 +652,21 @@ static void mt7921_bss_info_changed(struct ieee80211= _hw *hw, > } > } > =20 > + if (changed & BSS_CHANGED_BEACON_ENABLED && info->enable_beacon) { > + struct mt7921_vif *mvif =3D (struct mt7921_vif *)vif->drv_priv; > + > + mt76_connac_mcu_uni_add_bss(phy->mt76, vif, &mvif->sta.wcid, > + true); > + mt7921_mcu_sta_update(dev, NULL, vif, true, > + MT76_STA_INFO_STATE_NONE); > + } > + > + if (changed & (BSS_CHANGED_BEACON | > + BSS_CHANGED_BEACON_ENABLED)) { nit: we do not need brackets here. > + mt7921_mcu_uni_add_beacon_offload(dev, hw, vif, > + info->enable_beacon); > + } > + > /* ensure that enable txcmd_mode after bss_info */ > if (changed & (BSS_CHANGED_QOS | BSS_CHANGED_BEACON_ENABLED)) > mt7921_mcu_set_tx(dev, vif); > @@ -1394,6 +1427,18 @@ static int mt7921_set_sar_specs(struct ieee80211_h= w *hw, > return err; > } > =20 > +static void > +mt7921_channel_switch_beacon(struct ieee80211_hw *hw, > + struct ieee80211_vif *vif, > + struct cfg80211_chan_def *chandef) > +{ > + struct mt7921_dev *dev =3D mt7921_hw_dev(hw); > + > + mt7921_mutex_acquire(dev); > + mt7921_mcu_uni_add_beacon_offload(dev, hw, vif, true); > + mt7921_mutex_release(dev); > +} > + > const struct ieee80211_ops mt7921_ops =3D { > .tx =3D mt7921_tx, > .start =3D mt7921_start, > @@ -1412,6 +1457,7 @@ const struct ieee80211_ops mt7921_ops =3D { > .set_rts_threshold =3D mt7921_set_rts_threshold, > .wake_tx_queue =3D mt76_wake_tx_queue, > .release_buffered_frames =3D mt76_release_buffered_frames, > + .channel_switch_beacon =3D mt7921_channel_switch_beacon, > .get_txpower =3D mt76_get_txpower, > .get_stats =3D mt7921_get_stats, > .get_et_sset_count =3D mt7921_get_et_sset_count, > diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/mcu.c b/drivers/ne= t/wireless/mediatek/mt76/mt7921/mcu.c > index da2be050ed7c..1ecbbe4fa498 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt7921/mcu.c > +++ b/drivers/net/wireless/mediatek/mt76/mt7921/mcu.c > @@ -248,7 +248,8 @@ mt7921_mcu_connection_loss_iter(void *priv, u8 *mac, > if (mvif->idx !=3D event->bss_idx) > return; > =20 > - if (!(vif->driver_flags & IEEE80211_VIF_BEACON_FILTER)) > + if (!(vif->driver_flags & IEEE80211_VIF_BEACON_FILTER) || > + vif->type !=3D NL80211_IFTYPE_STATION) > return; > =20 > ieee80211_connection_loss(vif); > @@ -1166,3 +1167,79 @@ int mt7921_mcu_set_sniffer(struct mt7921_dev *dev,= struct ieee80211_vif *vif, > return mt76_mcu_send_msg(&dev->mt76, MCU_UNI_CMD(SNIFFER), &req, sizeof= (req), > true); > } > + > +int > +mt7921_mcu_uni_add_beacon_offload(struct mt7921_dev *dev, > + struct ieee80211_hw *hw, > + struct ieee80211_vif *vif, > + bool enable) > +{ > + struct mt7921_vif *mvif =3D (struct mt7921_vif *)vif->drv_priv; > + struct mt76_wcid *wcid =3D &dev->mt76.global_wcid; > + struct ieee80211_mutable_offsets offs; > + struct { > + struct req_hdr { > + u8 bss_idx; > + u8 pad[3]; > + } __packed hdr; > + struct bcn_content_tlv { > + __le16 tag; > + __le16 len; > + __le16 tim_ie_pos; > + __le16 csa_ie_pos; > + __le16 bcc_ie_pos; does the fw support bcc IE? if so I guess we introduce support for it here, right? Regards, Lorenzo > + /* 0: disable beacon offload > + * 1: enable beacon offload > + * 2: update probe respond offload > + */ > + u8 enable; > + /* 0: legacy format (TXD + payload) > + * 1: only cap field IE > + */ > + u8 type; > + __le16 pkt_len; > + u8 pkt[512]; > + } __packed beacon_tlv; > + } req =3D { > + .hdr =3D { > + .bss_idx =3D mvif->mt76.idx, > + }, > + .beacon_tlv =3D { > + .tag =3D cpu_to_le16(UNI_BSS_INFO_BCN_CONTENT), > + .len =3D cpu_to_le16(sizeof(struct bcn_content_tlv)), > + .enable =3D enable, > + }, > + }; > + struct sk_buff *skb; > + > + if (!enable) > + goto out; > + > + skb =3D ieee80211_beacon_get_template(mt76_hw(dev), vif, &offs); > + if (!skb) > + return -EINVAL; > + > + if (skb->len > 512 - MT_TXD_SIZE) { > + dev_err(dev->mt76.dev, "beacon size limit exceed\n"); > + dev_kfree_skb(skb); > + return -EINVAL; > + } > + > + mt7921_mac_write_txwi(dev, (__le32 *)(req.beacon_tlv.pkt), skb, > + wcid, NULL, 0, true); > + memcpy(req.beacon_tlv.pkt + MT_TXD_SIZE, skb->data, skb->len); > + req.beacon_tlv.pkt_len =3D cpu_to_le16(MT_TXD_SIZE + skb->len); > + req.beacon_tlv.tim_ie_pos =3D cpu_to_le16(MT_TXD_SIZE + offs.tim_offset= ); > + > + if (offs.cntdwn_counter_offs[0]) { > + u16 csa_offs; > + > + csa_offs =3D MT_TXD_SIZE + offs.cntdwn_counter_offs[0] - 4; > + req.beacon_tlv.csa_ie_pos =3D cpu_to_le16(csa_offs); > + } > + dev_kfree_skb(skb); > + > +out: > + return mt76_mcu_send_msg(&dev->mt76, MCU_UNI_CMD(BSS_INFO_UPDATE), > + &req, sizeof(req), true); > +} > diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h b/drivers= /net/wireless/mediatek/mt76/mt7921/mt7921.h > index eae223a31000..adbdb2e22934 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h > +++ b/drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h > @@ -469,4 +469,8 @@ int mt7921u_wfsys_reset(struct mt7921_dev *dev); > int mt7921u_dma_init(struct mt7921_dev *dev, bool resume); > int mt7921u_init_reset(struct mt7921_dev *dev); > int mt7921u_mac_reset(struct mt7921_dev *dev); > +int mt7921_mcu_uni_add_beacon_offload(struct mt7921_dev *dev, > + struct ieee80211_hw *hw, > + struct ieee80211_vif *vif, > + bool enable); > #endif > --=20 > 2.25.1 >=20 --+BimVkDN4/xKoKAF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCYksWqAAKCRA6cBh0uS2t rFi5AQCYgFRj6aWGkwIUBlx7fLpDsMKfsksfa2TtpTbJjHMauwD+MpPXC1TMSCGm yyYL9RQecimhGgc5MHrarfeslaVrwQo= =qa06 -----END PGP SIGNATURE----- --+BimVkDN4/xKoKAF--