Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3693348pxb; Mon, 30 Aug 2021 08:27:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxphnJ3n5Dbpbl3pzR7vxCHeU0btUJkfoF4niSOEQMNaLjWUGzgtaO++tv8wyYiZWhyvB62 X-Received: by 2002:a5d:9655:: with SMTP id d21mr18196827ios.111.1630337255682; Mon, 30 Aug 2021 08:27:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630337255; cv=none; d=google.com; s=arc-20160816; b=l7rpu4cyvfU2l2tZXR1jcP4xRIjjs3Wkrtnc+fPRMLs/VVGTXY4nA2QVzUiz7UOxBw ELTogoTfm/Ge/7gAE6PwXSacb/LVfPQpuOfqh2i7hNO9v03wx1fpqcZfemhI1PTVFVZF LEvpHF4Nut+P8n9Qe5/tymcQPOVscIax31IQNgrvwFM1DSolQOkvB9vJJ1SwaSf1FCyX /IXCqdD48Ed3W52Q7wPr5Tp3GipKOZWQeOcEY8DbJ/9qob7kZdTKk/mrAnwiD6tZRleU Fomdx9s1SmtxfucQBizrBrigQ7xv1MQKolmKNPj678G47qFmmawz7yUQ52UZc8WOzIUT f8cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=RrIvaJZ/GjhxIo37rC4zzq6/oz+qoDd/3ecuQPVux5o=; b=Tvy8KYmjO0wsYdnfpPNWMDc7XCV305DjWM77cwPh7B+jhB0inspXOQQ/Jz3QJyJE6u 7tf/c+CsNSHtNQg7Rcz7YTHM+3zBXSqGseQ76PltwoINb2urqFBDIrYtbTEDLKXR1whh w8DWVhs/ZmrBEuehesHbW1U33yQlcE5jLxqq/vTt/Og9eMLTL//jQ9780PLM6B0n2OFy xGWBHKmXst2ZICbHBS5DcK2nhItyofjvrxh1BjG1q4RXETEvvrRfwSwL3YAbeJMZzefn pNXxqx703Yyri+c5wkWmD2S8xezy9pcMhCaFffWqlqe9dD8GbDbG9wWrSbJtfznXMsSx zquw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flowbird.group header.s=google header.b=BtInqqaR; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flowbird.group Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x6si10323462ilv.42.2021.08.30.08.26.55; Mon, 30 Aug 2021 08:27:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@flowbird.group header.s=google header.b=BtInqqaR; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flowbird.group Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237473AbhH3P1o (ORCPT + 99 others); Mon, 30 Aug 2021 11:27:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237416AbhH3P1n (ORCPT ); Mon, 30 Aug 2021 11:27:43 -0400 Received: from mail-wm1-x362.google.com (mail-wm1-x362.google.com [IPv6:2a00:1450:4864:20::362]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99B8DC061575 for ; Mon, 30 Aug 2021 08:26:49 -0700 (PDT) Received: by mail-wm1-x362.google.com with SMTP id i3so9070357wmq.3 for ; Mon, 30 Aug 2021 08:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flowbird.group; s=google; h=from:to:cc:subject:date:message-id; bh=RrIvaJZ/GjhxIo37rC4zzq6/oz+qoDd/3ecuQPVux5o=; b=BtInqqaRvi+tvj/zNMrgH4HVRQbXbX/Ba2rZoWVSeVgngTXvTbgvFp90mWeXb9IrCq +S3gfG263hc1pRVxg9L5dKqFeenwjwxryY2oowIU4Mu1IL9upOGqHuJhixyqFdK+z/dw 2hXwVRDtSyszZWP6tJGkJr+WXL1iQoyuUWdfiq84UXH3qGSq9mYgZlIVvKnHbevB6PNI c59ZUL7l/WQFec1J3Z6nX7KO7c0sS/mnf8damXXOQ+/6w73VfREgsUnsuoNrnZx1/ii8 sECfak2Ru22f7UymTUF5U9Rav87N2vysKbQYKNVt/IHsnUJhITwsX91OtUm8XFIkBnbu DJew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=RrIvaJZ/GjhxIo37rC4zzq6/oz+qoDd/3ecuQPVux5o=; b=PSoTXYTaxXFdOlfKM/avyigZFQ8chdz06ppNOD0QmNdxpowNFX2kfi2r5jIWghV5gy 8dEU9loQSiNr49DBhtjcltomnupMLgnPOew8piYzPMmqmIs0JetHRdTVyePHpDV/rCqv db0MQxeXZY22+/bU5qmNvx0ZOnnGCdM3qpoNraVmiqIm6eIyEYN4++iaGY07fqmqcZKR j3XEZPox8GwPlM5pZkdZYh0GjxHtuaMxnAfdPXovAAGY2HxBnooOni7WZ8rxwzE0ay2P fbx5pD8jBSRcE82c8ngXjS4sCOeABU9SOg9pQQEk4Whhw+5jVskwfqU55miJgjMp+xRP kFFA== X-Gm-Message-State: AOAM5302lcoDrXnC3tm12WDlGwkHFEu0tHnRGkZFEk5nAfdVAVlfjs6O s4QEzUClZQmrlPyKoWizUCFF97m/ZFOPLPOA+3UFuHg1oNOuCq3wmJ6n2tBcQmFeYdbVH4vUQbi bsvaCcq2O4yIJx2zp9KsDJwi7dY0zL829OVkCbZrGMP4+hKDXyxBoSv1oqiyaa4aRB2V7RPElgA +iCxzNb1y/AqeeBnRjv2IpP/BsLre9xQ== X-Received: by 2002:a05:600c:3b9c:: with SMTP id n28mr15483219wms.184.1630337207746; Mon, 30 Aug 2021 08:26:47 -0700 (PDT) Received: from mta1.parkeon.com ([185.149.63.251]) by smtp-relay.gmail.com with ESMTPS id g15sm388399wmq.15.2021.08.30.08.26.47 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 30 Aug 2021 08:26:47 -0700 (PDT) X-Relaying-Domain: flowbird.group Received: from [172.16.13.38] (port=37560 helo=PC12445-BES.dynamic.besancon.parkeon.com) by mta1.parkeon.com with esmtp (Exim 4.71) (envelope-from ) id 1mKjBP-0005mz-AT; Mon, 30 Aug 2021 17:26:47 +0200 From: Martin Fuzzey To: linux-wireless@vger.kernel.org Cc: Amitkumar Karwar , Siva Rebbagondla , Kalle Valo , Jakub Kicinski , Prameela Rani Garnepudi , linux-kernel@vger.kernel.org, Martin Fuzzey Subject: [PATCH v2 0/3] rsi: fix startup and P2P mode Date: Mon, 30 Aug 2021 17:26:43 +0200 Message-Id: <1630337206-12410-1-git-send-email-martin.fuzzey@flowbird.group> X-Mailer: git-send-email 1.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This series fixes an occasional startup failure when BT coexistence is enabled and makes P2P mode work (the two are unrelated but sending as a series since the same files are modified). Tested on RS9116 in P2P client mode against an Android phone (S8, Android 9) For an unknown reason GO mode does not work against the phone but it does work against a second RS9116 device. In this case Android does not send a response to the 3rd WPA handshake packet. It is difficult to debug this without the phone wpa_supplicant logs which I don't have. Regression tested OK for STA and AP modes. V2: * rebase against wireless-drivers-next * add cc: stable to patches 2 & 3 Martin Fuzzey (3): rsi: fix occasional initialisation failure with BT coex rsi: fix key enabled check causing unwanted encryption for vap_id > 0 rsi: fix rate mask set leading to P2P failure drivers/net/wireless/rsi/rsi_91x_core.c | 2 + drivers/net/wireless/rsi/rsi_91x_hal.c | 10 ++-- drivers/net/wireless/rsi/rsi_91x_mac80211.c | 74 +++++++++-------------------- drivers/net/wireless/rsi/rsi_91x_main.c | 16 +++++-- drivers/net/wireless/rsi/rsi_91x_mgmt.c | 24 +++++++--- drivers/net/wireless/rsi/rsi_main.h | 15 ++++-- 6 files changed, 72 insertions(+), 69 deletions(-) -- 1.9.1