Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp578710rwb; Thu, 22 Sep 2022 03:53:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4aF4OnLZ4VKZHLc8GmvFFbz9WCFEQzzlcWAan3TgN0wgPf6XSm/drmB9s9HLkwJ6antLfq X-Received: by 2002:a17:907:2c77:b0:77c:59aa:c011 with SMTP id ib23-20020a1709072c7700b0077c59aac011mr2245451ejc.724.1663844013197; Thu, 22 Sep 2022 03:53:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663844013; cv=none; d=google.com; s=arc-20160816; b=Y0Ph+x2HW1dDc8z/dIr52E032WPkJDjQ6izOoIAMXaL7vJCPwWP2msJARqU/2JKgPm pRlz9LkFhdlENIaSfFJRKbaJZHkPcQ/nDJhBXhHc87v7ICdIY29ES5mw5zs3HPUOOeSp 9ZBx/1jfpbyghR+X1ZyrzKzD0OtQ1WAE7w2Gtff2bKqgf1WqoI96Ztwd8ycgx6rLF+vI 5OckoCoSI1XpMTttGrtrO6VwD71bqqpz3BJw0b/S9FHopnD4hKK4eXjaqhIUBMZ1vaZo 7molXoOF6pLT3WyJyMzT6XkHHWO1Lrxdtl5HxOTKmnWd9+K5MrPGH3squyAFYYkRQxIb R3+Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :mailrelay-external-outbound:dkim-signature; bh=ileZy8RC8AjAiG2bUp3x//55vgnjWXA/u3J47V9aKF8=; b=xVJ2fZlznfxqW2bw0gSX+Ci5QZL6ye9gSv4PFd2/MuCUvRSbd7kwnMox4KaE3huQXW Fo8qIxx/UWCjSPQIDniM6pL4ehsS2A88uxYzIDufOXMP4n0vRbfLl9XBCbOXlPr/cjVd f+f6K+WbnL5HOsS8KykJZ5HNVY2N0Y/Hd6ZqzPxS+rrze6TzLLCErQ7mDB8QeMZjcWA1 y/5E0VQ4ozM7zS7S0LMqHMfl7u26NUZK8oY4Saj1PyjBSd/0izkDBJbMeLhjIK++3Ca1 ydNn6u9RLMuOWsfWKRwmJan8GtGhevAlWiYBTV8W0van9vet8lC6RwRgf4TS+Hmwr5d7 RGBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infineon.com header.s=IFXMAIL header.b="MF/hTDhH"; 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=infineon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r17-20020a05640251d100b0044ee8bcde76si6383689edd.202.2022.09.22.03.53.13; Thu, 22 Sep 2022 03:53:33 -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=fail header.i=@infineon.com header.s=IFXMAIL header.b="MF/hTDhH"; 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=infineon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230172AbiIVKmX (ORCPT + 63 others); Thu, 22 Sep 2022 06:42:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230319AbiIVKmV (ORCPT ); Thu, 22 Sep 2022 06:42:21 -0400 Received: from smtp3.infineon.com (smtp3.infineon.com [217.10.52.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6414A6ADD for ; Thu, 22 Sep 2022 03:42:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infineon.com; i=@infineon.com; q=dns/txt; s=IFXMAIL; t=1663843341; x=1695379341; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bYywTs4efIJDaEim9wX1oHlqssoGLwjBbYILoJAuKpM=; b=MF/hTDhHMwSGSdvLHKvOf8v4CwySyYyhhE7KybByTc7zePc8EUzRgiEh uOPDTkV01PBOFeOh/i3v3j8eGfn/vkGvG3j4WUd7BrrX3fM50tps5Swtq CNgV1DCJL1J5sL/tKRex0lB3pxsnfyrot8FI9HP5kGCTu7IxhOdnHuN5s I=; X-SBRS: None X-IronPort-AV: E=McAfee;i="6500,9779,10477"; a="1444106" X-IronPort-AV: E=Sophos;i="5.93,335,1654552800"; d="scan'208";a="1444106" Received: from unknown (HELO mucxv002.muc.infineon.com) ([172.23.11.17]) by smtp2.infineon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2022 12:42:19 +0200 Received: from MUCSE803.infineon.com (MUCSE803.infineon.com [172.23.29.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mucxv002.muc.infineon.com (Postfix) with ESMTPS for ; Thu, 22 Sep 2022 12:42:18 +0200 (CEST) Received: from MUCSE824.infineon.com (172.23.29.55) by MUCSE803.infineon.com (172.23.29.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Thu, 22 Sep 2022 12:42:18 +0200 Received: from mailrelay-cypress4.infineon.com (172.23.18.56) by SMTP-MailRelay3.infineon.com (172.23.29.16) with Microsoft SMTP Server id 15.2.986.29; Thu, 22 Sep 2022 12:42:18 +0200 mailrelay-external-outbound: True X-IronPort-AV: E=McAfee;i="6500,9779,10477"; a="259403212" X-IronPort-AV: E=Sophos;i="5.93,335,1654552800"; d="scan'208";a="259403212" Received: from unknown (HELO mail.spansion.com) ([10.248.30.8]) by mailrelay-cypress4.infineon.com with ESMTP; 22 Sep 2022 12:42:18 +0200 Received: from inf2.aus.cypress.com (10.248.80.6) by BIZ-EXHT102.spansion.com (10.248.30.8) with Microsoft SMTP Server id 14.3.498.0; Thu, 22 Sep 2022 05:42:17 -0500 Received: from iot-wlan-dev-u03.aus.cypress.com (iot-wlan-dev-u03 [10.248.81.193]) by inf2.aus.cypress.com (Postfix) with ESMTP id 778951004E6; Thu, 22 Sep 2022 05:42:14 -0500 (CDT) Received: by iot-wlan-dev-u03.aus.cypress.com (Postfix, from userid 27991) id 7545D9807D1; Thu, 22 Sep 2022 05:42:14 -0500 (CDT) From: Ian Lin To: CC: , , , , , , Subject: [PATCH v2 4/4] brcmfmac: Remove the call to "dtim_assoc" IOVAR Date: Thu, 22 Sep 2022 05:41:40 -0500 Message-ID: <20220922104140.11889-5-ian.lin@infineon.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20220922104140.11889-1-ian.lin@infineon.com> References: <20220922104140.11889-1-ian.lin@infineon.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE 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 From: Ramesh Rangavittal When STA roams from one AP to another, after roam is complete, host driver tries to get TIM information from firmware. This is no longer supported in the firmware & hence, this call will always fail. This failure results in the below message being displayed on the console all the time when roam is done. ieee80211 phy0: brcmf_update_bss_info: wl dtim_assoc failed (-52) Changes ensure that the host driver will no longer try to get TIM information from firmware. Signed-off-by: Ramesh Rangavittal Signed-off-by: Chi-hsien Lin Signed-off-by: Ian Lin --- .../broadcom/brcm80211/brcmfmac/cfg80211.c | 26 +------------------ 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c index 42068145a447..dfcfb3333369 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c @@ -3164,10 +3164,7 @@ static s32 brcmf_update_bss_info(struct brcmf_cfg80211_info *cfg, struct brcmf_if *ifp) { struct brcmf_pub *drvr = cfg->pub; - struct brcmf_bss_info_le *bi; - const struct brcmf_tlv *tim; - size_t ie_len; - u8 *ie; + struct brcmf_bss_info_le *bi = NULL; s32 err = 0; brcmf_dbg(TRACE, "Enter\n"); @@ -3181,29 +3178,8 @@ static s32 brcmf_update_bss_info(struct brcmf_cfg80211_info *cfg, bphy_err(drvr, "Could not get bss info %d\n", err); goto update_bss_info_out; } - bi = (struct brcmf_bss_info_le *)(cfg->extra_buf + 4); err = brcmf_inform_single_bss(cfg, bi); - if (err) - goto update_bss_info_out; - - ie = ((u8 *)bi) + le16_to_cpu(bi->ie_offset); - ie_len = le32_to_cpu(bi->ie_length); - - tim = brcmf_parse_tlvs(ie, ie_len, WLAN_EID_TIM); - if (!tim) { - /* - * active scan was done so we could not get dtim - * information out of probe response. - * so we speficially query dtim information to dongle. - */ - u32 var; - err = brcmf_fil_iovar_int_get(ifp, "dtim_assoc", &var); - if (err) { - bphy_err(drvr, "wl dtim_assoc failed (%d)\n", err); - goto update_bss_info_out; - } - } update_bss_info_out: brcmf_dbg(TRACE, "Exit"); -- 2.25.0