Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp31742imn; Mon, 25 Jul 2022 09:28:10 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tSfpFfHz09Ho2Gq73XjGH+R1mU5t12iAG/pLPEI3CKtznyPlqaCmzhf87Px0+b05+HaW1i X-Received: by 2002:a17:907:7fa9:b0:72f:36fd:ef89 with SMTP id qk41-20020a1709077fa900b0072f36fdef89mr10824477ejc.433.1658766490665; Mon, 25 Jul 2022 09:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658766490; cv=none; d=google.com; s=arc-20160816; b=iFDAzc5Ga3FBAuCPehwM1P9pWRl+CyfTtjF29uA1N5C+p0VHSmtIUMRPBUX0sW/kVz pqkhjaNdLJbK8CNyRmUESH5a30klV4vRJNFYbiKeRjpUHRiXy3H9KwUzmtYpDyniDAZY Hsa78p7QImO2aYVn/ESyUh3bRZxy2EmnndfhPRJJ6duS11B9PHPNNLyuM5kT2VpVejZq fU3EygTTqzG6hbRIOOK7mkMrSdpqrTznhtGJaaEId7uQSQiY2r15t9t78eY6g/3pp5sz EBfykTkL1DGnoN66Pb7qkFE/PAI9PZKdnWrKyAQzY0fzfPo5IvpDBDbIk+8G5re+SgW0 RIgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=iGSgv0K1xjNUcri80tR5I7zK858U+Npg0THZsPIvQU0=; b=qnNwhV4Wtcj8h62ZLeonSGLJURLEywIeG423v3WE1FC03pTdGEKANGSgwIxBbB8L1g wFJ84o2jqagsO8E/kY7WaFMjeUrQV9UDsI+qrPQjVqZfC9DVrepyBJkf8MMYATwAgSO5 E5RS2Xx3fSznS/p35C2Yo88Ve8FZz/dTQ6YTkb4ukG3Ta5b+Pb2DMu9f6QIP73mahFsX z7oZSVyRiz6+xDwXOX3BlpcxL83DIu/7jf4Czu5oMNbe+DmggQJh1P5ziiRMLANndEDp sowwlPUI/lTms3Mw40Zxq721EFZx5YNqvJy3daM0RwGRaz9myHkHJ9rOjnJHaGJXaXFB w/rw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz30-20020a1709077d9e00b006f38560fe61si14535572ejc.94.2022.07.25.09.27.51; Mon, 25 Jul 2022 09:28:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236000AbiGYQWR (ORCPT + 65 others); Mon, 25 Jul 2022 12:22:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235966AbiGYQWP (ORCPT ); Mon, 25 Jul 2022 12:22:15 -0400 X-Greylist: delayed 357 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 25 Jul 2022 09:22:12 PDT Received: from mail-m121145.qiye.163.com (mail-m121145.qiye.163.com [115.236.121.145]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9CE3167EB; Mon, 25 Jul 2022 09:22:12 -0700 (PDT) Received: from localhost.localdomain (unknown [113.118.189.34]) by mail-m121145.qiye.163.com (Hmail) with ESMTPA id 0C493800017; Tue, 26 Jul 2022 00:16:10 +0800 (CST) From: Chukun Pan To: Jakub Kicinski Cc: Kalle Valo , "David S . Miller" , Eric Dumazet , Paolo Abeni , Matthias Brugger , Lintel Huang , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Chukun Pan Subject: [PATCH] wifi: mt7601u: Add AP mode support Date: Tue, 26 Jul 2022 00:16:03 +0800 Message-Id: <20220725161603.15201-1-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlCTBodVkNDTkkfSUoYTkJCT1UTARMWGhIXJBQOD1 lXWRgSC1lBWUpKSFVKSkNVSkNCVUhPWVdZFhoPEhUdFFlBWU9LSFVKSktISkNVS1kG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Ok06GTo4ND09PE42KD4WKwkr PwIaFDBVSlVKTU5DTE1OTExLTE9PVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWUpK SFVKSkNVSkNCVUhPWVdZCAFZQUlJTU03Bg++ X-HM-Tid: 0a823624fe87b03akuuu0c493800017 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Add AP mode support to mt7601u chipset. Simply tested it with firmware version 201302052146 and it seems working fine. Run-tested-by: Lintel Huang Signed-off-by: Chukun Pan --- drivers/net/wireless/mediatek/mt7601u/init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt7601u/init.c b/drivers/net/wireless/mediatek/mt7601u/init.c index 5d9e952b2966..d18800b41704 100644 --- a/drivers/net/wireless/mediatek/mt7601u/init.c +++ b/drivers/net/wireless/mediatek/mt7601u/init.c @@ -609,7 +609,8 @@ int mt7601u_register_device(struct mt7601u_dev *dev) SET_IEEE80211_PERM_ADDR(hw, dev->macaddr); wiphy->features |= NL80211_FEATURE_ACTIVE_MONITOR; - wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION); + wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | + BIT(NL80211_IFTYPE_AP); wiphy->flags |= WIPHY_FLAG_SUPPORTS_TDLS; wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_CQM_RSSI_LIST); -- 2.25.1