From nobody Thu Sep 14 21:21:14 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rmqxk2d5pz4sRH0; Thu, 14 Sep 2023 21:21:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rmqxk27r5z3CFT; Thu, 14 Sep 2023 21:21:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694726474; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mGNzUYroOQ79RjQeHymbUrAOXkPseIpr8ihocquV+sQ=; b=ipFz266xp+aAqY0N04eVhEBtpF0Za44r8I28w1cHkecqzGCQqI+VmFctmIUDRL9W57K5cK bm6RUsuXK8khQYcp35UxJgSPlr0WEjeHGPNLZ4gydmG2cAoN2cqpEMV6jjiZcTR+ATUDtV Y3GHypdlRJMS8pcHQqw1Sj+ew1CIlKo3cm7n2Uw4pxLd0jqKfadQIxgoxpIyqn99GZUmAj SkUIG2ezfnTEkNzWi/kKKm9sFvIdR/Zv+dUibtfAR1j42jPA2AB1SgKmwvdIhacqIGd30C 4DgUxHO5p0XEi452P+GrYJ0OSG9PE/zNzrdF8OFD/L+mTZ7p2kj0Dp3KOx4cvw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694726474; a=rsa-sha256; cv=none; b=p0rXXU7QyJpWp/DrG0x7xlszwSCGu4EXKYYzs3EU1doatFR6bxsJf2Wau2F/7x/+VHPIBR TP+xMNpUoZ6KqVF0/oEEejor1UHInkY58Cs1CApO3CV2mBwNyhof0+rqm3ef30txXqst/J tLKlQum93VuiLxYAVxIaEmV2ffCUSkESoN1mNHWLy4JCrZel45OTCkxkJdkO8Qho09H5W4 dNVIN1/4rpYBMSqu+AgVxTTwr0leAUebWB1pP6OCJFJb3d7zGSyghV8QPJMHu5WTRDjWMz obt20oTm4WGI2xyu7Hye8b/Jkt0pxJpZVEdKV9aVGux39RGqrBiuCpgKB73pIA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694726474; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mGNzUYroOQ79RjQeHymbUrAOXkPseIpr8ihocquV+sQ=; b=b4MI2Ku85O7iMISwQnRhYoGqNE7+wNDL94w429hFKL/0H16QqVVac1QInrnPDg4qTTIMN7 R/8+f/p2xgrwc1DOQWpVAyQ87eJGmJGQ6JZsYmUaf3h6aZh90FtlPar9RJLjog2JSifac1 82Xb9Cq8NfgBC34z+SVrGfidnRIVveXQNtcym/Vo1CSQxvLzlauK1nlomFRUMu1C4y7qnU +76hvdSzT/+DntePuerC1puWrHmszbjlxDolxi+XH6VQgB7x9rzPOO1T+WurgkY1jy4VqR lc2uwsIMk/aNEjbvplVrFCZtx6TPWctfJXeESo3OsL/8vSCDxxRB9oq8XLfRng== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Rmqxk1DB8z1BNt; Thu, 14 Sep 2023 21:21:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38ELLEYD023449; Thu, 14 Sep 2023 21:21:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38ELLEpg023446; Thu, 14 Sep 2023 21:21:14 GMT (envelope-from git) Date: Thu, 14 Sep 2023 21:21:14 GMT Message-Id: <202309142121.38ELLEpg023446@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: e1e90be05017 - main - LinuxKPI: 802.11: make sure bssid for scans (probe_req) is set List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e1e90be05017c335862c938fd9d577e56f02af30 Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=e1e90be05017c335862c938fd9d577e56f02af30 commit e1e90be05017c335862c938fd9d577e56f02af30 Author: Bjoern A. Zeeb AuthorDate: 2023-09-14 17:48:19 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-09-14 21:20:54 +0000 LinuxKPI: 802.11: make sure bssid for scans (probe_req) is set In b0f73768220e9 we added bssid[] to struct cfg80211_scan_request likely while working on mt76 and did not need it (yet) back then. iwlwifi started to use the field in Linux f1fec51cda70f (April 2023). Without it set firmware crashes when trying to send probe requests ((empty) SSID also given to hw_scan). For now always set the field to the wildcard BSSID. Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/compat/linuxkpi/common/src/linux_80211.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c index 51d5bc2c4fc1..4b9cc598740b 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.c +++ b/sys/compat/linuxkpi/common/src/linux_80211.c @@ -2728,6 +2728,7 @@ sw_scan: memcpy(hw_req->req.mac_addr, xxx, IEEE80211_ADDR_LEN); memset(hw_req->req.mac_addr_mask, 0xxx, IEEE80211_ADDR_LEN); #endif + eth_broadcast_addr(hw_req->req.bssid); hw_req->req.n_channels = nchan; cpp = (struct linuxkpi_ieee80211_channel **)(hw_req + 1);