Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7492BC7618D for ; Mon, 20 Mar 2023 16:41:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229674AbjCTQlr (ORCPT ); Mon, 20 Mar 2023 12:41:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232500AbjCTQlE (ORCPT ); Mon, 20 Mar 2023 12:41:04 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A2582B63E for ; Mon, 20 Mar 2023 09:35:46 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32KBvlFX009089; Mon, 20 Mar 2023 16:35:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=pShlBgznJC67tTBzuHi23YXMqDNJHv2zk6DFRAD0gvY=; b=SeADF1htLEnQY+UufnNIy3rkE3sb08azvcYG6Amxabj8m5wXW6bwpUrHwqsft+ilukMf UZNq+L9srwemPl5Ne/HYXHfe9D2rHlh1xe2NnyBsnvOV5Vx1DHNZRbKK4HgoLBmO3V2t a3fdl7IvLvNCuLgZT4kYcJPzahD4y4rJ8UFivACpbrZba4cx4wf4VF63lERRSCue/h+4 i3YseiR0GQcKrDDV5LhNaTMUL86KlaYnFodqxHAL/yv6RqrRHy5pSus4mVMkaNTu4xgF Qd/ybbljucKdhp8VQtDjwttA19VyYaFW3G1/pVw4EgzNEiSZ1Is34iCZGGcp7aecp35H oA== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pek4fhakn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Mar 2023 16:35:39 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 32KGZdRE005922 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Mar 2023 16:35:39 GMT Received: from che-siroccolnx03.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 20 Mar 2023 09:35:37 -0700 From: Maharaja Kennadyrajan To: CC: , Maharaja Kennadyrajan Subject: [PATCH 0/4] Add AP power save support Date: Mon, 20 Mar 2023 22:05:18 +0530 Message-ID: <20230320163522.3325587-1-quic_mkenna@quicinc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 7dv1Dfma2-jjoGzvyLWI_-75tLNBretr X-Proofpoint-ORIG-GUID: 7dv1Dfma2-jjoGzvyLWI_-75tLNBretr 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-03-20_13,2023-03-20_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 malwarescore=0 mlxscore=0 priorityscore=1501 adultscore=0 impostorscore=0 spamscore=0 mlxlogscore=999 suspectscore=0 phishscore=0 clxscore=1011 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303150002 definitions=main-2303200141 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org AP power save feature is enabled when the driver and hardware supports. If the driver suppots this feature then driver will advertise this flag SUPPORTS_AP_PS to enable the AP power save in mac80211. AP goes into the power save mode, if no stations are connected and it will come out of power save as and when any of the station associate to it. Also, during the power save tx chain mask is reduced to 1x1 until the any station connects with more than 1x1 chain mask. Rename NL80211_CMD_SET_BEACON to NL80211_UPDATE_AP to make use of this command to configure more AP parameters which can vary at the run time of the BSS like AP power save config. A new nl80211 attribute NL80211_ATTR_AP_PS is introduced for this AP power save configuration from user space which is used along with the NL80211_CMD_UPDATE_AP. Venkateswara Naralasetty (4): wifi: nl80211: rename NL80211_CMD_SET_BEACON to NL80211_CMD_UDPATE_AP wifi: nl80211: add configuration support for ap power save wifi: mac80211: notify BSS change upon AP power save change wifi: ath11k: add AP power save support drivers/net/wireless/ath/ath11k/core.c | 8 +++ drivers/net/wireless/ath/ath11k/core.h | 8 +++ drivers/net/wireless/ath/ath11k/hw.h | 1 + drivers/net/wireless/ath/ath11k/mac.c | 58 +++++++++++++++ drivers/net/wireless/ath/ath11k/wmi.c | 32 +++++++++ drivers/net/wireless/ath/ath11k/wmi.h | 8 +++ drivers/net/wireless/ath/ath6kl/cfg80211.c | 11 +-- drivers/net/wireless/ath/wil6210/cfg80211.c | 14 ++-- .../broadcom/brcm80211/brcmfmac/cfg80211.c | 11 +-- .../net/wireless/marvell/mwifiex/cfg80211.c | 15 ++-- .../wireless/microchip/wilc1000/cfg80211.c | 11 +-- .../net/wireless/quantenna/qtnfmac/cfg80211.c | 11 +-- .../staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 12 +++- include/net/cfg80211.h | 42 +++++++++-- include/net/mac80211.h | 7 +- include/uapi/linux/nl80211.h | 28 +++++--- net/mac80211/cfg.c | 39 +++++++---- net/mac80211/debugfs.c | 1 + net/wireless/nl80211.c | 32 ++++++--- net/wireless/rdev-ops.h | 10 +-- net/wireless/trace.h | 70 ++++++++++--------- 21 files changed, 327 insertions(+), 102 deletions(-) -- 2.25.1