From nobody Wed Oct 04 15:23:45 2023 X-Original-To: dev-commits-src-all@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 4S0z415Ws3z4w6Gl; Wed, 4 Oct 2023 15:23:45 +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 4S0z41425jz4N09; Wed, 4 Oct 2023 15:23:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696433025; 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=QFPv8hV7J9GIFiK8Y4UBLNCaogaNWuT5VniC+tvsi00=; b=XGq2uzbm0llfI0zGNlx/tfHOUXc/QJcLIBgR1YSMo3v34EgV4m1WhgimmpDBrpaN+xLhhx BmSVvaA3bgnaC1cqtQsXkhEwgWpB8q5nuX7JxsY0jpcj6VZiiaWCPK1fODxfo8LYpIjNfh UcfrTMyRZh1BzmH1xS0vKCItgvKhkECDet4brxaNVSwza2gtCIlQUdyQ4GMSkNVBuAHAEM Z869pVMe43ZmvE8XMovNpFZqm6cMDSVhtV2aHy77H+3feZWuP9n3iiZ1LfiHODUM17KxQY SrQUUbuPwOGIN524SkDktgx3RqcSNZn9hL/MNhwv+hWOi+81nvM/T1iuT+238Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696433025; a=rsa-sha256; cv=none; b=Q0RGUB+Q26IizoOhp2NrlwAcoEw3DtEwWZNPnmRsDbpeZkar7P7OqRsWoCUcDBgz/BaLFO FxQ5bgu98uos1HUQ598cY/O9kOp3kqiFGKuHtOe5Wq2jMRHqk4WlFziAiUhpfpxdiM0Ejr SeUihBj3CXLT+Sf+wPg2ae/pBM/+3WVOMyLeyEAp/Oaulb2u1DkIpc/Xw2yjPRCFm55CeN mvKObdWTW20lt3xLJIcwk0emK9RHivXE3vkd+KNfKOF8/vTHmxwk3Ga95FYkaVYSLrGSj2 qEtU8pR5cPxd34LNUcBfnOLkD4PIhCCAk/FuD7XFFeFPFDcOt7YNlhvJ4yLo1g== 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=1696433025; 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=QFPv8hV7J9GIFiK8Y4UBLNCaogaNWuT5VniC+tvsi00=; b=RmDr2BwLmGfp5H5rrKkD5hz5c9ceweF5Zb6G5xdFhSqEy0ccY7G1pBjzvlCVcwA3j+xtfR 4tM+UZO0MrpPoVJQBDE8yCS0KRv9ZRShHoloJzSUep5ZZ23i6o1GNmGtee8CaskYBYlT+v ULbT1PN5tGwQ+CEuRtZHTF3xuwD5seBaCKFgiSLzQazNuQrV20tblJ6HZcOOt4rMlH2xk9 96K0EoXXuadUSaQIryikMJ5xRUzF7IwAL3UpITR1ZbHznFTOrCMO3NzFDKOljT29gtQO6S hAcTOBBlTYlxcvtJi8cfQKisxlv+90Da5U15cQMTC5bskhk2sywez9LpDvdeeg== 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 4S0z411YFTzjJf; Wed, 4 Oct 2023 15:23:45 +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 394FNjsE086963; Wed, 4 Oct 2023 15:23:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 394FNjmq086960; Wed, 4 Oct 2023 15:23:45 GMT (envelope-from git) Date: Wed, 4 Oct 2023 15:23:45 GMT Message-Id: <202310041523.394FNjmq086960@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 204fb7d8530e - stable/14 - LinuxKPI: 802.11: make sure bssid for scans (probe_req) is set List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/stable/14 X-Git-Reftype: branch X-Git-Commit: 204fb7d8530e6c097ff0142959a3f7d55cf7e375 Auto-Submitted: auto-generated The branch stable/14 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=204fb7d8530e6c097ff0142959a3f7d55cf7e375 commit 204fb7d8530e6c097ff0142959a3f7d55cf7e375 Author: Bjoern A. Zeeb AuthorDate: 2023-09-14 17:48:19 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-10-04 15:19:18 +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 (cherry picked from commit e1e90be05017c335862c938fd9d577e56f02af30) --- 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);