Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1049577rwr; Thu, 27 Apr 2023 11:33:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4BA449GFi+5w8jqR3+eHxtZKaXueRJW2H6mtgO7u7jrEWjjaIm2ukrTZYa63c+DQorOn85 X-Received: by 2002:a05:6a21:168c:b0:f1:c63a:f7fa with SMTP id np12-20020a056a21168c00b000f1c63af7famr2891330pzb.15.1682620385924; Thu, 27 Apr 2023 11:33:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682620385; cv=none; d=google.com; s=arc-20160816; b=NPsvhokCTn4gACwedLmXCgwNciJlVtWCcabSqshXArXJiA5monburRZo57rPoWt/9f uBfhBtPi7SMlO+hc7sYjyM3gyqgc+uJzHLmbW3Hal6/N7iO5bYl2p45qUhzQmpgE+JPg vH98LOCNxRWjg53BeIWnSuaeXU4+DIIZhdfB067cNnZszpJFbXqbLmLVERJ4nf7rGYDx iJBZ6J4UMHWoQyt/7aPmoF66oZLvum6uSbIzC6ZBcIK7Tcn1BlO0oxmQVicHWeSDuF3X Hm/Ma9deUyFab/3mZiyUgV8p79EJRq5YeaIp4erYZIXdYzI7tAPxCnpr3JgUTs0oDQIN LD2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=fYbiGmEX1B6b8n8eU1ZQowHf9C7IuWnnrNM9M0krDjg=; b=vYpeTsDqXguc0B58rleNUIXiOBQ7TiV4CGgYz2xlfCiW3BYB+uKfv6LbG878mapcKv O6wEjtUso0wFCJNXFct3B0AdtK0VaO3I/S8pomDqGUc6exOYmBuoHYWLwttTT+MXLae7 w/IG2Jhj+8IdoEYkM72YzzPB//VLBip4nxJpQb+3PGSc6W1+szrjeoL+HtqXV2llwsho hxaCv+DqT8tXqNaWVTquenxRYTsvmZySxdu+S8Xr4aV85PDrLhMI8Ln9UU8KQULwfUeW jdeU6AcfMO2RofqEaxRU+3T55HWEYmxGz/5I4rSO/lcleKAo/B7Pbpy8uM0FGYXb+MiX ajeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=O7LLDW2f; 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=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a63-20020a639042000000b0051f8b655e04si19555139pge.505.2023.04.27.11.32.53; Thu, 27 Apr 2023 11:33:05 -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; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=O7LLDW2f; 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=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244549AbjD0ScM (ORCPT + 63 others); Thu, 27 Apr 2023 14:32:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243521AbjD0ScL (ORCPT ); Thu, 27 Apr 2023 14:32:11 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3A184483 for ; Thu, 27 Apr 2023 11:32:08 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33RGRkdR005265; Thu, 27 Apr 2023 18:32:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=fYbiGmEX1B6b8n8eU1ZQowHf9C7IuWnnrNM9M0krDjg=; b=O7LLDW2fehw/xaXBPK1UUu5uCn4v557MRPxiIiu+mV2joGtUlAnh4yx2YYSoHW/7d9qN YkDn13Ci3ZYnWRzppg2rD+h0aBJP+my/3EtwwpMhEKLppSIsXYOYAIY88MJ5OcRnjg3J V2336BUbBtcVXIag6AWTSLqCXw/dV2KNSv5A0H8eFs2sYg9n5LdfkQp7XeMjMN3jKJg1 CgMFHc1roY8IIshLvE8RXTiND9GS6+J3yhc6hdgviAY89ItzKSMCYTGtfOw6+UEpQ4tg TyjYEYFKCFaLvz+M1AhFb4vU1s/X2WfH8pI+xYEMnn3SE8TO4wP7p8ZT7Hu33eaRSG0Y PQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3q7m4y9rgy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Apr 2023 18:32:05 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 33RIW511014477 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Apr 2023 18:32:05 GMT Received: from msinada-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Thu, 27 Apr 2023 11:32:04 -0700 From: Muna Sinada To: CC: , Muna Sinada Subject: [PATCH v5 2/3] wifi: mac80211: allow userspace to enable driver control of MU-EDCA Date: Thu, 27 Apr 2023 11:31:54 -0700 Message-ID: <1682620315-590-2-git-send-email-quic_msinada@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1682620315-590-1-git-send-email-quic_msinada@quicinc.com> References: <1682620315-590-1-git-send-email-quic_msinada@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: NncoJcC5AE-sYjgtk8CXD71XRf34uU0q X-Proofpoint-ORIG-GUID: NncoJcC5AE-sYjgtk8CXD71XRf34uU0q X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-27_09,2023-04-27_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 adultscore=0 malwarescore=0 clxscore=1015 mlxlogscore=602 spamscore=0 suspectscore=0 lowpriorityscore=0 impostorscore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304270161 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Propagate userspace configuration to enable or disable if driver is able to dynamically update MU-EDCA parameters. The updated MU-EDCA parameters from driver are part of an AP mode feature where firmware determines better MU-EDCA parameters based on channel conditions. The updated parameters are used and reported to user space to reflect in AP management frames. These dynamic parameter updates are offloaded to firmware for better user experience, thus details on algorithm are not provided. This is a driver specific feature, thus no spec references. Signed-off-by: Muna Sinada --- v5: no change v4: newly created patch in response to review comment to add opt in for user for this feature --- include/net/mac80211.h | 6 ++++++ net/mac80211/cfg.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 679421d37a42..70acd76ce450 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -376,6 +376,7 @@ enum ieee80211_bss_change { BSS_CHANGED_FILS_DISCOVERY = 1<<30, BSS_CHANGED_UNSOL_BCAST_PROBE_RESP = 1<<31, BSS_CHANGED_EHT_PUNCTURING = BIT_ULL(32), + BSS_CHANGED_DYNAMIC_MU_EDCA = BIT_ULL(33), /* when adding here, make sure to change ieee80211_reconfig */ }; @@ -683,6 +684,9 @@ struct ieee80211_fils_discovery { * beamformee * @eht_mu_beamformer: in AP-mode, does this BSS enable operation as an EHT MU * beamformer + * @dyn_muedca_enabled: whether to enable or disable driver control of MU-EDCA + * parameters. If set to zero, driver dynamically updating parameters is + * disabled; if set to 1, driver dynamically updating parameters is enable */ struct ieee80211_bss_conf { struct ieee80211_vif *vif; @@ -776,6 +780,8 @@ struct ieee80211_bss_conf { bool eht_su_beamformer; bool eht_su_beamformee; bool eht_mu_beamformer; + + int dyn_muedca_enabled; }; /** diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 473915606715..ff9117c1c288 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1465,6 +1465,11 @@ static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev, changed |= BSS_CHANGED_UNSOL_BCAST_PROBE_RESP; } + if (link_conf->dyn_muedca_enabled != params->dyn_muedca_enable) { + link_conf->dyn_muedca_enabled = params->dyn_muedca_enable; + changed |= BSS_CHANGED_DYNAMIC_MU_EDCA; + } + err = drv_start_ap(sdata->local, sdata, link_conf); if (err) { old = sdata_dereference(link->u.ap.beacon, sdata); -- 2.7.4