From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8CDE6C369D3 for ; Mon, 21 Apr 2025 17:16:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=jQPUEYu/nKVmO3owf1Fe8K5zACgsM2nqisPpMallwos=; b=l9VV94agjV9nzHp9fDML1hW4b1 JYt0ee2yWR1FAJsPz/4jUGMZV70hTCZyxsMvaxbszTX0XnDvVpL8lBpCenYO8qLD7nXYoB+S15Zvl Cf8J5EHqIODrtioOtU1t0JOFpcVI1i516Jd1E/AXo2kDJ5E3cphtn3/MTCluyzrsRfS6h+Bl9r9uI M29wkVIJrPTjQTfmjcU+NK3DObFk/bZaygDVqbot92U97SYhvkJ04aVd+ZavgURxaoPkZW6nGQqZr r42kSBf4ZrJ1JNcKr94yULa/acDsXYRR3JwfzXrgQsxp2l0Zz+zDfMhZpH+5cVT4UPzIqp13unybd Pji/5xUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1u6ulI-00000004oCz-1GZR; Mon, 21 Apr 2025 17:16:52 +0000 Received: from mgamail.intel.com ([198.175.65.18]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1u6ulG-00000004oBw-0edj for ath12k@lists.infradead.org; Mon, 21 Apr 2025 17:16:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1745255810; x=1776791810; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=odhzicsI6KC60d7dd4UaLdO+P9vRgJvPrU6d7Be9wQc=; b=TUrj1pcDONo0vDGiL4R6ejVhTjC9jMy2iAh0VQpjNwvjk4IurNiL2foe Ria0QpmbfOpP+CED0TztUytm4qaDD1NnIAZgBfTZe6vsgSVsYSEgrU+kH LoXMCxgeGgehz7amCn/3NzkPqcZm/EbMu2J427R0b3ZOL8YGizR/vOdRj LEZmU9Qy0NoLmGpW8PxgNZPjXEG6elLB7cgJiLAOIP38/DlcajRyrFm60 c2UPon69/yReZi+TIigHQ0olvdxUraE/b2eh0JNqca2ydS4CT3Zrxs1aJ My35FNy7ls5mgj7SwthS6Xwv3+1zyN5svfLLTBQDaE69jYu26FI88YIjG Q==; X-CSE-ConnectionGUID: d2N0D2AcTvu/Tx80QQhVtg== X-CSE-MsgGUID: BFfJ7JxjQduciPqvvzQtDQ== X-IronPort-AV: E=McAfee;i="6700,10204,11410"; a="46925969" X-IronPort-AV: E=Sophos;i="6.15,228,1739865600"; d="scan'208";a="46925969" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2025 10:16:48 -0700 X-CSE-ConnectionGUID: 8+T6siWbRjeCc+9DvhVKmQ== X-CSE-MsgGUID: KrK9i8KXRFiE13unw1fITQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,228,1739865600"; d="scan'208";a="136869440" Received: from lkp-server01.sh.intel.com (HELO 050dd05385d1) ([10.239.97.150]) by fmviesa004.fm.intel.com with ESMTP; 21 Apr 2025 10:16:45 -0700 Received: from kbuild by 050dd05385d1 with local (Exim 4.96) (envelope-from ) id 1u6ul9-0000G7-1k; Mon, 21 Apr 2025 17:16:43 +0000 Date: Tue, 22 Apr 2025 01:16:13 +0800 From: kernel test robot To: Karthikeyan Kathirvel , ath12k@lists.infradead.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-wireless@vger.kernel.org, Karthikeyan Kathirvel Subject: Re: [PATCH ath-next] wifi: ath12k: allow beacon protection keys to be installed in hardware Message-ID: <202504220128.2KvxCzaG-lkp@intel.com> References: <20250421114711.3660911-1-karthikeyan.kathirvel@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250421114711.3660911-1-karthikeyan.kathirvel@oss.qualcomm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250421_101650_243341_33FBDDE6 X-CRM114-Status: GOOD ( 12.73 ) X-BeenThere: ath12k@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath12k" Errors-To: ath12k-bounces+ath12k=archiver.kernel.org@lists.infradead.org Hi Karthikeyan, kernel test robot noticed the following build errors: [auto build test ERROR on d33705bb41ff786b537f8ed50a187a474db111c1] url: https://github.com/intel-lab-lkp/linux/commits/Karthikeyan-Kathirvel/wifi-ath12k-allow-beacon-protection-keys-to-be-installed-in-hardware/20250421-194813 base: d33705bb41ff786b537f8ed50a187a474db111c1 patch link: https://lore.kernel.org/r/20250421114711.3660911-1-karthikeyan.kathirvel%40oss.qualcomm.com patch subject: [PATCH ath-next] wifi: ath12k: allow beacon protection keys to be installed in hardware config: powerpc-randconfig-003-20250421 (https://download.01.org/0day-ci/archive/20250422/202504220128.2KvxCzaG-lkp@intel.com/config) compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250422/202504220128.2KvxCzaG-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202504220128.2KvxCzaG-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/net/wireless/ath/ath12k/mac.c:1474:30: error: use of undeclared identifier 'WLAN_EXT_CAPA11_BCN_PROTECT' 1474 | (ext_cap_ie->data[10] & WLAN_EXT_CAPA11_BCN_PROTECT)) | ^ drivers/net/wireless/ath/ath12k/mac.c:1528:11: error: use of undeclared identifier 'WLAN_EXT_CAPA11_BCN_PROTECT' 1528 | WLAN_EXT_CAPA11_BCN_PROTECT)) | ^ 2 errors generated. vim +/WLAN_EXT_CAPA11_BCN_PROTECT +1474 drivers/net/wireless/ath/ath12k/mac.c 1447 1448 static void ath12k_mac_set_arvif_ies(struct ath12k_link_vif *arvif, 1449 struct ath12k_link_vif *tx_arvif, 1450 struct sk_buff *bcn, 1451 u8 bssid_index, bool *nontx_profile_found) 1452 { 1453 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)bcn->data; 1454 const struct element *elem, *nontx, *index, *nie, *ext_cap_ie; 1455 const u8 *start, *tail; 1456 u16 rem_len; 1457 u8 i; 1458 1459 start = bcn->data + ieee80211_get_hdrlen_from_skb(bcn) + sizeof(mgmt->u.beacon); 1460 tail = skb_tail_pointer(bcn); 1461 rem_len = tail - start; 1462 1463 arvif->rsnie_present = false; 1464 arvif->wpaie_present = false; 1465 1466 if (cfg80211_find_ie(WLAN_EID_RSN, start, rem_len)) 1467 arvif->rsnie_present = true; 1468 if (cfg80211_find_vendor_ie(WLAN_OUI_MICROSOFT, WLAN_OUI_TYPE_MICROSOFT_WPA, 1469 start, rem_len)) 1470 arvif->wpaie_present = true; 1471 1472 ext_cap_ie = cfg80211_find_elem(WLAN_EID_EXT_CAPABILITY, start, rem_len); 1473 if (ext_cap_ie && ext_cap_ie->datalen >= 11 && > 1474 (ext_cap_ie->data[10] & WLAN_EXT_CAPA11_BCN_PROTECT)) 1475 tx_arvif->beacon_prot = true; 1476 1477 /* Return from here for the transmitted profile */ 1478 if (!bssid_index) 1479 return; 1480 1481 /* Initial rsnie_present for the nontransmitted profile is set to be same as that 1482 * of the transmitted profile. It will be changed if security configurations are 1483 * different. 1484 */ 1485 *nontx_profile_found = false; 1486 for_each_element_id(elem, WLAN_EID_MULTIPLE_BSSID, start, rem_len) { 1487 /* Fixed minimum MBSSID element length with at least one 1488 * nontransmitted BSSID profile is 12 bytes as given below; 1489 * 1 (max BSSID indicator) + 1490 * 2 (Nontransmitted BSSID profile: Subelement ID + length) + 1491 * 4 (Nontransmitted BSSID Capabilities: tag + length + info) 1492 * 2 (Nontransmitted BSSID SSID: tag + length) 1493 * 3 (Nontransmitted BSSID Index: tag + length + BSSID index 1494 */ 1495 if (elem->datalen < 12 || elem->data[0] < 1) 1496 continue; /* Max BSSID indicator must be >=1 */ 1497 1498 for_each_element(nontx, elem->data + 1, elem->datalen - 1) { 1499 start = nontx->data; 1500 1501 if (nontx->id != 0 || nontx->datalen < 4) 1502 continue; /* Invalid nontransmitted profile */ 1503 1504 if (nontx->data[0] != WLAN_EID_NON_TX_BSSID_CAP || 1505 nontx->data[1] != 2) { 1506 continue; /* Missing nontransmitted BSS capabilities */ 1507 } 1508 1509 if (nontx->data[4] != WLAN_EID_SSID) 1510 continue; /* Missing SSID for nontransmitted BSS */ 1511 1512 index = cfg80211_find_elem(WLAN_EID_MULTI_BSSID_IDX, 1513 start, nontx->datalen); 1514 if (!index || index->datalen < 1 || index->data[0] == 0) 1515 continue; /* Invalid MBSSID Index element */ 1516 1517 if (index->data[0] == bssid_index) { 1518 *nontx_profile_found = true; 1519 1520 /* Check if nontx BSS has beacon protection enabled */ 1521 if (!tx_arvif->beacon_prot) { 1522 ext_cap_ie = 1523 cfg80211_find_elem(WLAN_EID_EXT_CAPABILITY, 1524 nontx->data, 1525 nontx->datalen); 1526 if (ext_cap_ie && ext_cap_ie->datalen >= 11 && 1527 (ext_cap_ie->data[10] & 1528 WLAN_EXT_CAPA11_BCN_PROTECT)) 1529 tx_arvif->beacon_prot = true; 1530 } 1531 1532 if (cfg80211_find_ie(WLAN_EID_RSN, 1533 nontx->data, 1534 nontx->datalen)) { 1535 arvif->rsnie_present = true; 1536 return; 1537 } else if (!arvif->rsnie_present) { 1538 return; /* Both tx and nontx BSS are open */ 1539 } 1540 1541 nie = cfg80211_find_ext_elem(WLAN_EID_EXT_NON_INHERITANCE, 1542 nontx->data, 1543 nontx->datalen); 1544 if (!nie || nie->datalen < 2) 1545 return; /* Invalid non-inheritance element */ 1546 1547 for (i = 1; i < nie->datalen - 1; i++) { 1548 if (nie->data[i] == WLAN_EID_RSN) { 1549 arvif->rsnie_present = false; 1550 break; 1551 } 1552 } 1553 1554 return; 1555 } 1556 } 1557 } 1558 } 1559 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki