Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp979570ybl; Fri, 13 Dec 2019 07:37:42 -0800 (PST) X-Google-Smtp-Source: APXvYqyP7zAXwEfg3fM1RZPBK0T/LxgGQIoUSEAt1n5hyvDHkaNWZIrYZFiN6WPjdBmMCpcjGinv X-Received: by 2002:a05:6830:1116:: with SMTP id w22mr15662081otq.216.1576251462319; Fri, 13 Dec 2019 07:37:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576251462; cv=none; d=google.com; s=arc-20160816; b=q3o3Z//DTZoklcVcjH3XXLINGPVgWMMseU2DAHcmr5vUY5+B3njYsP0PpW1QJ4HNoq VpM2lN8uvwOeTe5JkZdMeXS4v96Y2R6ySe1Ki2ljmq1gTHaNI1QfMMKIx5ILgKOvUnS+ vDxjlslW0o0rhVVLJkxzylcfcAOFCQRea6ardnzozB+cHb0WIwOOF7CZzoyFPNecdVVw hPLZj+KbNM+xHwkbENF2c2URhF2h1t0+z5g/70ykXp6C9Gz3v1h00GrQxrf+Aj06ySpt +UUDdA/c0ULf+NlqdJFFQCELi39oPesEEC2B/KWd9YSO4iOOoMMFSicsMRaEmC2Ysryv L1OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=RF/rAUbqMJQeJFfH0ztYNW2RC9A2RqMxrYT7gO8AJT8=; b=fr4O+dQbfFPirz75CUzr/Ptm22cNjSPJ99FYN1HAkmVeHM40GtKLEzpGudW4pueqei l/0rWgbFy4u182wYwycbkv3SG3xsIsoCHD+yQOJtzcgo0+1Dz1Ez3brUUC8Uaqw/AIwq 3pjmiifhfi06f98xNPqYiwBcoBhzHngGuhjFuoA3ZaMTCgMdTOqePnvsXoKPzIwSN/Vh VPAbnkhBeo6Ayij3FczFUFqbvvhDkUmnIxqMjVpmmdm73ODSXJFlhVDe47sKkS3XFrqI r6foD2H8QzN/9NbnIQ95GmuSB6GonsjQyQeS9tvTU2tTGoDJw42QW8eecTMkI0gt7woM LjVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5si4911011oto.116.2019.12.13.07.37.31; Fri, 13 Dec 2019 07:37:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727904AbfLMPfM (ORCPT + 99 others); Fri, 13 Dec 2019 10:35:12 -0500 Received: from nbd.name ([46.4.11.11]:54632 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727831AbfLMPfL (ORCPT ); Fri, 13 Dec 2019 10:35:11 -0500 Received: from pd95fd344.dip0.t-ipconnect.de ([217.95.211.68] helo=bertha.fritz.box) by ds12 with esmtpa (Exim 4.89) (envelope-from ) id 1ifmyD-0005ee-Qm; Fri, 13 Dec 2019 16:35:09 +0100 From: John Crispin To: Kalle Valo Cc: linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, Pradeep Kumar Chitrapu , John Crispin Subject: [PATCH V2 1/2] ath11k: fix pdev when invoking ath11k_wmi_send_twt_enable_cmd() Date: Fri, 13 Dec 2019 16:34:56 +0100 Message-Id: <20191213153457.11946-1-john@phrozen.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Pradeep Kumar Chitrapu The code currently uses the wrong pdev id when enabling TWT. Fix this by using the correct ones. Fixes: e65a616f4e74 ("ath11k: add TWT support") Signed-off-by: John Crispin Signed-off-by: Pradeep Kumar Chitrapu --- drivers/net/wireless/ath/ath11k/mac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index fec268b9b711..b229b0b3e0bd 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -1917,9 +1917,9 @@ static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw, if (changed & BSS_CHANGED_TWT) { if (info->twt_requester || info->twt_responder) - ath11k_wmi_send_twt_enable_cmd(ar, ar->pdev_idx); + ath11k_wmi_send_twt_enable_cmd(ar, ar->pdev->pdev_id); else - ath11k_wmi_send_twt_disable_cmd(ar, ar->pdev_idx); + ath11k_wmi_send_twt_disable_cmd(ar, ar->pdev->pdev_id); if (vif->type == NL80211_IFTYPE_AP) ath11k_debugfs_twt(arvif, info->twt_requester); } -- 2.20.1