├── iwlwifi-stack-dev ├── intc-scripts │ ├── build-testing │ │ ├── v5.12.6 │ │ │ └── revisions.info │ │ ├── v5.12.6-32bit │ │ │ └── revisions.info │ │ ├── v5.12.6-noacpi │ │ │ └── revisions.info │ │ ├── v5.12.6-32bit-noacpi │ │ │ └── revisions.info │ │ └── README │ ├── chromeOS │ │ ├── adjustments │ │ │ ├── 021-rb_root_node.spatch │ │ │ ├── 024-time-sync.spatch │ │ │ ├── 014-he_gi.spatch │ │ │ ├── 023-wiphy-lockdep.spatch │ │ │ ├── 007-crypto.spatch │ │ │ ├── 018-ext_capab.spatch │ │ │ ├── 015-fils_discovery.spatch │ │ │ ├── 018-sar_specs.spatch │ │ │ ├── 016-unsol_bcast.spatch │ │ │ ├── 011-kek_kck.spatch │ │ │ ├── 017-iftype_ext_capab.spatch │ │ │ ├── 008-control_port.spatch │ │ │ ├── 006-mon.spatch │ │ │ └── 012-6ghz.spatch │ │ ├── hdrs │ │ │ ├── version.h │ │ │ ├── iwl-tx.h │ │ │ └── linux │ │ │ │ └── verification.h │ │ └── copy.sh │ ├── publishable-defconfigs-prune-public │ ├── lib │ │ ├── README.txt │ │ └── __init__.py │ ├── post-commit │ ├── publishable-options │ └── commit-template ├── Documentation │ ├── mvm │ │ └── index.rst │ ├── mei │ │ ├── api.rst │ │ ├── iwlmei.rst │ │ └── index.rst │ ├── index.rst │ ├── developers │ │ ├── index.rst │ │ ├── new-config-symbols.rst │ │ └── trees.rst │ └── sphinx │ │ ├── tmplcvt │ │ ├── post_convert.sed │ │ ├── convert_template.sed │ │ └── load_config.py ├── scripts │ ├── make │ ├── compress_modules.sh │ ├── mod_helpers.sh │ ├── uninstall.sh │ └── blacklist.sh ├── defconfigs │ ├── rand-base │ ├── hwsim │ ├── si_bringup │ ├── soc_ip_hfpga │ ├── iwlwifi-public │ ├── iwlwifi │ ├── esl │ ├── sle │ ├── iwlwifi-galileo │ ├── iwlwifi-nomockups │ ├── fpga │ ├── prune-chromeos │ ├── prune-public │ └── prune-plugfest ├── net │ ├── wireless │ │ ├── trace.c │ │ ├── sysfs.h │ │ ├── debugfs.h │ │ └── ethtool.c │ └── mac80211 │ │ ├── debugfs.h │ │ ├── debugfs_sta.h │ │ ├── fils_aead.h │ │ ├── michael.h │ │ ├── aes_gmac.h │ │ ├── aead_api.h │ │ ├── aes_cmac.h │ │ ├── wme.h │ │ ├── tkip.h │ │ ├── debugfs_netdev.h │ │ ├── wep.h │ │ ├── aes_gcm.h │ │ ├── aes_ccm.h │ │ ├── Makefile │ │ └── trace.c ├── Android-upper-folder.mk ├── drivers │ └── net │ │ └── wireless │ │ ├── intel │ │ ├── iwlwifi │ │ │ ├── mei │ │ │ │ ├── mei_sim │ │ │ │ │ └── Makefile │ │ │ │ ├── trace.c │ │ │ │ ├── Makefile │ │ │ │ └── internal.h │ │ │ ├── xvt │ │ │ │ ├── Makefile │ │ │ │ ├── constants.h │ │ │ │ └── user-infc.h │ │ │ ├── iwl-eeprom-read.h │ │ │ ├── dvm │ │ │ │ ├── Makefile │ │ │ │ ├── calib.h │ │ │ │ ├── led.h │ │ │ │ └── power.h │ │ │ ├── fw │ │ │ │ ├── api │ │ │ │ │ ├── led.h │ │ │ │ │ ├── paging.h │ │ │ │ │ ├── context.h │ │ │ │ │ ├── filter.h │ │ │ │ │ └── system.h │ │ │ │ ├── debugfs.h │ │ │ │ └── pnvm.h │ │ │ ├── iwl-devtrace.c │ │ │ ├── iwl-phy-db.h │ │ │ ├── iwl-dnt-dispatch.h │ │ │ ├── mvm │ │ │ │ ├── time-sync.h │ │ │ │ ├── Makefile │ │ │ │ └── fw-api.h │ │ │ └── iwl-tm-gnl.h │ │ ├── Makefile │ │ └── Kconfig │ │ └── Makefile ├── backport-include │ ├── linux │ │ ├── kmemleak.h │ │ ├── cache.h │ │ ├── tty.h │ │ ├── poll.h │ │ ├── ioport.h │ │ ├── miscdevice.h │ │ ├── types.h │ │ ├── list_nulls.h │ │ ├── slab.h │ │ ├── sched │ │ │ └── signal.h │ │ ├── usb │ │ │ └── ch9.h │ │ ├── eeprom_93cx6.h │ │ ├── device.h │ │ ├── export.h │ │ ├── jump_label.h │ │ ├── math.h │ │ ├── random.h │ │ ├── moduleparam.h │ │ ├── virtio.h │ │ ├── hrtimer.h │ │ ├── kthread.h │ │ ├── math64.h │ │ ├── efi.h │ │ ├── net.h │ │ ├── pm.h │ │ ├── if_arp.h │ │ ├── netdev_features.h │ │ ├── nospec.h │ │ ├── percpu-defs.h │ │ ├── idr.h │ │ ├── mmc │ │ │ ├── sdio_ids.h │ │ │ └── sdio.h │ │ ├── input.h │ │ ├── bits.h │ │ ├── ethtool.h │ │ ├── socket.h │ │ ├── clk.h │ │ ├── bug.h │ │ ├── acpi.h │ │ ├── mii.h │ │ ├── init.h │ │ ├── kcov.h │ │ ├── cordic.h │ │ ├── delay.h │ │ ├── gpio │ │ │ └── driver.h │ │ ├── genetlink.h │ │ ├── kconfig.h │ │ ├── version.h │ │ ├── io.h │ │ ├── page_ref.h │ │ ├── pnp.h │ │ ├── of_device.h │ │ ├── timekeeping.h │ │ ├── firmware.h │ │ ├── of_net.h │ │ ├── scatterlist.h │ │ ├── bitops.h │ │ ├── dma-mapping.h │ │ ├── wait.h │ │ ├── sched.h │ │ ├── uuid.h │ │ ├── gfp.h │ │ ├── virtio_config.h │ │ ├── rfkill.h │ │ ├── fs.h │ │ ├── mod_devicetable.h │ │ ├── sysfs.h │ │ ├── rculist.h │ │ ├── u64_stats_sync.h │ │ ├── lockdep.h │ │ ├── verification.h │ │ ├── leds.h │ │ ├── rhashtable.h │ │ ├── spinlock.h │ │ ├── time.h │ │ ├── compiler_attributes.h │ │ ├── devcoredump.h │ │ ├── i2c.h │ │ ├── wwan.h │ │ ├── string.h │ │ ├── build_bug.h │ │ ├── debugfs.h │ │ ├── seq_file.h │ │ ├── etherdevice.h │ │ └── if_ether.h │ ├── asm │ │ ├── ioctls.h │ │ ├── unaligned.h │ │ ├── barrier.h │ │ └── errno.h │ ├── uapi │ │ └── linux │ │ │ ├── genetlink.h │ │ │ └── eventpoll.h │ ├── net │ │ ├── ipv6_stubs.h │ │ ├── xfrm.h │ │ ├── iw_handler.h │ │ ├── addrconf.h │ │ ├── cfg80211.h │ │ ├── ipv6.h │ │ └── sock.h │ ├── keys │ │ ├── system_keyring.h │ │ └── asymmetric-type.h │ ├── backport │ │ ├── backport.h │ │ ├── checks.h │ │ └── magic.h │ ├── trace │ │ └── ftrace.h │ ├── acpi │ │ └── acpi_bus.h │ ├── pcmcia │ │ ├── device_id.h │ │ └── ds.h │ ├── generated │ │ └── utsrelease.h │ ├── asm-generic │ │ └── bug.h │ └── crypto │ │ └── hash.h ├── Kconfig.package.hacks ├── include │ ├── crypto │ │ ├── public_key.h │ │ ├── arc4.h │ │ ├── pkcs7.h │ │ ├── backport-arc4.h │ │ └── backport-pkcs7.h │ └── linux │ │ ├── asn1_decoder.h │ │ ├── mpls.h │ │ ├── oid_registry.h │ │ ├── backport-asn1_decoder.h │ │ └── refcount.h ├── kconf │ ├── lxdialog │ │ └── BIG.FAT.WARNING │ └── Makefile ├── versions ├── compat │ ├── backport-4.18.c │ ├── backport-4.11.c │ ├── verification │ │ ├── mbedtls │ │ │ ├── platform.h │ │ │ └── config.h │ │ ├── rsapubkey.asn1.h │ │ ├── x509_akid.asn1.h │ │ ├── rsapubkey.asn1.c │ │ └── x509.asn1.h │ ├── backport-5.11.c │ ├── backport-5.13.c │ ├── backport-5.9.c │ ├── backport-5.15.c │ ├── lib-crypto-arc4.c │ └── backport-5.5.c ├── .blacklist.map ├── Makefile.build ├── COPYING ├── Kconfig.sources ├── Kconfig ├── defconfig ├── nix │ ├── sparse.nix │ └── sparse.patch ├── shell.nix └── LICENSES │ ├── exceptions │ ├── GCC-exception-2.0 │ └── Linux-syscall-note │ ├── deprecated │ ├── ISC │ └── Linux-OpenIB │ └── preferred │ └── MIT ├── SECURITY.md └── README.md /iwlwifi-stack-dev/intc-scripts/build-testing/v5.12.6/revisions.info: -------------------------------------------------------------------------------- 1 | KERNEL_GIT_REVISION=v5.12.6 2 | IWLWIFI_DEFCONFIG=iwlwifi 3 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/build-testing/v5.12.6-32bit/revisions.info: -------------------------------------------------------------------------------- 1 | KERNEL_GIT_REVISION=v5.12.6 2 | IWLWIFI_DEFCONFIG=iwlwifi 3 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/Documentation/mvm/index.rst: -------------------------------------------------------------------------------- 1 | MVM Documentation 2 | ================= 3 | 4 | .. toctree:: 5 | :maxdepth: 1 6 | 7 | api 8 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/build-testing/v5.12.6-noacpi/revisions.info: -------------------------------------------------------------------------------- 1 | KERNEL_GIT_REVISION=v5.12.6 2 | IWLWIFI_DEFCONFIG=iwlwifi-nomockups 3 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/build-testing/v5.12.6-32bit-noacpi/revisions.info: -------------------------------------------------------------------------------- 1 | KERNEL_GIT_REVISION=v5.12.6 2 | IWLWIFI_DEFCONFIG=iwlwifi-nomockups 3 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/scripts/make: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # SPDX-License-Identifier: GPL-2.0 3 | 4 | exec make --eval '-include $(BACKPORT_DIR)/.config' "$@" 5 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/defconfigs/rand-base: -------------------------------------------------------------------------------- 1 | CPTCFG_CFG80211=m 2 | CPTCFG_MAC80211=m 3 | CPTCFG_IWLWIFI=m 4 | CPTCFG_MAC80211_MESH=n 5 | # CPTCFG_IWLWIFI_FPGA is not set 6 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/net/wireless/trace.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifndef __CHECKER__ 4 | #define CREATE_TRACE_POINTS 5 | #include "trace.h" 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/chromeOS/adjustments/021-rb_root_node.spatch: -------------------------------------------------------------------------------- 1 | @@ 2 | struct rb_root_cached *root; 3 | @@ 4 | -root->rb_root.rb_node 5 | +rb_root_node(root) 6 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/publishable-defconfigs-prune-public: -------------------------------------------------------------------------------- 1 | iwlwifi-public 2 | iwlwifi-custom-suspend 3 | iwlwifi-public-android 4 | soc_ip_hfpga 5 | iwlwifi-galileo 6 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/Android-upper-folder.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | ifneq ($(INTEL_IWL_MODULE_SUB_FOLDER),) 4 | include $(LOCAL_PATH)/$(INTEL_IWL_MODULE_SUB_FOLDER)/Android.mk 5 | endif 6 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/lib/README.txt: -------------------------------------------------------------------------------- 1 | Please don't edit these files outside of the master repository 2 | 3 | ssh://git-amr-3.devtools.intel.com/iwlwifi-tools/ 4 | 5 | where they're maintained. 6 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/drivers/net/wireless/intel/iwlwifi/mei/mei_sim/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | obj-$(CPTCFG_IWLMEI) += meisim.o 3 | meisim-y += mei_sim_bus.o 4 | 5 | ccflags-y += -I $(src)/../../ 6 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/chromeOS/adjustments/024-time-sync.spatch: -------------------------------------------------------------------------------- 1 | @@ 2 | struct ieee80211_hw *hw; 3 | expression val; 4 | @@ 5 | -hw->wiphy->hw_timestamp_max_peers = val 6 | +set_hw_timestamp_max_peers(hw, val) 7 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/kmemleak.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_KMEMLEAK_H 2 | #define __BACKPORT_KMEMLEAK_H 3 | #include 4 | #include_next 5 | #endif /* __BACKPORT_KMEMLEAK_H */ 6 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/chromeOS/hdrs/version.h: -------------------------------------------------------------------------------- 1 | #ifndef __IWL_CHROME_VERSION_H 2 | #define __IWL_CHROME_VERSION_H 3 | 4 | #define BACKPORTS_GIT_TRACKED "chromium:" UTS_RELEASE ":master:" 5 | 6 | #endif /* __IWL_CHROME_VERSION_H */ 7 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/Kconfig.package.hacks: -------------------------------------------------------------------------------- 1 | # some hacks for when we use backports to generate a package 2 | # to build modules out of tree. 3 | config WIRELESS 4 | def_bool y 5 | config NET_CORE 6 | def_bool y 7 | config EXPERT 8 | def_bool y 9 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/chromeOS/adjustments/014-he_gi.spatch: -------------------------------------------------------------------------------- 1 | @@ 2 | expression E; 3 | identifier ri, fn; 4 | @@ 5 | fn(..., struct rate_info *ri) 6 | { 7 | <... 8 | -E = ri->he_gi 9 | +E = cfg80211_he_gi(ri) 10 | ...> 11 | } 12 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/drivers/net/wireless/intel/iwlwifi/xvt/Makefile: -------------------------------------------------------------------------------- 1 | obj-$(CPTCFG_IWLXVT) += iwlxvt.o 2 | iwlxvt-y += xvt.o user-infc.o utils.o fw.o nvm.o rx.o 3 | iwlxvt-$(CPTCFG_IWLWIFI_DEBUGFS) += debugfs.o 4 | 5 | ccflags-y += -D__CHECK_ENDIAN__ -I$(src)/../ 6 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/Documentation/mei/api.rst: -------------------------------------------------------------------------------- 1 | SAP API 2 | ================= 3 | 4 | SAP is the protocol between iwlwifi and the CSME firmware's Wlan driver, this section documents it. 5 | 6 | .. kernel-doc:: drivers/net/wireless/intel/iwlwifi/mei/sap.h 7 | internal 8 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/cache.h: -------------------------------------------------------------------------------- 1 | #ifndef _BACKPORT_CACHE_H 2 | #define _BACKPORT_CACHE_H 3 | 4 | #include_next 5 | 6 | #ifndef __ro_after_init 7 | #define __ro_after_init 8 | #endif 9 | 10 | #endif /* _BACKPORT_CACHE_H */ 11 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/Documentation/mei/iwlmei.rst: -------------------------------------------------------------------------------- 1 | iwlmei 2 | ================= 3 | 4 | iwlmei is the kernel module that implements the communication between iwlwifi and the CSME firmware 5 | 6 | .. kernel-doc:: drivers/net/wireless/intel/iwlwifi/mei/iwl-mei.h 7 | internal 8 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/tty.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_TTY_H 2 | #define __BACKPORT_LINUX_TTY_H 3 | #include_next 4 | 5 | #ifndef N_NCI 6 | #define N_NCI 25 /* NFC NCI UART */ 7 | #endif 8 | 9 | #endif /* __BACKPORT_LINUX_TTY_H */ 10 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/include/crypto/public_key.h: -------------------------------------------------------------------------------- 1 | /* Automatically created during backport process */ 2 | #ifndef CPTCFG_BPAUTO_PUBLIC_KEY 3 | #include_next 4 | #else 5 | #include 6 | #endif /* CPTCFG_BPAUTO_PUBLIC_KEY */ 7 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/asm/ioctls.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_ASM_IOCTLS_H 2 | #define __BACKPORT_ASM_IOCTLS_H 3 | #include_next 4 | 5 | #ifndef TIOCPKT_IOCTL 6 | #define TIOCPKT_IOCTL 64 7 | #endif 8 | 9 | #endif /* __BACKPORT_ASM_IOCTLS_H */ 10 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/poll.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_POLL_H 2 | #define __BACKPORT_LINUX_POLL_H 3 | #include_next 4 | /* This import is needed for <= 4.15 */ 5 | #include 6 | 7 | #endif /* __BACKPORT_LINUX_POLL_H */ 8 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/kconf/lxdialog/BIG.FAT.WARNING: -------------------------------------------------------------------------------- 1 | This is NOT the official version of dialog. This version has been 2 | significantly modified from the original. It is for use by the Linux 3 | kernel configuration script. Please do not bother Savio Lam with 4 | questions about this program. 5 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/ioport.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_IOPORT_H 2 | #define __BACKPORT_LINUX_IOPORT_H 3 | #include_next 4 | 5 | #ifndef IORESOURCE_REG 6 | #define IORESOURCE_REG 0x00000300 7 | #endif 8 | 9 | #endif /* __BACKPORT_LINUX_IOPORT_H */ 10 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/miscdevice.h: -------------------------------------------------------------------------------- 1 | #ifndef _BACKPORT_LINUX_MISCDEVICE_H 2 | #define _BACKPORT_LINUX_MISCDEVICE_H 3 | #include_next 4 | 5 | #ifndef VHCI_MINOR 6 | #define VHCI_MINOR 137 7 | #endif 8 | 9 | #endif /* _BACKPORT_LINUX_MISCDEVICE_H */ 10 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/drivers/net/wireless/intel/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | #obj-$(CONFIG_IPW2100) += ipw2x00/ 3 | #obj-$(CONFIG_IPW2200) += ipw2x00/ 4 | # 5 | #obj-$(CONFIG_IWLEGACY) += iwlegacy/ 6 | 7 | obj-$(CPTCFG_IWLWIFI) += iwlwifi/ 8 | obj-$(CPTCFG_IWLMEI) += iwlwifi/ 9 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/types.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_TYPES 2 | #define __BACKPORT_TYPES 3 | #include 4 | #include_next 5 | 6 | #if LINUX_VERSION_IS_LESS(4,16,0) 7 | typedef unsigned __poll_t; 8 | #endif 9 | 10 | #endif /* __BACKPORT_TYPES */ 11 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/net/wireless/sysfs.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | #ifndef __WIRELESS_SYSFS_H 3 | #define __WIRELESS_SYSFS_H 4 | 5 | int wiphy_sysfs_init(void); 6 | void wiphy_sysfs_exit(void); 7 | 8 | extern struct class ieee80211_class; 9 | 10 | #endif /* __WIRELESS_SYSFS_H */ 11 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/Documentation/mei/index.rst: -------------------------------------------------------------------------------- 1 | MEI Documentation 2 | ================== 3 | 4 | MEI is the component that implements the communication between iwlwifi and the 5 | CSME firmware's Wlan driver, this section documents it. 6 | 7 | .. toctree:: 8 | :maxdepth: 1 9 | 10 | api 11 | iwlmei 12 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/list_nulls.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LIST_NULLS 2 | #define __BACKPORT_LIST_NULLS 3 | #include_next 4 | 5 | #ifndef NULLS_MARKER 6 | #define NULLS_MARKER(value) (1UL | (((long)value) << 1)) 7 | #endif 8 | 9 | #endif /* __BACKPORT_LIST_NULLS */ 10 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/slab.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_SLAB_H 2 | #define __BACKPORT_SLAB_H 3 | #include_next 4 | #include 5 | 6 | #if LINUX_VERSION_IS_LESS(5,9,0) 7 | #define kfree_sensitive(x) kzfree(x) 8 | #endif 9 | 10 | #endif /* __BACKPORT_SLAB_H */ 11 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/scripts/compress_modules.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | source ./scripts/mod_helpers.sh 6 | 7 | if test "$(mod_filename mac80211)" = "mac80211.ko.gz" ; then 8 | for driver in $(find "$1" -type f -name *.ko); do 9 | echo COMPRESS $driver 10 | gzip -9 $driver 11 | done 12 | fi 13 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/scripts/mod_helpers.sh: -------------------------------------------------------------------------------- 1 | function mod_filename() 2 | { 3 | which modinfo > /dev/null 2>&1 4 | if [[ $? -eq 0 ]]; then 5 | MOD_QUERY="modinfo -F filename" 6 | else 7 | MOD_QUERY="modprobe -l" 8 | fi 9 | mod_path="$($MOD_QUERY $1 | tail -1)" 10 | echo $(basename "$mod_path") 11 | } 12 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/versions: -------------------------------------------------------------------------------- 1 | BACKPORTS_VERSION="(see git)" 2 | BACKPORTED_KERNEL_VERSION="(see git)" 3 | BACKPORTED_KERNEL_NAME="iwlwifi" 4 | 5 | BACKPORTS_GIT_TRACKED="iwlwifi-stack-dev:tags/jenkins-Core_build_core74_pv-44^0:jenkins-Core_build_core74_pv-60:128e12f4202f" 6 | BACKPORTS_BUILD_TSTAMP=\"Nov 06 2022 2:20:10\" -------------------------------------------------------------------------------- /iwlwifi-stack-dev/Documentation/index.rst: -------------------------------------------------------------------------------- 1 | Welcome to the Intel Wireless Source Documentation 2 | ================================================== 3 | 4 | This is the top-level of Intel Wireless Source Documentation. 5 | 6 | .. toctree:: 7 | :maxdepth: 2 8 | 9 | developers/index 10 | mvm/index 11 | mei/index 12 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/chromeOS/adjustments/023-wiphy-lockdep.spatch: -------------------------------------------------------------------------------- 1 | @@ 2 | struct wiphy *wiphy; 3 | @@ 4 | -lockdep_is_held(&wiphy->mtx) 5 | +lockdep_is_wiphy_held(wiphy) 6 | 7 | @@ 8 | struct ieee80211_local *local; 9 | @@ 10 | -lockdep_is_held(&local->hw.wiphy->mtx) 11 | +lockdep_is_wiphy_held(local->hw.wiphy) 12 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/sched/signal.h: -------------------------------------------------------------------------------- 1 | #ifndef _BACKPORT_LINUX_SCHED_SIGNAL_H 2 | #define _BACKPORT_LINUX_SCHED_SIGNAL_H 3 | 4 | #if LINUX_VERSION_IS_LESS(4, 11, 0) 5 | #include 6 | #else 7 | #include_next 8 | #endif 9 | 10 | #endif /* _BACKPORT_LINUX_SCHED_SIGNAL_H */ 11 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/usb/ch9.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT__LINUX_USB_CH9_H 2 | #define __BACKPORT__LINUX_USB_CH9_H 3 | 4 | #include 5 | #include_next 6 | 7 | 8 | #if LINUX_VERSION_IS_LESS(4,6,0) 9 | #define USB_SPEED_SUPER_PLUS 6 10 | #endif 11 | 12 | #endif /* __BACKPORT__LINUX_USB_CH9_H */ 13 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/uapi/linux/genetlink.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_UAPI_LINUX_GENETLINK_H 2 | #define __BACKPORT_UAPI_LINUX_GENETLINK_H 3 | #include_next 4 | 5 | #ifndef GENL_UNS_ADMIN_PERM 6 | #define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM 7 | #endif 8 | 9 | #endif /* __BACKPORT_UAPI_LINUX_GENETLINK_H */ 10 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/net/ipv6_stubs.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | #ifndef _BACKPORT_IPV6_STUBS_H 3 | #define _BACKPORT_IPV6_STUBS_H 4 | 5 | #if LINUX_VERSION_IS_LESS(5,2,0) 6 | 7 | #include 8 | 9 | #else 10 | #include_next 11 | #endif 12 | 13 | #endif /* _BACKPORT_IPV6_STUBS_H */ 14 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/compat/backport-4.18.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2018 Intel Corporation 3 | * Copyright (c) 2020 Toradex 4 | */ 5 | 6 | #include 7 | 8 | time64_t ktime_get_boottime_seconds(void) 9 | { 10 | return ktime_divns(ktime_get_boottime(), NSEC_PER_SEC); 11 | } 12 | EXPORT_SYMBOL_GPL(ktime_get_boottime_seconds); 13 | 14 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/chromeOS/adjustments/007-crypto.spatch: -------------------------------------------------------------------------------- 1 | @@ 2 | struct cfg80211_crypto_settings *crypto; 3 | @@ 4 | -crypto->control_port_no_preauth 5 | +cfg80211_crypto_control_port_no_preauth(crypto) 6 | 7 | @@ 8 | identifier i; 9 | @@ 10 | -i->crypto.control_port_no_preauth 11 | +cfg80211_crypto_control_port_no_preauth(&i->crypto) 12 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/eeprom_93cx6.h: -------------------------------------------------------------------------------- 1 | #ifndef _COMPAT_LINUX_EEPROM_93CX6_H 2 | #define _COMPAT_LINUX_EEPROM_93CX6_H 1 3 | 4 | #include_next 5 | 6 | #ifndef PCI_EEPROM_WIDTH_93C86 7 | #define PCI_EEPROM_WIDTH_93C86 8 8 | #endif /* PCI_EEPROM_WIDTH_93C86 */ 9 | 10 | #endif /* _COMPAT_LINUX_EEPROM_93CX6_H */ 11 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/device.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_DEVICE_H_ 2 | #define __BACKPORT_DEVICE_H_ 3 | #include_next 4 | 5 | #ifndef DEVICE_ATTR_ADMIN_RW 6 | #define DEVICE_ATTR_ADMIN_RW(_name) \ 7 | struct device_attribute dev_attr_##_name = __ATTR_RW_MODE(_name, 0600) 8 | #endif 9 | 10 | #endif /* __BACKPORT_DEVICE_H_ */ 11 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/export.h: -------------------------------------------------------------------------------- 1 | #ifndef _COMPAT_LINUX_EXPORT_H 2 | #define _COMPAT_LINUX_EXPORT_H 1 3 | 4 | #include 5 | 6 | #include_next 7 | 8 | #ifndef EXPORT_SYMBOL_NS_GPL 9 | #define EXPORT_SYMBOL_NS_GPL(sym, ns) EXPORT_SYMBOL_GPL(sym) 10 | #endif 11 | 12 | #endif /* _COMPAT_LINUX_EXPORT_H */ 13 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/include/linux/asn1_decoder.h: -------------------------------------------------------------------------------- 1 | /* Automatically created during backport process */ 2 | #ifndef CPTCFG_BPAUTO_ASN1_DECODER 3 | #include_next 4 | #else 5 | #undef asn1_ber_decoder 6 | #define asn1_ber_decoder LINUX_BACKPORT(asn1_ber_decoder) 7 | #include 8 | #endif /* CPTCFG_BPAUTO_ASN1_DECODER */ 9 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/jump_label.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_JUMP_LABEL_H 2 | #define __BACKPORT_LINUX_JUMP_LABEL_H 3 | #include_next 4 | 5 | #ifndef DECLARE_STATIC_KEY_FALSE 6 | #define DECLARE_STATIC_KEY_FALSE(name) \ 7 | extern struct static_key_false name 8 | #endif 9 | 10 | #endif /* __BACKPORT_LINUX_JUMP_LABEL_H */ 11 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/compat/backport-4.11.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-2.0 2 | 3 | #include 4 | #include 5 | 6 | struct rtnl_link_stats64 * 7 | bp_dev_get_tstats64(struct net_device *dev, struct rtnl_link_stats64 *s) 8 | { 9 | dev_get_tstats64(dev, s); 10 | return s; 11 | } 12 | EXPORT_SYMBOL_GPL(bp_dev_get_tstats64); 13 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/math.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | #ifndef __BACKPORTS_LINUX_MATH_H 3 | #define __BACKPORTS_LINUX_MATH_H 4 | #include 5 | 6 | #if LINUX_VERSION_IS_GEQ(5,11,0) 7 | #include_next 8 | #else 9 | #include 10 | #endif 11 | 12 | #endif /* __BACKPORTS_LINUX_MATH_H */ 13 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/random.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_RANDOM_H 2 | #define __BACKPORT_RANDOM_H 3 | #include_next 4 | #include 5 | 6 | 7 | #if LINUX_VERSION_IS_LESS(4,11,0) 8 | static inline u32 get_random_u32(void) 9 | { 10 | return get_random_int(); 11 | } 12 | #endif 13 | 14 | #endif /* __BACKPORT_RANDOM_H */ 15 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/Documentation/developers/index.rst: -------------------------------------------------------------------------------- 1 | Developer Documentation 2 | ======================= 3 | 4 | This section of the documentation contains information for 5 | the developers themselves. 6 | 7 | .. toctree:: 8 | :maxdepth: 1 9 | 10 | trees 11 | chromeos 12 | commit-messages 13 | commit-metadata 14 | new-config-symbols 15 | prune 16 | tracing 17 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/moduleparam.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_MODULEPARAM_H 2 | #define __BACKPORT_LINUX_MODULEPARAM_H 3 | #include_next 4 | 5 | #ifndef module_param_hw_array 6 | #define module_param_hw_array(name, type, hwtype, nump, perm) \ 7 | module_param_array(name, type, nump, perm) 8 | #endif 9 | 10 | #endif /* __BACKPORT_LINUX_MODULEPARAM_H */ 11 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/keys/system_keyring.h: -------------------------------------------------------------------------------- 1 | #ifndef __BP_SYSTEM_KEYRING_H 2 | #define __BP_SYSTEM_KEYRING_H 3 | #ifndef CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION 4 | #include_next 5 | #else 6 | #include 7 | 8 | #define is_hash_blacklisted(...) 0 9 | #endif /* CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION */ 10 | #endif /* __BP_SYSTEM_KEYRING_H */ 11 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/drivers/net/wireless/intel/iwlwifi/mei/trace.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-2.0-only 2 | /* 3 | * Copyright (C) 2021 Intel Corporation 4 | */ 5 | 6 | #include 7 | 8 | /* sparse doesn't like tracepoint macros */ 9 | #ifndef __CHECKER__ 10 | 11 | #define CREATE_TRACE_POINTS 12 | #include "trace.h" 13 | #include "trace-data.h" 14 | 15 | #endif /* __CHECKER__ */ 16 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/.blacklist.map: -------------------------------------------------------------------------------- 1 | # Update this map when a driver gets renamed or 2 | # symbols from old drivers get moved to a newer 3 | # driver. If you have the driver on the right 4 | # hand side it will be blacklisted upon installation 5 | # only if you actually installed the driver on the 6 | # left. 7 | 8 | # new-driver old-driver 9 | iwlwifi iwlagn 10 | iwl4965 iwlagn 11 | videodev v4l2-compat-ioctl32 12 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/virtio.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_VIRTIO_H 2 | #define __BACKPORT_LINUX_VIRTIO_H 3 | #include_next 4 | 5 | #if LINUX_VERSION_IS_LESS(5,17,0) 6 | #include 7 | static inline void virtio_reset_device(struct virtio_device *dev) 8 | { 9 | dev->config->reset(dev); 10 | } 11 | #endif 12 | 13 | #endif /* __BACKPORT_LINUX_VIRTIO_H */ 14 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 2 | /* 3 | * Copyright (C) 2005-2014 Intel Corporation 4 | */ 5 | #ifndef __iwl_eeprom_h__ 6 | #define __iwl_eeprom_h__ 7 | 8 | #include "iwl-trans.h" 9 | 10 | int iwl_read_eeprom(struct iwl_trans *trans, u8 **eeprom, size_t *eeprom_size); 11 | 12 | #endif /* __iwl_eeprom_h__ */ 13 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | Intel is committed to rapidly addressing security vulnerabilities affecting our customers and providing clear guidance on the solution, impact, severity and mitigation. 3 | 4 | ## Reporting a Vulnerability 5 | Please report any security vulnerabilities in this project utilizing the guidelines [here](https://www.intel.com/content/www/us/en/security-center/vulnerability-handling-guidelines.html). 6 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/hrtimer.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_HRTIMER_H 2 | #define __BACKPORT_LINUX_HRTIMER_H 3 | #include 4 | #include_next 5 | 6 | #if LINUX_VERSION_IS_LESS(4,16,0) 7 | 8 | #define HRTIMER_MODE_ABS_SOFT HRTIMER_MODE_ABS 9 | #define HRTIMER_MODE_REL_SOFT HRTIMER_MODE_REL 10 | 11 | #endif /* < 4.16 */ 12 | 13 | #endif /* __BACKPORT_LINUX_HRTIMER_H */ 14 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/kthread.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_KTHREAD_H 2 | #define __BACKPORT_LINUX_KTHREAD_H 3 | #include_next 4 | 5 | #if LINUX_VERSION_IS_LESS(5,17,0) 6 | static inline void __noreturn 7 | kthread_complete_and_exit(struct completion *c, long ret) 8 | { 9 | complete_and_exit(c, ret); 10 | } 11 | #endif /* < 5.17 */ 12 | 13 | #endif /* __BACKPORT_LINUX_KTHREAD_H */ 14 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/net/xfrm.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_NET_XFRM_H 2 | #define __BACKPORT_NET_XFRM_H 3 | #include_next 4 | #include 5 | 6 | #if LINUX_VERSION_IS_LESS(5,4,0) 7 | #define skb_ext_reset LINUX_BACKPORT(skb_ext_reset) 8 | static inline void skb_ext_reset(struct sk_buff *skb) 9 | { 10 | secpath_reset(skb); 11 | } 12 | #endif 13 | 14 | #endif /* __BACKPORT_NET_XFRM_H */ 15 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/compat/verification/mbedtls/platform.h: -------------------------------------------------------------------------------- 1 | #ifndef __MBEDTLS_PLATFORM_H 2 | #define __MBEDTLS_PLATFORM_H 3 | #include 4 | #include 5 | #include 6 | 7 | #define mbedtls_printf pr_debug 8 | #define mbedtls_calloc(a, b) kcalloc(a, b, GFP_KERNEL) 9 | #define mbedtls_free kfree 10 | #define mbedtls_snprintf snprintf 11 | 12 | #endif /* __MBEDTLS_PLATFORM_H */ 13 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/include/crypto/arc4.h: -------------------------------------------------------------------------------- 1 | /* Automatically created during backport process */ 2 | #ifndef CPTCFG_BPAUTO_BUILD_CRYPTO_LIB_ARC4 3 | #include_next 4 | #else 5 | #undef arc4_setkey 6 | #define arc4_setkey LINUX_BACKPORT(arc4_setkey) 7 | #undef arc4_crypt 8 | #define arc4_crypt LINUX_BACKPORT(arc4_crypt) 9 | #include 10 | #endif /* CPTCFG_BPAUTO_BUILD_CRYPTO_LIB_ARC4 */ 11 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/Documentation/sphinx/tmplcvt: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Convert a template file into something like RST 4 | # 5 | # fix 6 | # feed to pandoc 7 | # fix \_ 8 | # title line? 9 | # 10 | 11 | in=$1 12 | rst=$2 13 | tmp=$rst.tmp 14 | 15 | cp $in $tmp 16 | sed --in-place -f convert_template.sed $tmp 17 | pandoc -s -S -f docbook -t rst -o $rst $tmp 18 | sed --in-place -f post_convert.sed $rst 19 | rm $tmp 20 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/math64.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_MATH64_H 2 | #define __BACKPORT_LINUX_MATH64_H 3 | #include_next 4 | #include 5 | 6 | #if LINUX_VERSION_IS_LESS(5,9,0) 7 | #define mul_u64_u64_div_u64 LINUX_BACKPORT(mul_u64_u64_div_u64) 8 | extern u64 mul_u64_u64_div_u64(u64 a, u64 b, u64 c); 9 | #endif /* < 5.9 */ 10 | 11 | #endif /* __BACKPORT_LINUX_MATH64_H */ 12 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/chromeOS/adjustments/018-ext_capab.spatch: -------------------------------------------------------------------------------- 1 | @@ 2 | identifier hw; 3 | identifier wiphy; 4 | expression E; 5 | @@ 6 | +#if CFG80211_VERSION >= KERNEL_VERSION(4,8,0) 7 | hw->wiphy->iftype_ext_capab = E; 8 | +#endif 9 | 10 | @@ 11 | identifier hw; 12 | identifier wiphy; 13 | expression E; 14 | @@ 15 | +#if CFG80211_VERSION >= KERNEL_VERSION(4,8,0) 16 | hw->wiphy->num_iftype_ext_capab = E; 17 | +#endif -------------------------------------------------------------------------------- /iwlwifi-stack-dev/net/wireless/debugfs.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | #ifndef __CFG80211_DEBUGFS_H 3 | #define __CFG80211_DEBUGFS_H 4 | 5 | #ifdef CPTCFG_CFG80211_DEBUGFS 6 | void cfg80211_debugfs_rdev_add(struct cfg80211_registered_device *rdev); 7 | #else 8 | static inline 9 | void cfg80211_debugfs_rdev_add(struct cfg80211_registered_device *rdev) {} 10 | #endif 11 | 12 | #endif /* __CFG80211_DEBUGFS_H */ 13 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/efi.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | /* 3 | * Copyright (C) 2022 Intel Corporation 4 | */ 5 | #ifndef __BACKPORT_LINUX_EFI_H 6 | #define __BACKPORT_LINUX_EFI_H 7 | #include_next 8 | 9 | #ifndef EFI_RT_SUPPORTED_GET_VARIABLE 10 | #define efi_rt_services_supported(...) efi_enabled(EFI_RUNTIME_SERVICES) 11 | #endif 12 | 13 | #endif /* __BACKPORT_LINUX_EFI_H */ 14 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/net.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_NET_H 2 | #define __BACKPORT_LINUX_NET_H 3 | #include_next 4 | #include 5 | 6 | 7 | #ifndef SOCKWQ_ASYNC_NOSPACE 8 | #define SOCKWQ_ASYNC_NOSPACE SOCK_ASYNC_NOSPACE 9 | #endif 10 | #ifndef SOCKWQ_ASYNC_WAITDATA 11 | #define SOCKWQ_ASYNC_WAITDATA SOCK_ASYNC_WAITDATA 12 | #endif 13 | 14 | #endif /* __BACKPORT_LINUX_NET_H */ 15 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/chromeOS/adjustments/015-fils_discovery.spatch: -------------------------------------------------------------------------------- 1 | @@ 2 | identifier link_conf, link, params, sdata; 3 | @@ 4 | +#if CFG80211_VERSION > KERNEL_VERSION(5,10,0) 5 | ieee80211_set_fils_discovery(struct ieee80211_sub_if_data *sdata, 6 | struct cfg80211_fils_discovery *params, 7 | struct ieee80211_link_data *link, 8 | struct ieee80211_bss_conf *link_conf) 9 | { 10 | ... 11 | } 12 | +#endif 13 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/chromeOS/adjustments/018-sar_specs.spatch: -------------------------------------------------------------------------------- 1 | @sar_specs@ 2 | identifier ops; 3 | identifier fn; 4 | @@ 5 | struct cfg80211_ops ops = { 6 | ..., 7 | +#if CFG80211_VERSION >= KERNEL_VERSION(5,11,0) 8 | .set_sar_specs = fn, 9 | +#endif 10 | ... 11 | }; 12 | 13 | @@ 14 | identifier sar_specs.fn; 15 | @@ 16 | +#if CFG80211_VERSION >= KERNEL_VERSION(5,11,0) 17 | fn(...) 18 | { 19 | ... 20 | } 21 | +#endif 22 | 23 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/drivers/net/wireless/intel/iwlwifi/mei/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | obj-$(CPTCFG_IWLMEI) += iwlmei.o 3 | obj-$(CPTCFG_IWLWIFI_SIMULATION) += mei_sim/ 4 | iwlmei-y += main.o 5 | iwlmei-y += net.o 6 | iwlmei-$(CPTCFG_IWLWIFI_DEVICE_TRACING) += trace.o 7 | CFLAGS_trace.o := -I$(src) 8 | 9 | ccflags-y += -I $(src)/../ 10 | 11 | ifeq ($(CPTCFG_IWLWIFI_SIMULATION),y) 12 | UBSAN_SANITIZE := y 13 | endif 14 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/pm.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_PM_H 2 | #define __BACKPORT_PM_H 3 | #include_next 4 | 5 | #ifndef PM_EVENT_AUTO 6 | #define PM_EVENT_AUTO 0x0400 7 | #endif 8 | 9 | #ifndef PM_EVENT_SLEEP 10 | #define PM_EVENT_SLEEP (PM_EVENT_SUSPEND) 11 | #endif 12 | 13 | #ifndef PMSG_IS_AUTO 14 | #define PMSG_IS_AUTO(msg) (((msg).event & PM_EVENT_AUTO) != 0) 15 | #endif 16 | 17 | #endif /* __BACKPORT_PM_H */ 18 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/chromeOS/adjustments/016-unsol_bcast.spatch: -------------------------------------------------------------------------------- 1 | @@ 2 | identifier link_conf, link, params, sdata; 3 | @@ 4 | +#if CFG80211_VERSION > KERNEL_VERSION(5,10,0) 5 | ieee80211_set_unsol_bcast_probe_resp(struct ieee80211_sub_if_data *sdata, 6 | struct cfg80211_unsol_bcast_probe_resp *params, 7 | struct ieee80211_link_data *link, 8 | struct ieee80211_bss_conf *link_conf) 9 | { 10 | ... 11 | } 12 | +#endif 13 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/if_arp.h: -------------------------------------------------------------------------------- 1 | #ifndef _BACKPORTS_LINUX_AF_ARP_H 2 | #define _BACKPORTS_LINUX_AF_ARP_H 1 3 | 4 | #include_next 5 | 6 | #ifndef ARPHRD_IEEE802154_MONITOR 7 | #define ARPHRD_IEEE802154_MONITOR 805 /* IEEE 802.15.4 network monitor */ 8 | #endif 9 | 10 | #ifndef ARPHRD_6LOWPAN 11 | #define ARPHRD_6LOWPAN 825 /* IPv6 over LoWPAN */ 12 | #endif 13 | 14 | #endif /* _BACKPORTS_LINUX_AF_ARP_H */ 15 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/net/iw_handler.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_IW_HANDLER_H 2 | #define __BACKPORT_IW_HANDLER_H 3 | #include_next 4 | 5 | 6 | /* this was added in v3.2.79, v3.18.30, v4.1.21, v4.4.6 and 4.5 */ 7 | #if !LINUX_VERSION_IS_GEQ(4,4,6) 8 | #define wireless_nlevent_flush LINUX_BACKPORT(wireless_nlevent_flush) 9 | static inline void wireless_nlevent_flush(void) {} 10 | #endif 11 | #endif /* __BACKPORT_IW_HANDLER_H */ 12 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/defconfigs/hwsim: -------------------------------------------------------------------------------- 1 | CPTCFG_CFG80211=m 2 | CPTCFG_CFG80211_DEFAULT_PS=y 3 | CPTCFG_CFG80211_DEBUGFS=y 4 | CPTCFG_CFG80211_WEXT=y 5 | CPTCFG_MAC80211=m 6 | # CPTCFG_MAC80211_RC_PID is not set 7 | # CPTCFG_MAC80211_RC_MINSTREL is not set 8 | # CPTCFG_MAC80211_RC_DEFAULT_MINSTREL is not set 9 | CPTCFG_MAC80211_DEBUGFS=y 10 | CPTCFG_MAC80211_MESSAGE_TRACING=y 11 | CPTCFG_WLAN=y 12 | CPTCFG_MAC80211_HWSIM=m 13 | # CPTCFG_IWLWIFI_FPGA is not set 14 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/backport/backport.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_H 2 | #define __BACKPORT_H 3 | #include 4 | #ifndef CONFIG_BACKPORT_INTEGRATE 5 | #include 6 | #endif 7 | #include 8 | 9 | #ifndef __ASSEMBLY__ 10 | #define LINUX_BACKPORT(__sym) backport_ ##__sym 11 | #ifndef CONFIG_BACKPORT_INTEGRATE 12 | #include 13 | #endif 14 | #endif 15 | 16 | #endif /* __BACKPORT_H */ 17 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/netdev_features.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_NETDEV_FEATURES_H 2 | #define __BACKPORT_NETDEV_FEATURES_H 3 | 4 | #include 5 | #include_next 6 | 7 | /* this was renamed in commit 53692b1de : sctp: Rename NETIF_F_SCTP_CSUM to NETIF_F_SCTP_CRC */ 8 | #ifndef NETIF_F_SCTP_CRC 9 | #define NETIF_F_SCTP_CRC __NETIF_F(SCTP_CSUM) 10 | #endif 11 | 12 | #endif /* __BACKPORT_NETDEV_FEATURES_H */ 13 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/Makefile.build: -------------------------------------------------------------------------------- 1 | # detect if make supports --eval 2 | _EVAL := $(shell make --eval "test:" -f /dev/null test >/dev/null 2>&1 && echo YES || echo NO) 3 | ifeq ($(_EVAL),YES) 4 | MAKE=$(BACKPORT_DIR)/scripts/make 5 | else 6 | -include .config 7 | endif 8 | 9 | export 10 | 11 | .PHONY: modules 12 | modules: 13 | @$(MAKE) -C $(KLIB_BUILD) M=$(BACKPORT_DIR) modules 14 | 15 | .PHONY: clean 16 | clean: 17 | @$(MAKE) -C $(KLIB_BUILD) M=$(BACKPORT_DIR) clean 18 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/nospec.h: -------------------------------------------------------------------------------- 1 | #ifndef _BACKPORT_LINUX_NOSPEC_H 2 | #define _BACKPORT_LINUX_NOSPEC_H 3 | 4 | #if LINUX_VERSION_IS_GEQ(4,15,2) || \ 5 | LINUX_VERSION_IN_RANGE(4,14,18, 4,15,0) || \ 6 | LINUX_VERSION_IN_RANGE(4,9,81, 4,10,0) || \ 7 | LINUX_VERSION_IN_RANGE(4,4,118, 4,5,0) 8 | #include_next 9 | #else 10 | #define array_index_nospec(index, size) (index) 11 | #endif 12 | 13 | #endif /* _BACKPORT_LINUX_NOSPEC_H */ 14 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/percpu-defs.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_PERCPU_DEFS_H 2 | #define __BACKPORT_PERCPU_DEFS_H 3 | #include_next 4 | 5 | /* override this with the array-safe version */ 6 | #undef __verify_pcpu_ptr 7 | #define __verify_pcpu_ptr(ptr) \ 8 | do { \ 9 | const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \ 10 | (void)__vpp_verify; \ 11 | } while (0) 12 | 13 | #endif /* __BACKPORT_PERCPU_DEFS_H */ 14 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/include/linux/mpls.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | #ifndef _LINUX_MPLS_H 3 | #define _LINUX_MPLS_H 4 | 5 | #include 6 | 7 | #define MPLS_TTL_MASK (MPLS_LS_TTL_MASK >> MPLS_LS_TTL_SHIFT) 8 | #define MPLS_BOS_MASK (MPLS_LS_S_MASK >> MPLS_LS_S_SHIFT) 9 | #define MPLS_TC_MASK (MPLS_LS_TC_MASK >> MPLS_LS_TC_SHIFT) 10 | #define MPLS_LABEL_MASK (MPLS_LS_LABEL_MASK >> MPLS_LS_LABEL_SHIFT) 11 | 12 | #endif /* _LINUX_MPLS_H */ 13 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/backport/checks.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_CHECKS 2 | #define __BACKPORT_CHECKS 3 | 4 | #if defined(CPTCFG_MAC80211) && defined(CPTCFG_MAC80211) 5 | #error "You must not have mac80211 built into your kernel if you want to enable it" 6 | #endif 7 | 8 | #if defined(CPTCFG_CFG80211) && defined(CPTCFG_CFG80211) 9 | #error "You must not have cfg80211 built into your kernel if you want to enable it" 10 | #endif 11 | 12 | #endif /* __BACKPORT_CHECKS */ 13 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/idr.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_IDR_H 2 | #define __BACKPORT_IDR_H 3 | #include_next 4 | #include 5 | 6 | 7 | #if LINUX_VERSION_IS_LESS(4, 11, 0) 8 | static inline void *backport_idr_remove(struct idr *idr, int id) 9 | { 10 | void *item = idr_find(idr, id); 11 | idr_remove(idr, id); 12 | return item; 13 | } 14 | #define idr_remove LINUX_BACKPORT(idr_remove) 15 | #endif 16 | 17 | #endif /* __BACKPORT_IDR_H */ 18 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/mmc/sdio_ids.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_MMC_SDIO_IDS_H 2 | #define __BACKPORT_MMC_SDIO_IDS_H 3 | #include 4 | #include_next 5 | 6 | #ifndef SDIO_CLASS_BT_AMP 7 | #define SDIO_CLASS_BT_AMP 0x09 /* Type-A Bluetooth AMP interface */ 8 | #endif 9 | 10 | #ifndef SDIO_DEVICE_ID_MARVELL_8688WLAN 11 | #define SDIO_DEVICE_ID_MARVELL_8688WLAN 0x9104 12 | #endif 13 | 14 | #endif /* __BACKPORT_MMC_SDIO_IDS_H */ 15 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/input.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_INPUT_H 2 | #define __BACKPORT_INPUT_H 3 | #include_next 4 | 5 | #ifndef KEY_WIMAX 6 | #define KEY_WIMAX 246 7 | #endif 8 | 9 | #ifndef KEY_WPS_BUTTON 10 | #define KEY_WPS_BUTTON 0x211 11 | #endif 12 | 13 | #ifndef KEY_RFKILL 14 | #define KEY_RFKILL 247 15 | #endif 16 | 17 | #ifndef SW_RFKILL_ALL 18 | #define SW_RFKILL_ALL 0x03 19 | #endif 20 | 21 | #endif /* __BACKPORT_INPUT_H */ 22 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/trace/ftrace.h: -------------------------------------------------------------------------------- 1 | #undef __print_array 2 | #define __print_array(array, count, el_size) \ 3 | ({ \ 4 | BUILD_BUG_ON(el_size != 1 && el_size != 2 && \ 5 | el_size != 4 && el_size != 8); \ 6 | ftrace_print_array_seq(p, array, count, el_size); \ 7 | }) 8 | 9 | #undef __get_dynamic_array_len 10 | #define __get_dynamic_array_len(field) \ 11 | ((__entry->__data_loc_##field >> 16) & 0xffff) 12 | 13 | #include_next 14 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/drivers/net/wireless/intel/iwlwifi/dvm/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0 2 | # DVM 3 | obj-$(CPTCFG_IWLDVM) += iwldvm.o 4 | iwldvm-objs += main.o rs.o mac80211.o ucode.o tx.o 5 | iwldvm-objs += lib.o calib.o tt.o sta.o rx.o 6 | 7 | iwldvm-objs += power.o 8 | iwldvm-objs += scan.o 9 | iwldvm-objs += rxon.o devices.o 10 | 11 | iwldvm-$(CPTCFG_IWLWIFI_LEDS) += led.o 12 | iwldvm-$(CPTCFG_IWLWIFI_DEBUGFS) += debugfs.o 13 | 14 | ccflags-y += -I$(src)/../ 15 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/post-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | unset GIT_DIR GIT_PREFIX GIT_WORK_TREE GIT_INDEX_FILE 4 | export GIT_DIR GIT_PREFIX GIT_WORK_TREE GIT_INDEX_FILE 5 | 6 | msg="$(./intc-scripts/check-commit-msg.py /tmp /tmp HEAD)" 7 | 8 | if [ -n "$msg" ] ; then 9 | echo '' 10 | echo '/-------- check-commit-message output --------' 11 | printf "%s\n" "$msg" | sed 's/^/| /' 12 | echo '\---------------------------------------------' 13 | echo '' 14 | echo '' 15 | fi 16 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/net/addrconf.h: -------------------------------------------------------------------------------- 1 | #ifndef _BACKPORT_NET_ADDRCONF_H 2 | #define _BACKPORT_NET_ADDRCONF_H 1 3 | 4 | #include_next 5 | 6 | #include 7 | 8 | #if LINUX_VERSION_IS_LESS(5,1,0) 9 | static inline int backport_ipv6_mc_check_mld(struct sk_buff *skb) 10 | { 11 | return ipv6_mc_check_mld(skb, NULL); 12 | } 13 | #define ipv6_mc_check_mld LINUX_BACKPORT(ipv6_mc_check_mld) 14 | #endif 15 | 16 | #endif /* _BACKPORT_NET_ADDRCONF_H */ 17 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/bits.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_BITS_H 2 | #define __BACKPORT_LINUX_BITS_H 3 | #include 4 | 5 | #if LINUX_VERSION_IS_GEQ(4,19,0) || \ 6 | LINUX_VERSION_IN_RANGE(4,14,119, 4,15,0) || \ 7 | LINUX_VERSION_IN_RANGE(4,9,176, 4,10,0) || \ 8 | LINUX_VERSION_IN_RANGE(4,4,180, 4,5,0) 9 | #include_next 10 | #else 11 | #include 12 | #endif /* >= 4.19 */ 13 | 14 | #endif /* __BACKPORT_LINUX_BITS_H */ 15 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/compat/verification/mbedtls/config.h: -------------------------------------------------------------------------------- 1 | #ifndef __MBEDTLS_CONFIG_H 2 | #define __MBEDTLS_CONFIG_H 3 | #define MBEDTLS_RSA_C 4 | #define MBEDTLS_PKCS1_V15 5 | #define MBEDTLS_MD_C 6 | #define __OpenBSD__ 7 | #define MBEDTLS_PLATFORM_C 8 | #define MBEDTLS_BIGNUM_C 9 | #define MBEDTLS_OID_C 10 | #define MBEDTLS_ASN1_PARSE_C 11 | #define MBEDTLS_NO_UDBL_DIVISION 12 | #define MBEDTLS_SHA256_C 13 | #include 14 | #include "platform.h" 15 | #endif /* __MBEDTLS_CONFIG_H */ 16 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/drivers/net/wireless/intel/iwlwifi/fw/api/led.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 2 | /* 3 | * Copyright (C) 2017 Intel Deutschland GmbH 4 | */ 5 | #ifndef __iwl_fw_api_led_h__ 6 | #define __iwl_fw_api_led_h__ 7 | 8 | /** 9 | * struct iwl_led_cmd - LED switching command 10 | * 11 | * @status: LED status (on/off) 12 | */ 13 | struct iwl_led_cmd { 14 | __le32 status; 15 | } __packed; /* LEDS_CMD_API_S_VER_2 */ 16 | 17 | #endif /* __iwl_fw_api_led_h__ */ 18 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/scripts/uninstall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | source ./scripts/mod_helpers.sh 6 | 7 | if test "$(mod_filename compat)" = "compat.ko.gz" ; then 8 | compr=".gz" 9 | elif test "$(mod_filename compat)" = "compat.ko.xz" ; then 10 | compr=".xz" 11 | else 12 | compr="" 13 | fi 14 | 15 | for driver in $(find ${BACKPORT_DIR} -type f -name *.ko); do 16 | mod_name=${driver/${BACKPORT_DIR}/${KLIB}${KMODDIR}}${compr} 17 | echo " uninstall" $mod_name 18 | rm -f $mod_name 19 | done 20 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/ethtool.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_ETHTOOL_H 2 | #define __BACKPORT_LINUX_ETHTOOL_H 3 | #include_next 4 | #include 5 | 6 | #ifndef SPEED_UNKNOWN 7 | #define SPEED_UNKNOWN -1 8 | #endif /* SPEED_UNKNOWN */ 9 | 10 | #ifndef DUPLEX_UNKNOWN 11 | #define DUPLEX_UNKNOWN 0xff 12 | #endif /* DUPLEX_UNKNOWN */ 13 | 14 | #ifndef ETHTOOL_FWVERS_LEN 15 | #define ETHTOOL_FWVERS_LEN 32 16 | #endif 17 | 18 | #endif /* __BACKPORT_LINUX_ETHTOOL_H */ 19 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/socket.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_SOCKET_H 2 | #define __BACKPORT_SOCKET_H 3 | #include_next 4 | 5 | #ifndef SOL_NFC 6 | /* 7 | * backport SOL_NFC -- see commit: 8 | * NFC: llcp: Implement socket options 9 | */ 10 | #define SOL_NFC 280 11 | #endif 12 | 13 | #ifndef __sockaddr_check_size 14 | #define __sockaddr_check_size(size) \ 15 | BUILD_BUG_ON(((size) > sizeof(struct __kernel_sockaddr_storage))) 16 | #endif 17 | 18 | #endif /* __BACKPORT_SOCKET_H */ 19 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/asm/unaligned.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_ASM_GENERIC_UNALIGNED_H 2 | #define __BACKPORT_ASM_GENERIC_UNALIGNED_H 3 | #include_next 4 | 5 | #if LINUX_VERSION_IS_LESS(5,7,0) 6 | static inline u32 __get_unaligned_be24(const u8 *p) 7 | { 8 | return p[0] << 16 | p[1] << 8 | p[2]; 9 | } 10 | 11 | static inline u32 get_unaligned_be24(const void *p) 12 | { 13 | return __get_unaligned_be24(p); 14 | } 15 | #endif /* < 5.7 */ 16 | 17 | #endif /* __BACKPORT_ASM_GENERIC_UNALIGNED_H */ 18 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/clk.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_CLK_H 2 | #define __BACKPORT_LINUX_CLK_H 3 | #include_next 4 | 5 | #include 6 | #if LINUX_VERSION_IS_LESS(5,1,0) 7 | 8 | static inline 9 | struct clk *devm_clk_get_optional(struct device *dev, const char *id) 10 | { 11 | struct clk *clk = devm_clk_get(dev, id); 12 | 13 | if (clk == ERR_PTR(-ENOENT)) 14 | return NULL; 15 | 16 | return clk; 17 | } 18 | 19 | #endif /* < 5.1 */ 20 | #endif /* __BACKPORT_LINUX_CLK_H */ 21 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/compat/verification/rsapubkey.asn1.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by asn1_compiler. Do not edit 3 | * 4 | * ASN.1 parser for rsapubkey 5 | */ 6 | #include 7 | 8 | extern const struct asn1_decoder rsapubkey_decoder; 9 | 10 | #define rsa_get_e LINUX_BACKPORT(rsa_get_e) 11 | #define rsa_get_n LINUX_BACKPORT(rsa_get_n) 12 | 13 | extern int rsa_get_e(void *, size_t, unsigned char, const void *, size_t); 14 | extern int rsa_get_n(void *, size_t, unsigned char, const void *, size_t); 15 | 16 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/bug.h: -------------------------------------------------------------------------------- 1 | #ifndef __BP_BUG_H 2 | #define __BP_BUG_H 3 | #include_next 4 | 5 | #ifndef __BUILD_BUG_ON_NOT_POWER_OF_2 6 | #ifdef __CHECKER__ 7 | #define __BUILD_BUG_ON_NOT_POWER_OF_2(n) (0) 8 | #else 9 | #define __BUILD_BUG_ON_NOT_POWER_OF_2(n) \ 10 | BUILD_BUG_ON(((n) & ((n) - 1)) != 0) 11 | #endif /* __CHECKER__ */ 12 | #endif /* __BUILD_BUG_ON_NOT_POWER_OF_2 */ 13 | 14 | #ifndef BUILD_BUG_ON_MSG 15 | #define BUILD_BUG_ON_MSG(x, msg) BUILD_BUG_ON(x) 16 | #endif 17 | 18 | #endif /* __BP_BUG_H */ 19 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/net/mac80211/debugfs.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | #ifndef __MAC80211_DEBUGFS_H 3 | #define __MAC80211_DEBUGFS_H 4 | 5 | #include "ieee80211_i.h" 6 | 7 | #ifdef CPTCFG_MAC80211_DEBUGFS 8 | void debugfs_hw_add(struct ieee80211_local *local); 9 | int __printf(4, 5) mac80211_format_buffer(char __user *userbuf, size_t count, 10 | loff_t *ppos, char *fmt, ...); 11 | #else 12 | static inline void debugfs_hw_add(struct ieee80211_local *local) 13 | { 14 | } 15 | #endif 16 | 17 | #endif /* __MAC80211_DEBUGFS_H */ 18 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/acpi.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_ACPI_H 2 | #define __BACKPORT_LINUX_ACPI_H 3 | #include_next 4 | #include 5 | 6 | #if LINUX_VERSION_IS_LESS(4,13,0) 7 | #define devm_acpi_dev_add_driver_gpios LINUX_BACKPORT(devm_acpi_dev_add_driver_gpios) 8 | static inline int devm_acpi_dev_add_driver_gpios(struct device *dev, 9 | const struct acpi_gpio_mapping *gpios) 10 | { 11 | return -ENXIO; 12 | } 13 | #endif /* LINUX_VERSION_IS_LESS(4,13,0) */ 14 | 15 | #endif /* __BACKPORT_LINUX_ACPI_H */ 16 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/mii.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_MII_H 2 | #define __BACKPORT_LINUX_MII_H 3 | #include_next 4 | #include 5 | 6 | 7 | #if LINUX_VERSION_IN_RANGE(4,6,0, 4,11,0) 8 | extern int mii_ethtool_get_link_ksettings( 9 | struct mii_if_info *mii, struct ethtool_link_ksettings *cmd); 10 | extern int mii_ethtool_set_link_ksettings( 11 | struct mii_if_info *mii, const struct ethtool_link_ksettings *cmd); 12 | #endif /* LINUX_VERSION_IN_RANGE(4,6,0, 4,11,0) */ 13 | 14 | #endif /* __BACKPORT_LINUX_MII_H */ 15 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/net/mac80211/debugfs_sta.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | #ifndef __MAC80211_DEBUGFS_STA_H 3 | #define __MAC80211_DEBUGFS_STA_H 4 | 5 | #include "sta_info.h" 6 | 7 | #ifdef CPTCFG_MAC80211_DEBUGFS 8 | void ieee80211_sta_debugfs_add(struct sta_info *sta); 9 | void ieee80211_sta_debugfs_remove(struct sta_info *sta); 10 | #else 11 | static inline void ieee80211_sta_debugfs_add(struct sta_info *sta) {} 12 | static inline void ieee80211_sta_debugfs_remove(struct sta_info *sta) {} 13 | #endif 14 | 15 | #endif /* __MAC80211_DEBUGFS_STA_H */ 16 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/include/crypto/pkcs7.h: -------------------------------------------------------------------------------- 1 | /* Automatically created during backport process */ 2 | #ifndef CPTCFG_BPAUTO_PKCS7 3 | #include_next 4 | #else 5 | #define pkcs7_verify LINUX_BACKPORT(pkcs7_verify) 6 | #define pkcs7_get_content_data LINUX_BACKPORT(pkcs7_get_content_data) 7 | #define pkcs7_parse_message LINUX_BACKPORT(pkcs7_parse_message) 8 | #define pkcs7_free_message LINUX_BACKPORT(pkcs7_free_message) 9 | #define pkcs7_validate_trust LINUX_BACKPORT(pkcs7_validate_trust) 10 | #include 11 | #endif /* CPTCFG_BPAUTO_PKCS7 */ 12 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/acpi/acpi_bus.h: -------------------------------------------------------------------------------- 1 | #ifndef _BACKPORTS_ACPI_BUS_H__ 2 | #define _BACKPORTS_ACPI_BUS_H__ 1 3 | 4 | #include_next 5 | 6 | #if LINUX_VERSION_IS_LESS(4,13,0) 7 | static inline union acpi_object * 8 | backport_acpi_evaluate_dsm(acpi_handle handle, const guid_t *guid, u64 rev, u64 func, union acpi_object *argv4) 9 | { 10 | return acpi_evaluate_dsm(handle, guid->b, rev, func, argv4); 11 | } 12 | #define acpi_evaluate_dsm LINUX_BACKPORT(acpi_evaluate_dsm) 13 | #endif /* x < 4.13.0 */ 14 | 15 | #endif /* _BACKPORTS_ACPI_BUS_H__ */ 16 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/init.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_INIT_H 2 | #define __BACKPORT_INIT_H 3 | #include_next 4 | 5 | /* 6 | * Backports 312b1485fb509c9bc32eda28ad29537896658cb8 7 | * Author: Sam Ravnborg 8 | * Date: Mon Jan 28 20:21:15 2008 +0100 9 | * 10 | * Introduce new section reference annotations tags: __ref, __refdata, __refconst 11 | */ 12 | #ifndef __ref 13 | #define __ref __init_refok 14 | #endif 15 | #ifndef __refdata 16 | #define __refdata __initdata_refok 17 | #endif 18 | 19 | #endif /* __BACKPORT_INIT_H */ 20 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/drivers/net/wireless/intel/iwlwifi/dvm/calib.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 2 | /* 3 | * Copyright (C) 2005-2014 Intel Corporation 4 | */ 5 | #ifndef __iwl_calib_h__ 6 | #define __iwl_calib_h__ 7 | 8 | #include "dev.h" 9 | #include "commands.h" 10 | 11 | void iwl_chain_noise_calibration(struct iwl_priv *priv); 12 | void iwl_sensitivity_calibration(struct iwl_priv *priv); 13 | 14 | void iwl_init_sensitivity(struct iwl_priv *priv); 15 | void iwl_reset_run_time_calib(struct iwl_priv *priv); 16 | 17 | #endif /* __iwl_calib_h__ */ 18 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/net/mac80211/fils_aead.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0-only */ 2 | /* 3 | * FILS AEAD for (Re)Association Request/Response frames 4 | * Copyright 2016, Qualcomm Atheros, Inc. 5 | */ 6 | 7 | #ifndef FILS_AEAD_H 8 | #define FILS_AEAD_H 9 | 10 | int fils_encrypt_assoc_req(struct sk_buff *skb, 11 | struct ieee80211_mgd_assoc_data *assoc_data); 12 | int fils_decrypt_assoc_resp(struct ieee80211_sub_if_data *sdata, 13 | u8 *frame, size_t *frame_len, 14 | struct ieee80211_mgd_assoc_data *assoc_data); 15 | 16 | #endif /* FILS_AEAD_H */ 17 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/asm/barrier.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_ASM_BARRIER_H 2 | #define __BACKPORT_ASM_BARRIER_H 3 | 4 | #include 5 | #include_next 6 | 7 | #ifndef dma_rmb 8 | #define dma_rmb() rmb() 9 | #endif 10 | 11 | #ifndef dma_wmb 12 | #define dma_wmb() wmb() 13 | #endif 14 | 15 | #ifndef smp_mb__after_atomic 16 | #define smp_mb__after_atomic smp_mb__after_clear_bit 17 | #endif 18 | 19 | #ifndef smp_acquire__after_ctrl_dep 20 | #define smp_acquire__after_ctrl_dep() smp_rmb() 21 | #endif 22 | 23 | #endif /* __BACKPORT_ASM_BARRIER_H */ 24 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/net/mac80211/michael.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0-only */ 2 | /* 3 | * Michael MIC implementation - optimized for TKIP MIC operations 4 | * Copyright 2002-2003, Instant802 Networks, Inc. 5 | */ 6 | 7 | #ifndef MICHAEL_H 8 | #define MICHAEL_H 9 | 10 | #include 11 | #include 12 | 13 | #define MICHAEL_MIC_LEN 8 14 | 15 | struct michael_mic_ctx { 16 | u32 l, r; 17 | }; 18 | 19 | void michael_mic(const u8 *key, struct ieee80211_hdr *hdr, 20 | const u8 *data, size_t data_len, u8 *mic); 21 | 22 | #endif /* MICHAEL_H */ 23 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/COPYING: -------------------------------------------------------------------------------- 1 | The Linux Kernel is provided under: 2 | 3 | SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 4 | 5 | Being under the terms of the GNU General Public License version 2 only, 6 | according with: 7 | 8 | LICENSES/preferred/GPL-2.0 9 | 10 | With an explicit syscall exception, as stated at: 11 | 12 | LICENSES/exceptions/Linux-syscall-note 13 | 14 | In addition, other licenses may also apply. Please see: 15 | 16 | Documentation/process/license-rules.rst 17 | 18 | for more details. 19 | 20 | All contributions to the Linux Kernel are subject to this COPYING file. 21 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/include/linux/oid_registry.h: -------------------------------------------------------------------------------- 1 | /* Automatically created during backport process */ 2 | #ifndef CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION 3 | #include_next 4 | #else 5 | #undef look_up_OID 6 | #define look_up_OID LINUX_BACKPORT(look_up_OID) 7 | #undef parse_OID 8 | #define parse_OID LINUX_BACKPORT(parse_OID) 9 | #undef sprint_oid 10 | #define sprint_oid LINUX_BACKPORT(sprint_oid) 11 | #undef sprint_OID 12 | #define sprint_OID LINUX_BACKPORT(sprint_OID) 13 | #include 14 | #endif /* CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION */ 15 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/include/linux/backport-asn1_decoder.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 | /* ASN.1 decoder 3 | * 4 | * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved. 5 | * Written by David Howells (dhowells@redhat.com) 6 | */ 7 | 8 | #ifndef _LINUX_ASN1_DECODER_H 9 | #define _LINUX_ASN1_DECODER_H 10 | 11 | #include 12 | 13 | struct asn1_decoder; 14 | 15 | extern int asn1_ber_decoder(const struct asn1_decoder *decoder, 16 | void *context, 17 | const unsigned char *data, 18 | size_t datalen); 19 | 20 | #endif /* _LINUX_ASN1_DECODER_H */ 21 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/kcov.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | #ifndef __BACKPORTS_LINUX_KCOV_H 3 | #define __BACKPORTS_LINUX_KCOV_H 4 | #include 5 | #if LINUX_VERSION_IS_GEQ(4,6,0) 6 | #include_next 7 | #endif 8 | 9 | #if LINUX_VERSION_IS_LESS(5,5,0) 10 | #define kcov_remote_stop LINUX_BACKPORT(kcov_remote_stop) 11 | static inline void kcov_remote_stop(void) {} 12 | #define kcov_remote_start_common LINUX_BACKPORT(kcov_remote_start_common) 13 | static inline void kcov_remote_start_common(u64 id) {} 14 | #endif 15 | 16 | #endif /* __BACKPORTS_LINUX_KCOV_H */ 17 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/drivers/net/wireless/intel/iwlwifi/mei/internal.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-2.0-only 2 | /* 3 | * Copyright (C) 2021 Intel Corporation 4 | */ 5 | 6 | #ifndef __IWLMEI_INTERNAL_H_ 7 | #define __IWLMEI_INTERNAL_H_ 8 | 9 | #include 10 | #include 11 | 12 | #include "sap.h" 13 | 14 | rx_handler_result_t iwl_mei_rx_filter(struct sk_buff *skb, 15 | const struct iwl_sap_oob_filters *filters, 16 | bool *pass_to_csme); 17 | 18 | void iwl_mei_add_data_to_ring(struct sk_buff *skb, bool cb_tx); 19 | 20 | #endif /* __IWLMEI_INTERNAL_H_ */ 21 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/backport/magic.h: -------------------------------------------------------------------------------- 1 | /* 2 | * These tricks are taken from 3 | * http://efesx.com/2010/07/17/variadic-macro-to-count-number-of-arguments/ 4 | * and 5 | * http://efesx.com/2010/08/31/overloading-macros/ 6 | */ 7 | 8 | #define VA_NUM_ARGS(...) VA_NUM_ARGS_IMPL(__VA_ARGS__, 6,5,4,3,2,1) 9 | #define VA_NUM_ARGS_IMPL(_1,_2,_3,_4,_5,_6,N,...) N 10 | 11 | #define macro_dispatcher(func, ...) \ 12 | macro_dispatcher_(func, VA_NUM_ARGS(__VA_ARGS__)) 13 | #define macro_dispatcher_(func, nargs) \ 14 | macro_dispatcher__(func, nargs) 15 | #define macro_dispatcher__(func, nargs) \ 16 | func ## nargs 17 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/cordic.h: -------------------------------------------------------------------------------- 1 | #ifndef _BACKPORT_LINUX_CORDIC_H 2 | #define _BACKPORT_LINUX_CORDIC_H 1 3 | 4 | #include_next 5 | 6 | 7 | #ifndef CORDIC_FLOAT 8 | #define CORDIC_ANGLE_GEN 39797 9 | #define CORDIC_PRECISION_SHIFT 16 10 | #define CORDIC_NUM_ITER (CORDIC_PRECISION_SHIFT + 2) 11 | 12 | #define CORDIC_FIXED(X) ((s32)((X) << CORDIC_PRECISION_SHIFT)) 13 | #define CORDIC_FLOAT(X) (((X) >= 0) \ 14 | ? ((((X) >> (CORDIC_PRECISION_SHIFT - 1)) + 1) >> 1) \ 15 | : -((((-(X)) >> (CORDIC_PRECISION_SHIFT - 1)) + 1) >> 1)) 16 | #endif 17 | 18 | #endif /* _BACKPORT_LINUX_CORDIC_H */ 19 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/include/crypto/backport-arc4.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0+ */ 2 | /* 3 | * Common values for ARC4 Cipher Algorithm 4 | */ 5 | 6 | #ifndef _CRYPTO_ARC4_H 7 | #define _CRYPTO_ARC4_H 8 | 9 | #include 10 | 11 | #define ARC4_MIN_KEY_SIZE 1 12 | #define ARC4_MAX_KEY_SIZE 256 13 | #define ARC4_BLOCK_SIZE 1 14 | 15 | struct arc4_ctx { 16 | u32 S[256]; 17 | u32 x, y; 18 | }; 19 | 20 | int arc4_setkey(struct arc4_ctx *ctx, const u8 *in_key, unsigned int key_len); 21 | void arc4_crypt(struct arc4_ctx *ctx, u8 *out, const u8 *in, unsigned int len); 22 | 23 | #endif /* _CRYPTO_ARC4_H */ 24 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/compat/backport-5.11.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-2.0 2 | 3 | #include 4 | #include 5 | 6 | /** 7 | * dev_get_tstats64 - ndo_get_stats64 implementation 8 | * @dev: device to get statistics from 9 | * @s: place to store stats 10 | * 11 | * Populate @s from dev->stats and dev->tstats. Can be used as 12 | * ndo_get_stats64() callback. 13 | */ 14 | void dev_get_tstats64(struct net_device *dev, struct rtnl_link_stats64 *s) 15 | { 16 | netdev_stats_to_stats64(s, &dev->stats); 17 | dev_fetch_sw_netstats(s, dev->tstats); 18 | } 19 | EXPORT_SYMBOL_GPL(dev_get_tstats64); 20 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/delay.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_DELAY_H 2 | #define __BACKPORT_LINUX_DELAY_H 3 | #include_next 4 | 5 | #include 6 | 7 | #if LINUX_VERSION_IS_LESS(5,8,0) 8 | #define fsleep LINUX_BACKPORT(fsleep) 9 | /* see Documentation/timers/timers-howto.rst for the thresholds */ 10 | static inline void fsleep(unsigned long usecs) 11 | { 12 | if (usecs <= 10) 13 | udelay(usecs); 14 | else if (usecs <= 20000) 15 | usleep_range(usecs, 2 * usecs); 16 | else 17 | msleep(DIV_ROUND_UP(usecs, 1000)); 18 | } 19 | #endif /* < 5.8.0 */ 20 | 21 | #endif /* __BACKPORT_LINUX_DELAY_H */ 22 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/drivers/net/wireless/intel/iwlwifi/fw/debugfs.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 2 | /* 3 | * Copyright (C) 2012-2014 Intel Corporation 4 | * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 | * Copyright (C) 2016-2017 Intel Deutschland GmbH 6 | */ 7 | #include "runtime.h" 8 | 9 | #ifdef CPTCFG_IWLWIFI_DEBUGFS 10 | void iwl_fwrt_dbgfs_register(struct iwl_fw_runtime *fwrt, 11 | struct dentry *dbgfs_dir); 12 | 13 | #else 14 | static inline void iwl_fwrt_dbgfs_register(struct iwl_fw_runtime *fwrt, 15 | struct dentry *dbgfs_dir) { } 16 | 17 | #endif /* CPTCFG_IWLWIFI_DEBUGFS */ 18 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | PROJECT NOT UNDER ACTIVE MANAGEMENT 2 | 3 | This project will no longer be maintained by Intel. 4 | 5 | Intel has ceased development and contributions including, but not limited to, maintenance, bug fixes, new releases, or updates, to this project. 6 | 7 | Intel no longer accepts patches to this project. 8 | 9 | If you have an ongoing need to use this project, are interested in independently developing it, or would like to maintain patches for the open source software community, please create your own fork of this project. 10 | 11 | Contact: webadmin@linux.intel.com 12 | # backport-iwlwifi 13 | intel wifi driver backported 14 | 15 | 16 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/gpio/driver.h: -------------------------------------------------------------------------------- 1 | #ifndef __BP_GPIO_DRIVER_H 2 | #define __BP_GPIO_DRIVER_H 3 | #include 4 | #include_next 5 | 6 | #if LINUX_VERSION_IS_LESS(5,3,0) 7 | enum gpiod_flags; 8 | enum gpio_lookup_flags; 9 | 10 | #define gpiochip_request_own_desc LINUX_BACKPORT(gpiochip_request_own_desc) 11 | struct gpio_desc *backport_gpiochip_request_own_desc(struct gpio_chip *gc, 12 | unsigned int hwnum, 13 | const char *label, 14 | enum gpio_lookup_flags lflags, 15 | enum gpiod_flags dflags); 16 | #endif /* x < 5.3.0 */ 17 | 18 | #endif /* __BP_GPIO_DRIVER_H */ 19 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/net/mac80211/aes_gmac.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0-only */ 2 | /* 3 | * Copyright 2015, Qualcomm Atheros, Inc. 4 | */ 5 | 6 | #ifndef AES_GMAC_H 7 | #define AES_GMAC_H 8 | 9 | #include 10 | 11 | #define GMAC_AAD_LEN 20 12 | #define GMAC_MIC_LEN 16 13 | #define GMAC_NONCE_LEN 12 14 | 15 | struct crypto_aead *ieee80211_aes_gmac_key_setup(const u8 key[], 16 | size_t key_len); 17 | int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, 18 | const u8 *data, size_t data_len, u8 *mic); 19 | void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm); 20 | 21 | #endif /* AES_GMAC_H */ 22 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/genetlink.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_GENETLINK_H 2 | #define __BACKPORT_LINUX_GENETLINK_H 3 | #include_next 4 | 5 | /* This backports: 6 | * 7 | * commit e9412c37082b5c932e83364aaed0c38c2ce33acb 8 | * Author: Neil Horman 9 | * Date: Tue May 29 09:30:41 2012 +0000 10 | * 11 | * genetlink: Build a generic netlink family module alias 12 | */ 13 | #ifndef MODULE_ALIAS_GENL_FAMILY 14 | #define MODULE_ALIAS_GENL_FAMILY(family)\ 15 | MODULE_ALIAS_NET_PF_PROTO_NAME(PF_NETLINK, NETLINK_GENERIC, "-family-" family) 16 | #endif 17 | 18 | #endif /* __BACKPORT_LINUX_GENETLINK_H */ 19 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/kconfig.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_KCONFIG_H 2 | #define __BACKPORT_LINUX_KCONFIG_H 3 | #include 4 | #include_next 5 | 6 | #ifndef IS_REACHABLE 7 | /* 8 | * IS_REACHABLE(CONFIG_FOO) evaluates to 1 if the currently compiled 9 | * code can call a function defined in code compiled based on CONFIG_FOO. 10 | * This is similar to IS_ENABLED(), but returns false when invoked from 11 | * built-in code when CONFIG_FOO is set to 'm'. 12 | */ 13 | #define IS_REACHABLE(option) (config_enabled(option) || \ 14 | (config_enabled(option##_MODULE) && config_enabled(MODULE))) 15 | #endif 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/chromeOS/hdrs/iwl-tx.h: -------------------------------------------------------------------------------- 1 | #ifndef __IWL_CHROME_TX_H 2 | #define __IWL_CHROME_TX_H 3 | /* This file is pre-included from the Makefile (cc command line) 4 | * 5 | * ChromeOS backport file-specific definitions 6 | * Copyright (C) 2018 Intel Corporation 7 | */ 8 | 9 | /* This file includes our version of the headers that otherwise would 10 | * be taken from the kernel's headers, but that can only be included 11 | * in a C-file that actually uses them. 12 | */ 13 | 14 | #include "hdrs/net/codel.h" 15 | #include "hdrs/net/codel_impl.h" 16 | #include "hdrs/net/fq.h" 17 | #include "hdrs/net/fq_impl.h" 18 | 19 | #endif /* __IWL_CHROME_TX_H */ 20 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/version.h: -------------------------------------------------------------------------------- 1 | #ifndef _BP_LINUX_VERSION_H 2 | #define _BP_LINUX_VERSION_H 3 | #include_next 4 | 5 | #ifndef RHEL_RELEASE_VERSION 6 | #define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b)) 7 | #endif 8 | 9 | #ifndef RHEL_RELEASE_CODE 10 | #define RHEL_RELEASE_CODE 0 11 | #endif 12 | 13 | #define LINUX_VERSION_IS_LESS(x1,x2,x3) (LINUX_VERSION_CODE < KERNEL_VERSION(x1,x2,x3)) 14 | #define LINUX_VERSION_IS_GEQ(x1,x2,x3) (LINUX_VERSION_CODE >= KERNEL_VERSION(x1,x2,x3)) 15 | #define LINUX_VERSION_IN_RANGE(x1,x2,x3, y1,y2,y3) \ 16 | (LINUX_VERSION_IS_GEQ(x1,x2,x3) && LINUX_VERSION_IS_LESS(y1,y2,y3)) 17 | #endif /* _BP_LINUX_VERSION_H */ 18 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/io.h: -------------------------------------------------------------------------------- 1 | #ifndef __BP_LINUX_IO_H 2 | #define __BP_LINUX_IO_H 3 | #include_next 4 | 5 | #ifndef IOMEM_ERR_PTR 6 | #define IOMEM_ERR_PTR(err) (__force void __iomem *)ERR_PTR(err) 7 | #endif 8 | 9 | #if LINUX_VERSION_IS_LESS(4,5,0) 10 | #define __ioread32_copy LINUX_BACKPORT(__ioread32_copy) 11 | void __ioread32_copy(void *to, const void __iomem *from, size_t count); 12 | #endif 13 | 14 | #ifndef writel_relaxed 15 | #define writel_relaxed writel_relaxed 16 | static inline void writel_relaxed(u32 value, volatile void __iomem *addr) 17 | { 18 | __raw_writel(__cpu_to_le32(value), addr); 19 | } 20 | #endif 21 | 22 | #endif /* __BP_LINUX_IO_H */ 23 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/net/mac80211/aead_api.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0-only */ 2 | 3 | #ifndef _AEAD_API_H 4 | #define _AEAD_API_H 5 | 6 | #include 7 | #include 8 | 9 | struct crypto_aead * 10 | aead_key_setup_encrypt(const char *alg, const u8 key[], 11 | size_t key_len, size_t mic_len); 12 | 13 | int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, 14 | size_t aad_len, u8 *data, 15 | size_t data_len, u8 *mic); 16 | 17 | int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, 18 | size_t aad_len, u8 *data, 19 | size_t data_len, u8 *mic); 20 | 21 | void aead_key_free(struct crypto_aead *tfm); 22 | 23 | #endif /* _AEAD_API_H */ 24 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/page_ref.h: -------------------------------------------------------------------------------- 1 | #ifndef __BP_PAGE_REF_H 2 | #define __BP_PAGE_REF_H 3 | #include 4 | #if LINUX_VERSION_IS_GEQ(4,6,0) 5 | #include_next 6 | #else 7 | static inline void page_ref_inc(struct page *page) 8 | { 9 | atomic_inc(&page->_count); 10 | } 11 | 12 | #if !LINUX_VERSION_IN_RANGE(4,4,216, 4,5,0) 13 | static inline int page_ref_count(struct page *page) 14 | { 15 | return atomic_read(&page->_count); 16 | } 17 | #endif /* 4.4.216 <= x < 4.5 */ 18 | 19 | static inline int page_ref_sub_and_test(struct page *page, int nr) 20 | { 21 | return atomic_sub_and_test(nr, &page->_count); 22 | } 23 | #endif 24 | 25 | #endif /* __BP_PAGE_REF_H */ 26 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/lib/__init__.py: -------------------------------------------------------------------------------- 1 | # 2 | # INTEL CONFIDENTIAL 3 | # 4 | # Copyright (C) 2018 Intel Corporation 5 | # 6 | # This software and the related documents are Intel copyrighted materials, and 7 | # your use of them is governed by the express license under which they were 8 | # provided to you (License). Unless the License provides otherwise, you may not 9 | # use, modify, copy, publish, distribute, disclose or transmit this software or 10 | # the related documents without Intel's prior written permission. 11 | # 12 | # This software and the related documents are provided as is, with no express or 13 | # implied warranties, other than those that are expressly stated in the License. 14 | # 15 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/Documentation/sphinx/post_convert.sed: -------------------------------------------------------------------------------- 1 | # 2 | # Unescape. 3 | # 4 | s/$bq/`/g 5 | s/$lt//g 7 | # 8 | # pandoc thinks that both "_" needs to be escaped. Remove the extra 9 | # backslashes. 10 | # 11 | s/\\_/_/g 12 | # 13 | # Unwrap docproc directives. 14 | # 15 | s/^``DOCPROC: !E\(.*\)``$/.. kernel-doc:: \1\n :export:/ 16 | s/^``DOCPROC: !I\(.*\)``$/.. kernel-doc:: \1\n :internal:/ 17 | s/^``DOCPROC: !F\([^ ]*\) \(.*\)``$/.. kernel-doc:: \1\n :functions: \2/ 18 | s/^``DOCPROC: !P\([^ ]*\) \(.*\)``$/.. kernel-doc:: \1\n :doc: \2/ 19 | s/^``DOCPROC: \(!.*\)``$/.. WARNING: DOCPROC directive not supported: \1/ 20 | # 21 | # Trim trailing whitespace. 22 | # 23 | s/[[:space:]]*$// 24 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/mmc/sdio.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_MMC_SDIO_H 2 | #define __BACKPORT_MMC_SDIO_H 3 | #include 4 | #include_next 5 | 6 | /* backports b4625dab */ 7 | #ifndef SDIO_CCCR_REV_3_00 8 | #define SDIO_CCCR_REV_3_00 3 /* CCCR/FBR Version 3.00 */ 9 | #endif 10 | #ifndef SDIO_SDIO_REV_3_00 11 | #define SDIO_SDIO_REV_3_00 4 /* SDIO Spec Version 3.00 */ 12 | #endif 13 | 14 | #ifndef SDIO_BUS_ECSI 15 | #define SDIO_BUS_ECSI 0x20 /* Enable continuous SPI interrupt */ 16 | #endif 17 | #ifndef SDIO_BUS_SCSI 18 | #define SDIO_BUS_SCSI 0x40 /* Support continuous SPI interrupt */ 19 | #endif 20 | 21 | #endif /* __BACKPORT_MMC_SDIO_H */ 22 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/net/mac80211/aes_cmac.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0-only */ 2 | /* 3 | * Copyright 2008, Jouni Malinen 4 | */ 5 | 6 | #ifndef AES_CMAC_H 7 | #define AES_CMAC_H 8 | 9 | #include 10 | #include 11 | 12 | struct crypto_shash *ieee80211_aes_cmac_key_setup(const u8 key[], 13 | size_t key_len); 14 | void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, 15 | const u8 *data, size_t data_len, u8 *mic); 16 | void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, 17 | const u8 *data, size_t data_len, u8 *mic); 18 | void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm); 19 | 20 | #endif /* AES_CMAC_H */ 21 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/compat/verification/x509_akid.asn1.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by asn1_compiler. Do not edit 3 | * 4 | * ASN.1 parser for x509_akid 5 | */ 6 | #include 7 | 8 | extern const struct asn1_decoder x509_akid_decoder; 9 | 10 | extern int x509_akid_note_kid(void *, size_t, unsigned char, const void *, size_t); 11 | extern int x509_akid_note_name(void *, size_t, unsigned char, const void *, size_t); 12 | extern int x509_akid_note_serial(void *, size_t, unsigned char, const void *, size_t); 13 | extern int x509_extract_name_segment(void *, size_t, unsigned char, const void *, size_t); 14 | extern int x509_note_OID(void *, size_t, unsigned char, const void *, size_t); 15 | 16 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/Kconfig.sources: -------------------------------------------------------------------------------- 1 | # this has the configuration for the backport code 2 | source "$BACKPORT_DIR/compat/Kconfig" 3 | 4 | # these are copied from the kernel 5 | source "$BACKPORT_DIR/net/wireless/Kconfig" 6 | source "$BACKPORT_DIR/net/mac80211/Kconfig" 7 | #source "$BACKPORT_DIR/net/qrtr/Kconfig" 8 | #source "$BACKPORT_DIR/drivers/bus/mhi/Kconfig" 9 | #source "$BACKPORT_DIR/drivers/soc/qcom/Kconfig" 10 | source "$BACKPORT_DIR/drivers/net/wireless/Kconfig" 11 | #source "$BACKPORT_DIR/drivers/net/usb/Kconfig" 12 | 13 | #source "$BACKPORT_DIR/drivers/ssb/Kconfig" 14 | #source "$BACKPORT_DIR/drivers/bcma/Kconfig" 15 | 16 | #source "$BACKPORT_DIR/drivers/usb/class/Kconfig" 17 | 18 | #source "$BACKPORT_DIR/drivers/staging/Kconfig" 19 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/pnp.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_PNP_H 2 | #define __BACKPORT_LINUX_PNP_H 3 | #include_next 4 | 5 | #ifndef module_pnp_driver 6 | /** 7 | * module_pnp_driver() - Helper macro for registering a PnP driver 8 | * @__pnp_driver: pnp_driver struct 9 | * 10 | * Helper macro for PnP drivers which do not do anything special in module 11 | * init/exit. This eliminates a lot of boilerplate. Each module may only 12 | * use this macro once, and calling it replaces module_init() and module_exit() 13 | */ 14 | #define module_pnp_driver(__pnp_driver) \ 15 | module_driver(__pnp_driver, pnp_register_driver, \ 16 | pnp_unregister_driver) 17 | #endif 18 | 19 | #endif /* __BACKPORT_LINUX_PNP_H */ 20 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/of_device.h: -------------------------------------------------------------------------------- 1 | #ifndef __BP_OF_DEVICE_H 2 | #define __BP_OF_DEVICE_H 3 | #include_next 4 | #include 5 | 6 | #if LINUX_VERSION_IS_LESS(4,18,0) 7 | static inline int backport_of_dma_configure(struct device *dev, 8 | struct device_node *np, 9 | bool force_dma) 10 | { 11 | #if LINUX_VERSION_IS_GEQ(4,15,0) 12 | dev->bus->force_dma = force_dma; 13 | return of_dma_configure(dev, np); 14 | #elif LINUX_VERSION_IS_GEQ(4,12,0) 15 | return of_dma_configure(dev, np); 16 | #else 17 | of_dma_configure(dev, np); 18 | return 0; 19 | #endif 20 | } 21 | #define of_dma_configure LINUX_BACKPORT(of_dma_configure) 22 | #endif /* < 4.18 */ 23 | 24 | #endif /* __BP_OF_DEVICE_H */ 25 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/Documentation/sphinx/convert_template.sed: -------------------------------------------------------------------------------- 1 | # 2 | # Pandoc doesn't grok or , so convert them 3 | # ahead of time. 4 | # 5 | # Use the following escapes to pass through pandoc: 6 | # $bq = "`" 7 | # $lt = "<" 8 | # $gt = ">" 9 | # 10 | s%\([^<(]\+\)()%:c:func:$bq\1()$bq%g 11 | s%\([^<(]\+\)%:c:func:$bq\1()$bq%g 12 | s%struct *\([^<]\+\)%:c:type:$bqstruct \1 $lt\1$gt$bq%g 13 | s%struct \([^<]\+\)%:c:type:$bqstruct \1 $lt\1$gt$bq%g 14 | s%\([^<]\+\)%:c:type:$bqstruct \1 $lt\1$gt$bq%g 15 | # 16 | # Wrap docproc directives in para and code blocks. 17 | # 18 | s%^\(!.*\)$%DOCPROC: \1% 19 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/net/cfg80211.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_CFG80211_ 2 | #define __BACKPORT_CFG80211_ 3 | 4 | #if LINUX_VERSION_IS_LESS(5,11,0) 5 | /* This is really really awkward but we need to include include/linux/rkfill.h 6 | * here only for backport purposes. There is content in 7 | * backport-include/linux/rfkill.h that should have gone 8 | * to uapi/linux/rfkill.h but we couldn't put it there because 9 | * include_next gets totally confused and can't include the right 10 | * file. So we had to put that content in linux/rfkill.h. In a real 11 | * kernel we wouldn't need to include this from cfg80211.h. 12 | */ 13 | #include 14 | #endif 15 | #include_next 16 | 17 | #endif /* __BACKPORT_CFG80211 */ 18 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/net/ipv6.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_NET_IPV6_H 2 | #define __BACKPORT_NET_IPV6_H 3 | #include_next 4 | #include 5 | 6 | 7 | #if LINUX_VERSION_IS_LESS(4,5,0) 8 | #define ipv6_addr_prefix_copy LINUX_BACKPORT(ipv6_addr_prefix_copy) 9 | static inline void ipv6_addr_prefix_copy(struct in6_addr *addr, 10 | const struct in6_addr *pfx, 11 | int plen) 12 | { 13 | /* caller must guarantee 0 <= plen <= 128 */ 14 | int o = plen >> 3, 15 | b = plen & 0x7; 16 | 17 | memcpy(addr->s6_addr, pfx, o); 18 | if (b != 0) { 19 | addr->s6_addr[o] &= ~(0xff00 >> b); 20 | addr->s6_addr[o] |= (pfx->s6_addr[o] & (0xff00 >> b)); 21 | } 22 | } 23 | #endif 24 | 25 | #endif /* __BACKPORT_NET_IPV6_H */ 26 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/drivers/net/wireless/intel/Kconfig: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | config WLAN_VENDOR_INTEL 3 | bool "Intel devices" 4 | default y 5 | help 6 | If you have a wireless card belonging to this class, say Y. 7 | 8 | Note that the answer to this question doesn't directly affect the 9 | kernel: saying N will just cause the configurator to skip all the 10 | questions about these cards. If you say Y, you will be asked for 11 | your specific card in the following questions. 12 | 13 | if WLAN_VENDOR_INTEL 14 | 15 | #source "drivers/net/wireless/intel/ipw2x00/Kconfig" 16 | #source "drivers/net/wireless/intel/iwlegacy/Kconfig" 17 | source "drivers/net/wireless/intel/iwlwifi/Kconfig" 18 | 19 | endif # WLAN_VENDOR_INTEL 20 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/kconf/Makefile: -------------------------------------------------------------------------------- 1 | CFLAGS=-Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer 2 | 3 | LXDIALOG := lxdialog/checklist.o lxdialog/inputbox.o lxdialog/menubox.o lxdialog/textbox.o lxdialog/util.o lxdialog/yesno.o 4 | 5 | conf: conf.o zconf.tab.o 6 | mconf_CFLAGS := $(shell ./lxdialog/check-lxdialog.sh -ccflags) -DLOCALE 7 | mconf_LDFLAGS := $(shell ./lxdialog/check-lxdialog.sh -ldflags $(CC)) 8 | mconf: CFLAGS += $(mconf_CFLAGS) 9 | 10 | mconf: mconf.o zconf.tab.o $(LXDIALOG) 11 | $(CC) -o mconf $^ $(mconf_LDFLAGS) 12 | 13 | .PHONY: clean 14 | clean: 15 | @rm -f mconf conf *.o lxdialog/*.o 16 | 17 | zconf.tab.c: zconf.lex.c 18 | 19 | %.tab.c: %.y 20 | $(YACC) -o$@ -t -l $< 21 | 22 | %.lex.c: %.l 23 | $(LEX) -o$@ -L $< 24 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/timekeeping.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_TIMEKEEPING_H 2 | #define __BACKPORT_TIMEKEEPING_H 3 | #include 4 | #include 5 | 6 | #include_next 7 | 8 | #if LINUX_VERSION_IS_LESS(5,3,0) 9 | #define ktime_get_boottime_ns ktime_get_boot_ns 10 | #define ktime_get_coarse_boottime_ns ktime_get_boot_ns 11 | #endif /* < 5.3 */ 12 | 13 | #if LINUX_VERSION_IS_LESS(4,18,0) 14 | extern time64_t ktime_get_boottime_seconds(void); 15 | 16 | #define ktime_get_raw_ts64 LINUX_BACKPORT(ktime_get_raw_ts64) 17 | static inline void ktime_get_raw_ts64(struct timespec64 *ts) 18 | { 19 | return getrawmonotonic64(ts); 20 | } 21 | #endif /* < 4.18 */ 22 | 23 | #endif /* __BACKPORT_TIMEKEEPING_H */ 24 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/Kconfig: -------------------------------------------------------------------------------- 1 | mainmenu "Backports from $BACKPORTED_KERNEL_NAME $BACKPORTED_KERNEL_VERSION (backports $BACKPORTS_VERSION)" 2 | 3 | config BACKPORT_DIR 4 | string 5 | option env="BACKPORT_DIR" 6 | config BACKPORTS_VERSION 7 | string 8 | option env="BACKPORTS_VERSION" 9 | config BACKPORTED_KERNEL_VERSION 10 | string 11 | option env="BACKPORTED_KERNEL_VERSION" 12 | config BACKPORTED_KERNEL_NAME 13 | string 14 | option env="BACKPORTED_KERNEL_NAME" 15 | 16 | # Packaging hacks 17 | source "$BACKPORT_DIR/Kconfig.package.hacks" 18 | 19 | # Code we backport 20 | source "$BACKPORT_DIR/Kconfig.sources" 21 | 22 | # these will be generated 23 | source "$BACKPORT_DIR/Kconfig.kernel" 24 | source "$BACKPORT_DIR/Kconfig.versions" 25 | source "$BACKPORT_DIR/Kconfig.local" 26 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/defconfigs/si_bringup: -------------------------------------------------------------------------------- 1 | CPTCFG_CFG80211=m 2 | CPTCFG_CFG80211_DEFAULT_PS=n 3 | CPTCFG_CFG80211_DEBUGFS=y 4 | CPTCFG_CFG80211_CERTIFICATION_ONUS=y 5 | CPTCFG_CFG80211_REG_RELAX_NO_IR=y 6 | CPTCFG_NL80211_TESTMODE=y 7 | CPTCFG_MAC80211=m 8 | # CPTCFG_MAC80211_RC_PID is not set 9 | CPTCFG_MAC80211_RC_MINSTREL=n 10 | CPTCFG_MAC80211_RC_DEFAULT_MINSTREL=n 11 | CPTCFG_MAC80211_DEBUGFS=y 12 | CPTCFG_MAC80211_MESSAGE_TRACING=y 13 | CPTCFG_WLAN=y 14 | CPTCFG_IWLWIFI=m 15 | CPTCFG_IWLMVM=m 16 | CPTCFG_IWLWIFI_DEBUG=y 17 | CPTCFG_IWLWIFI_DEBUGFS=y 18 | CPTCFG_IWLWIFI_DEVICE_TRACING=y 19 | CPTCFG_IWLWIFI_DEVICE_TESTMODE=y 20 | CPTCFG_IWLXVT=m 21 | CPTCFG_IWLWIFI_SUPPORT_DEBUG_OVERRIDES=y 22 | # CPTCFG_IWLWIFI_FORCE_OFDM_RATE is not set 23 | # CPTCFG_IWLWIFI_FPGA is not set 24 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/defconfigs/soc_ip_hfpga: -------------------------------------------------------------------------------- 1 | CPTCFG_CFG80211=m 2 | CPTCFG_CFG80211_DEFAULT_PS=n 3 | CPTCFG_CFG80211_DEBUGFS=y 4 | CPTCFG_CFG80211_CERTIFICATION_ONUS=y 5 | CPTCFG_CFG80211_REG_RELAX_NO_IR=y 6 | CPTCFG_NL80211_TESTMODE=y 7 | CPTCFG_MAC80211=m 8 | # CPTCFG_MAC80211_RC_PID is not set 9 | CPTCFG_MAC80211_RC_MINSTREL=n 10 | CPTCFG_MAC80211_RC_DEFAULT_MINSTREL=n 11 | CPTCFG_MAC80211_DEBUGFS=y 12 | CPTCFG_MAC80211_MESSAGE_TRACING=y 13 | CPTCFG_WLAN=y 14 | CPTCFG_IWLWIFI=m 15 | CPTCFG_IWLMVM=m 16 | CPTCFG_IWLWIFI_DEBUG=y 17 | CPTCFG_IWLWIFI_DEBUGFS=y 18 | CPTCFG_IWLWIFI_DEVICE_TRACING=y 19 | CPTCFG_IWLWIFI_DEVICE_TESTMODE=y 20 | CPTCFG_IWLXVT=m 21 | CPTCFG_IWLWIFI_SUPPORT_DEBUG_OVERRIDES=y 22 | # CPTCFG_IWLWIFI_FORCE_OFDM_RATE is not set 23 | # CPTCFG_IWLWIFI_FPGA is not set 24 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/firmware.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_FIRMWARE_H 2 | #define __BACKPORT_LINUX_FIRMWARE_H 3 | #include_next 4 | 5 | #if LINUX_VERSION_IS_LESS(4,18,0) 6 | #define firmware_request_nowarn(fw, name, device) request_firmware(fw, name, device) 7 | #endif 8 | 9 | #if LINUX_VERSION_IS_LESS(4,17,0) 10 | #define firmware_request_cache LINUX_BACKPORT(firmware_request_cache) 11 | static inline int firmware_request_cache(struct device *device, const char *name) 12 | { 13 | return 0; 14 | } 15 | #endif 16 | 17 | #ifndef FW_ACTION_NOUEVENT 18 | #define FW_ACTION_NOUEVENT FW_ACTION_NOHOTPLUG 19 | #endif 20 | 21 | #ifndef FW_ACTION_UEVENT 22 | #define FW_ACTION_UEVENT FW_ACTION_HOTPLUG 23 | #endif 24 | 25 | #endif /* __BACKPORT_LINUX_FIRMWARE_H */ 26 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/of_net.h: -------------------------------------------------------------------------------- 1 | #ifndef _BP_OF_NET_H 2 | #define _BP_OF_NET_H 3 | #include_next 4 | #include 5 | #include 6 | 7 | /* The behavior of of_get_mac_address() changed in kernel 5.2, it now 8 | * returns an error code and not NULL in case of an error. 9 | */ 10 | #if LINUX_VERSION_IS_LESS(5,13,0) 11 | static inline int backport_of_get_mac_address(struct device_node *np, u8 *mac_out) 12 | { 13 | const void *mac = of_get_mac_address(np); 14 | 15 | if (!mac) 16 | return -ENODEV; 17 | if (IS_ERR(mac)) 18 | return PTR_ERR(mac); 19 | ether_addr_copy(mac_out, mac); 20 | 21 | return 0; 22 | } 23 | #define of_get_mac_address LINUX_BACKPORT(of_get_mac_address) 24 | #endif /* < 5.2 */ 25 | 26 | #endif /* _BP_OF_NET_H */ 27 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/scatterlist.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_SCATTERLIST_H 2 | #define __BACKPORT_SCATTERLIST_H 3 | #include_next 4 | 5 | #if LINUX_VERSION_IS_LESS(4, 17, 0) 6 | 7 | #define sg_init_marker LINUX_BACKPORT(sg_init_marker) 8 | /** 9 | * sg_init_marker - Initialize markers in sg table 10 | * @sgl: The SG table 11 | * @nents: Number of entries in table 12 | * 13 | **/ 14 | static inline void sg_init_marker(struct scatterlist *sgl, 15 | unsigned int nents) 16 | { 17 | #ifdef CONFIG_DEBUG_SG 18 | unsigned int i; 19 | 20 | for (i = 0; i < nents; i++) 21 | sgl[i].sg_magic = SG_MAGIC; 22 | #endif 23 | sg_mark_end(&sgl[nents - 1]); 24 | } 25 | 26 | #endif /* LINUX_VERSION_IS_LESS(4, 17, 0) */ 27 | 28 | #endif /* __BACKPORT_SCATTERLIST_H */ 29 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/net/mac80211/wme.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0-only */ 2 | /* 3 | * Copyright 2004, Instant802 Networks, Inc. 4 | * Copyright 2005, Devicescape Software, Inc. 5 | */ 6 | 7 | #ifndef _WME_H 8 | #define _WME_H 9 | 10 | #include 11 | #include "ieee80211_i.h" 12 | 13 | u16 ieee80211_select_queue_80211(struct ieee80211_sub_if_data *sdata, 14 | struct sk_buff *skb, 15 | struct ieee80211_hdr *hdr); 16 | u16 __ieee80211_select_queue(struct ieee80211_sub_if_data *sdata, 17 | struct sta_info *sta, struct sk_buff *skb); 18 | u16 ieee80211_select_queue(struct ieee80211_sub_if_data *sdata, 19 | struct sk_buff *skb); 20 | void ieee80211_set_qos_hdr(struct ieee80211_sub_if_data *sdata, 21 | struct sk_buff *skb); 22 | 23 | #endif /* _WME_H */ 24 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/drivers/net/wireless/intel/iwlwifi/iwl-devtrace.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-2.0-only 2 | /****************************************************************************** 3 | * 4 | * Copyright(c) 2009 - 2014 Intel Corporation. All rights reserved. 5 | * Copyright (C) 2018 Intel Corporation 6 | *****************************************************************************/ 7 | 8 | #include 9 | 10 | /* sparse doesn't like tracepoint macros */ 11 | #ifndef __CHECKER__ 12 | #include "iwl-trans.h" 13 | 14 | #define CREATE_TRACE_POINTS 15 | #include "iwl-devtrace.h" 16 | 17 | EXPORT_TRACEPOINT_SYMBOL(iwlwifi_dev_ucode_event); 18 | EXPORT_TRACEPOINT_SYMBOL(iwlwifi_dev_ucode_cont_event); 19 | EXPORT_TRACEPOINT_SYMBOL(iwlwifi_dev_ucode_wrap_event); 20 | #endif /* __CHECKER__ */ 21 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_ASM_ERRNO_H 2 | #define __BACKPORT_ASM_ERRNO_H 3 | #include_next 4 | 5 | #ifndef ERFKILL 6 | #if !defined(CONFIG_ALPHA) && !defined(CONFIG_MIPS) && !defined(CONFIG_PARISC) && !defined(CONFIG_SPARC) 7 | #define ERFKILL 132 /* Operation not possible due to RF-kill */ 8 | #endif 9 | #ifdef CONFIG_ALPHA 10 | #define ERFKILL 138 /* Operation not possible due to RF-kill */ 11 | #endif 12 | #ifdef CONFIG_MIPS 13 | #define ERFKILL 167 /* Operation not possible due to RF-kill */ 14 | #endif 15 | #ifdef CONFIG_PARISC 16 | #define ERFKILL 256 /* Operation not possible due to RF-kill */ 17 | #endif 18 | #ifdef CONFIG_SPARC 19 | #define ERFKILL 134 /* Operation not possible due to RF-kill */ 20 | #endif 21 | #endif 22 | 23 | #endif /* __BACKPORT_ASM_ERRNO_H */ 24 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/bitops.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_BITOPS_H 2 | #define __BACKPORT_BITOPS_H 3 | #include_next 4 | #include 5 | #include 6 | 7 | #ifndef GENMASK 8 | 9 | /* 10 | * Create a contiguous bitmask starting at bit position @l and ending at 11 | * position @h. For example 12 | * GENMASK_ULL(39, 21) gives us the 64bit vector 0x000000ffffe00000. 13 | */ 14 | #define GENMASK(h, l) (((U32_C(1) << ((h) - (l) + 1)) - 1) << (l)) 15 | #define GENMASK_ULL(h, l) (((U64_C(1) << ((h) - (l) + 1)) - 1) << (l)) 16 | 17 | #endif 18 | 19 | #ifndef BIT_ULL 20 | #define BIT_ULL(nr) (1ULL << (nr)) 21 | #endif 22 | 23 | #ifndef BITS_PER_TYPE 24 | #define BITS_PER_TYPE(type) (sizeof(type) * BITS_PER_BYTE) 25 | #endif 26 | 27 | #endif /* __BACKPORT_BITOPS_H */ 28 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/dma-mapping.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_DMA_MAPPING_H 2 | #define __BACKPORT_LINUX_DMA_MAPPING_H 3 | #include_next 4 | 5 | #ifndef DMA_MAPPING_ERROR 6 | /* 7 | * A dma_addr_t can hold any valid DMA or bus address for the platform. It can 8 | * be given to a device to use as a DMA source or target. It is specific to a 9 | * given device and there may be a translation between the CPU physical address 10 | * space and the bus address space. 11 | * 12 | * DMA_MAPPING_ERROR is the magic error code if a mapping failed. It should not 13 | * be used directly in drivers, but checked for using dma_mapping_error() 14 | * instead. 15 | */ 16 | #define DMA_MAPPING_ERROR (~(dma_addr_t)0) 17 | #endif /* DMA_MAPPING_ERROR */ 18 | 19 | #endif /* __BACKPORT_LINUX_DMA_MAPPING_H */ 20 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/chromeOS/adjustments/011-kek_kck.spatch: -------------------------------------------------------------------------------- 1 | @@ 2 | struct cfg80211_gtk_rekey_data *data; 3 | @@ 4 | <... 5 | ( 6 | -data->kek_len 7 | +cfg80211_rekey_get_kek_len(data) 8 | | 9 | -data->kck_len 10 | +cfg80211_rekey_get_kck_len(data) 11 | | 12 | -data->akm 13 | +cfg80211_rekey_akm(data) 14 | ) 15 | ...> 16 | 17 | @@ 18 | @@ 19 | +#if CFG80211_VERSION >= KERNEL_VERSION(5,8,0) 20 | if (iwl_fw_lookup_cmd_ver(mvm->fw, 21 | WOWLAN_KEK_KCK_MATERIAL, 22 | IWL_FW_CMD_VER_UNKNOWN) == 3) 23 | hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_EXT_KEK_KCK; 24 | +#endif 25 | 26 | @@ 27 | @@ 28 | struct{... 29 | +#if CFG80211_VERSION >= KERNEL_VERSION(5,8,0) 30 | u8 kck[NL80211_KCK_EXT_LEN]; 31 | u8 kek[NL80211_KEK_EXT_LEN]; 32 | +#else 33 | +u8 kck[NL80211_KCK_LEN]; 34 | +u8 kek[NL80211_KEK_LEN]; 35 | +#endif 36 | ...} 37 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/drivers/net/wireless/intel/iwlwifi/iwl-phy-db.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 2 | /* 3 | * Copyright (C) 2005-2014 Intel Corporation 4 | */ 5 | #ifndef __IWL_PHYDB_H__ 6 | #define __IWL_PHYDB_H__ 7 | 8 | #include 9 | 10 | #include "iwl-op-mode.h" 11 | #include "iwl-trans.h" 12 | 13 | struct iwl_phy_db *iwl_phy_db_init(struct iwl_trans *trans); 14 | 15 | void iwl_phy_db_free(struct iwl_phy_db *phy_db); 16 | 17 | int iwl_phy_db_set_section(struct iwl_phy_db *phy_db, 18 | struct iwl_rx_packet *pkt); 19 | 20 | 21 | #if IS_ENABLED(CPTCFG_IWLXVT) 22 | int iwl_phy_db_get_section_data(struct iwl_phy_db *phy_db, 23 | u32 type, u8 **data, u16 *size, u16 ch_id); 24 | #endif 25 | 26 | int iwl_send_phy_db_data(struct iwl_phy_db *phy_db); 27 | 28 | #endif /* __IWL_PHYDB_H__ */ 29 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/wait.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_WAIT_H 2 | #define __BACKPORT_LINUX_WAIT_H 3 | #include_next 4 | 5 | 6 | #if LINUX_VERSION_IS_LESS(4,13,0) 7 | #define wait_queue_entry_t wait_queue_t 8 | 9 | #define wait_event_killable_timeout(wq_head, condition, timeout) \ 10 | ({ \ 11 | long __ret = timeout; \ 12 | might_sleep(); \ 13 | if (!___wait_cond_timeout(condition)) \ 14 | __ret = __wait_event_killable_timeout(wq_head, \ 15 | condition, timeout); \ 16 | __ret; \ 17 | }) 18 | 19 | #define __wait_event_killable_timeout(wq_head, condition, timeout) \ 20 | ___wait_event(wq_head, ___wait_cond_timeout(condition), \ 21 | TASK_KILLABLE, 0, timeout, \ 22 | __ret = schedule_timeout(__ret)) 23 | #endif 24 | 25 | #endif /* __BACKPORT_LINUX_WAIT_H */ 26 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/net/mac80211/tkip.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0-only */ 2 | /* 3 | * Copyright 2002-2004, Instant802 Networks, Inc. 4 | */ 5 | 6 | #ifndef TKIP_H 7 | #define TKIP_H 8 | 9 | #include 10 | #include 11 | #include "key.h" 12 | 13 | int ieee80211_tkip_encrypt_data(struct arc4_ctx *ctx, 14 | struct ieee80211_key *key, 15 | struct sk_buff *skb, 16 | u8 *payload, size_t payload_len); 17 | 18 | enum { 19 | TKIP_DECRYPT_OK = 0, 20 | TKIP_DECRYPT_NO_EXT_IV = -1, 21 | TKIP_DECRYPT_INVALID_KEYIDX = -2, 22 | TKIP_DECRYPT_REPLAY = -3, 23 | }; 24 | int ieee80211_tkip_decrypt_data(struct arc4_ctx *ctx, 25 | struct ieee80211_key *key, 26 | u8 *payload, size_t payload_len, u8 *ta, 27 | u8 *ra, int only_iv, int queue, 28 | u32 *out_iv32, u16 *out_iv16); 29 | 30 | #endif /* TKIP_H */ 31 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/pcmcia/device_id.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_PCMCIA_DEVICE_ID_H 2 | #define __BACKPORT_PCMCIA_DEVICE_ID_H 3 | #include_next 4 | 5 | #ifndef PCMCIA_DEVICE_MANF_CARD_PROD_ID3 6 | #define PCMCIA_DEVICE_MANF_CARD_PROD_ID3(manf, card, v3, vh3) { \ 7 | .match_flags = PCMCIA_DEV_ID_MATCH_MANF_ID| \ 8 | PCMCIA_DEV_ID_MATCH_CARD_ID| \ 9 | PCMCIA_DEV_ID_MATCH_PROD_ID3, \ 10 | .manf_id = (manf), \ 11 | .card_id = (card), \ 12 | .prod_id = { NULL, NULL, (v3), NULL }, \ 13 | .prod_id_hash = { 0, 0, (vh3), 0 }, } 14 | #endif 15 | 16 | #ifndef PCMCIA_DEVICE_PROD_ID3 17 | #define PCMCIA_DEVICE_PROD_ID3(v3, vh3) { \ 18 | .match_flags = PCMCIA_DEV_ID_MATCH_PROD_ID3, \ 19 | .prod_id = { NULL, NULL, (v3), NULL }, \ 20 | .prod_id_hash = { 0, 0, (vh3), 0 }, } 21 | #endif 22 | 23 | #endif /* __BACKPORT_PCMCIA_DEVICE_ID_H */ 24 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/sched.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_SCHED_H 2 | #define __BACKPORT_LINUX_SCHED_H 3 | 4 | #include_next 5 | #include 6 | #if LINUX_VERSION_IS_LESS(4,10,0) 7 | #include 8 | #endif /* LINUX_VERSION_IS_LESS(4,10,0) */ 9 | 10 | /* kcov was added in 4.6 and is included since then */ 11 | #if LINUX_VERSION_IS_LESS(4,6,0) 12 | #include 13 | #endif 14 | 15 | #if LINUX_VERSION_IS_LESS(5,9,0) 16 | #if LINUX_VERSION_IS_GEQ(4,11,0) 17 | #include 18 | #endif 19 | 20 | static inline void sched_set_fifo_low(struct task_struct *p) 21 | { 22 | struct sched_param sparam = {.sched_priority = 1}; 23 | 24 | WARN_ON_ONCE(sched_setscheduler_nocheck(p, SCHED_FIFO, &sparam) != 0); 25 | } 26 | 27 | #endif /* < 5.9.0 */ 28 | #endif /* __BACKPORT_LINUX_SCHED_H */ 29 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/uuid.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_UUID_H_ 2 | #define __BACKPORT_LINUX_UUID_H_ 3 | #include 4 | #include_next 5 | 6 | #ifndef UUID_STRING_LEN 7 | /* 8 | * The length of a UUID string ("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee") 9 | * not including trailing NUL. 10 | */ 11 | #define UUID_STRING_LEN 36 12 | #endif 13 | 14 | #if LINUX_VERSION_IS_LESS(4,13,0) 15 | #define guid_t uuid_le 16 | #define uuid_t uuid_be 17 | #define GUID_INIT UUID_LE 18 | 19 | static inline void guid_gen(guid_t *u) 20 | { 21 | return uuid_le_gen(u); 22 | } 23 | static inline void uuid_gen(uuid_t *u) 24 | { 25 | return uuid_be_gen(u); 26 | } 27 | 28 | static inline void guid_copy(guid_t *dst, const guid_t *src) 29 | { 30 | memcpy(dst, src, sizeof(guid_t)); 31 | } 32 | 33 | #endif 34 | 35 | #endif /* __BACKPORT_LINUX_UUID_H_ */ 36 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/Documentation/developers/new-config-symbols.rst: -------------------------------------------------------------------------------- 1 | Steps to take when adding a new Kconfig symbol 2 | ============================================== 3 | 4 | 0) Make sure you really want a new Kconfig symbol and there's no 5 | way to do the right thing at runtime in platform configuration. 6 | 7 | 1) Add the new Kconfig symbol, deciding whether it should be in the 8 | Kconfig or Kconfig.noupstream file depending on whether it should 9 | be upstreamed or not. 10 | Many symbols should probably not be upstreamed. 11 | 12 | 2) Add the new symbol to the local-symbols file, otherwise it may 13 | get confused with a base kernel symbol once it goes upstream. 14 | 15 | 3) Decide what the state (remove, set to y, leave) of the symbol 16 | should be for the published "prune" trees. See prune.txt, 17 | specifically under the "CPTCFG_SYM state not known" error. 18 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/gfp.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_GFP_H 2 | #define __BACKPORT_LINUX_GFP_H 3 | #include_next 4 | 5 | #ifndef ___GFP_KSWAPD_RECLAIM 6 | #define ___GFP_KSWAPD_RECLAIM 0x0u 7 | #endif 8 | 9 | #ifndef __GFP_KSWAPD_RECLAIM 10 | #define __GFP_KSWAPD_RECLAIM ((__force gfp_t)___GFP_KSWAPD_RECLAIM) /* kswapd can wake */ 11 | #endif 12 | 13 | #if LINUX_VERSION_IS_LESS(4,10,0) 14 | #define page_frag_alloc LINUX_BACKPORT(page_frag_alloc) 15 | static inline void *page_frag_alloc(struct page_frag_cache *nc, 16 | unsigned int fragsz, gfp_t gfp_mask) 17 | { 18 | return __alloc_page_frag(nc, fragsz, gfp_mask); 19 | } 20 | 21 | #define __page_frag_cache_drain LINUX_BACKPORT(__page_frag_cache_drain) 22 | void __page_frag_cache_drain(struct page *page, unsigned int count); 23 | #endif /* < 4.10*/ 24 | 25 | #endif /* __BACKPORT_LINUX_GFP_H */ 26 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/defconfigs/iwlwifi-public: -------------------------------------------------------------------------------- 1 | CPTCFG_CFG80211=m 2 | CPTCFG_CFG80211_DEFAULT_PS=y 3 | CPTCFG_CFG80211_DEBUGFS=y 4 | CPTCFG_CFG80211_CERTIFICATION_ONUS=y 5 | CPTCFG_CFG80211_REG_RELAX_NO_IR=y 6 | CPTCFG_NL80211_TESTMODE=y 7 | CPTCFG_MAC80211=m 8 | # CPTCFG_MAC80211_RC_PID is not set 9 | CPTCFG_MAC80211_RC_MINSTREL=y 10 | CPTCFG_MAC80211_RC_DEFAULT_MINSTREL=y 11 | CPTCFG_MAC80211_DEBUGFS=y 12 | CPTCFG_MAC80211_MESSAGE_TRACING=y 13 | CPTCFG_WLAN=y 14 | CPTCFG_IWLWIFI=m 15 | # CPTCFG_IWLDVM is not set 16 | CPTCFG_IWLMVM=m 17 | CPTCFG_IWLWIFI_DEBUG=y 18 | CPTCFG_IWLWIFI_DEBUGFS=y 19 | CPTCFG_IWLWIFI_DEVICE_TRACING=y 20 | CPTCFG_IWLWIFI_DEVICE_TESTMODE=y 21 | # CPTCFG_MAC80211_HWSIM is not set 22 | CPTCFG_IWLXVT=m 23 | CPTCFG_IWLWIFI_OPMODE_MODULAR=y 24 | # CPTCFG_IWLMVM_ADVANCED_QUOTA_MGMT is not set 25 | # CPTCFG_IWLMVM_AX_SOFTAP_TESTMODE is not set 26 | # CPTCFG_IWLWIFI_FPGA is not set 27 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/defconfig: -------------------------------------------------------------------------------- 1 | CPTCFG_CFG80211=m 2 | CPTCFG_CFG80211_DEFAULT_PS=y 3 | CPTCFG_CFG80211_DEBUGFS=y 4 | CPTCFG_CFG80211_CERTIFICATION_ONUS=y 5 | CPTCFG_CFG80211_REG_RELAX_NO_IR=y 6 | CPTCFG_NL80211_TESTMODE=y 7 | CPTCFG_MAC80211=m 8 | # CPTCFG_MAC80211_RC_PID is not set 9 | CPTCFG_MAC80211_RC_MINSTREL=y 10 | CPTCFG_MAC80211_RC_DEFAULT_MINSTREL=y 11 | CPTCFG_MAC80211_DEBUGFS=y 12 | CPTCFG_MAC80211_MESSAGE_TRACING=y 13 | CPTCFG_WLAN=y 14 | CPTCFG_WLAN_VENDOR_INTEL=y 15 | CPTCFG_IWLWIFI=m 16 | CPTCFG_IWLDVM=m 17 | CPTCFG_IWLMVM=m 18 | CPTCFG_IWLMEI=m 19 | CPTCFG_IWLWIFI_DEBUG=y 20 | CPTCFG_IWLWIFI_DEBUGFS=y 21 | CPTCFG_IWLWIFI_DEVICE_TRACING=y 22 | CPTCFG_IWLWIFI_DEVICE_TESTMODE=y 23 | CPTCFG_MAC80211_HWSIM=m 24 | CPTCFG_IWLXVT=m 25 | CPTCFG_IWLWIFI_SUPPORT_DEBUG_OVERRIDES=y 26 | # CPTCFG_IWLWIFI_FORCE_OFDM_RATE is not set 27 | CPTCFG_IWLWIFI_DHC_PRIVATE=y 28 | # CPTCFG_IWLWIFI_FPGA is not set 29 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/defconfigs/iwlwifi: -------------------------------------------------------------------------------- 1 | CPTCFG_CFG80211=m 2 | CPTCFG_CFG80211_DEFAULT_PS=y 3 | CPTCFG_CFG80211_DEBUGFS=y 4 | CPTCFG_CFG80211_CERTIFICATION_ONUS=y 5 | CPTCFG_CFG80211_REG_RELAX_NO_IR=y 6 | CPTCFG_NL80211_TESTMODE=y 7 | CPTCFG_MAC80211=m 8 | # CPTCFG_MAC80211_RC_PID is not set 9 | CPTCFG_MAC80211_RC_MINSTREL=y 10 | CPTCFG_MAC80211_RC_DEFAULT_MINSTREL=y 11 | CPTCFG_MAC80211_DEBUGFS=y 12 | CPTCFG_MAC80211_MESSAGE_TRACING=y 13 | CPTCFG_WLAN=y 14 | CPTCFG_WLAN_VENDOR_INTEL=y 15 | CPTCFG_IWLWIFI=m 16 | CPTCFG_IWLDVM=m 17 | CPTCFG_IWLMVM=m 18 | CPTCFG_IWLMEI=m 19 | CPTCFG_IWLWIFI_DEBUG=y 20 | CPTCFG_IWLWIFI_DEBUGFS=y 21 | CPTCFG_IWLWIFI_DEVICE_TRACING=y 22 | CPTCFG_IWLWIFI_DEVICE_TESTMODE=y 23 | CPTCFG_MAC80211_HWSIM=m 24 | CPTCFG_IWLXVT=m 25 | CPTCFG_IWLWIFI_SUPPORT_DEBUG_OVERRIDES=y 26 | # CPTCFG_IWLWIFI_FORCE_OFDM_RATE is not set 27 | CPTCFG_IWLWIFI_DHC_PRIVATE=y 28 | # CPTCFG_IWLWIFI_FPGA is not set 29 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/defconfigs/esl: -------------------------------------------------------------------------------- 1 | CPTCFG_CFG80211=m 2 | CPTCFG_CFG80211_DEFAULT_PS=n 3 | CPTCFG_CFG80211_DEBUGFS=y 4 | CPTCFG_CFG80211_CERTIFICATION_ONUS=y 5 | CPTCFG_CFG80211_REG_RELAX_NO_IR=y 6 | CPTCFG_NL80211_TESTMODE=y 7 | CPTCFG_MAC80211=m 8 | # CPTCFG_MAC80211_RC_PID is not set 9 | CPTCFG_MAC80211_RC_MINSTREL=n 10 | CPTCFG_MAC80211_RC_DEFAULT_MINSTREL=n 11 | CPTCFG_MAC80211_DEBUGFS=y 12 | CPTCFG_MAC80211_MESSAGE_TRACING=y 13 | CPTCFG_WLAN=y 14 | CPTCFG_IWLWIFI=m 15 | CPTCFG_IWLMVM=m 16 | CPTCFG_IWLWIFI_DEBUG=y 17 | CPTCFG_IWLWIFI_DEBUGFS=y 18 | CPTCFG_IWLWIFI_DEVICE_TRACING=y 19 | CPTCFG_IWLWIFI_DEVICE_TESTMODE=y 20 | CPTCFG_IWLXVT=m 21 | CPTCFG_IWLWIFI_SUPPORT_DEBUG_OVERRIDES=y 22 | # CPTCFG_IWLWIFI_FORCE_OFDM_RATE is not set 23 | CPTCFG_IWL_TIMEOUT_FACTOR=150 24 | CPTCFG_IWL_DELAY_FACTOR=1 25 | CPTCFG_IWLWIFI_DHC_PRIVATE=y 26 | # CPTCFG_IWLWIFI_FPGA is not set 27 | # CPTCFG_IWLWIFI_PLATFORM_MOCKUPS is not set 28 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/defconfigs/sle: -------------------------------------------------------------------------------- 1 | CPTCFG_CFG80211=m 2 | CPTCFG_CFG80211_DEFAULT_PS=n 3 | CPTCFG_CFG80211_DEBUGFS=y 4 | CPTCFG_CFG80211_CERTIFICATION_ONUS=y 5 | CPTCFG_CFG80211_REG_RELAX_NO_IR=y 6 | CPTCFG_NL80211_TESTMODE=y 7 | CPTCFG_MAC80211=m 8 | # CPTCFG_MAC80211_RC_PID is not set 9 | CPTCFG_MAC80211_RC_MINSTREL=n 10 | CPTCFG_MAC80211_RC_DEFAULT_MINSTREL=n 11 | CPTCFG_MAC80211_DEBUGFS=y 12 | CPTCFG_MAC80211_MESSAGE_TRACING=y 13 | CPTCFG_WLAN=y 14 | CPTCFG_IWLWIFI=m 15 | CPTCFG_IWLMVM=m 16 | CPTCFG_IWLWIFI_DEBUG=y 17 | CPTCFG_IWLWIFI_DEBUGFS=y 18 | CPTCFG_IWLWIFI_DEVICE_TRACING=y 19 | CPTCFG_IWLWIFI_DEVICE_TESTMODE=y 20 | CPTCFG_IWLXVT=m 21 | CPTCFG_IWLWIFI_SUPPORT_DEBUG_OVERRIDES=y 22 | # CPTCFG_IWLWIFI_FORCE_OFDM_RATE is not set 23 | CPTCFG_IWL_TIMEOUT_FACTOR=2000 24 | CPTCFG_IWL_DELAY_FACTOR=50 25 | CPTCFG_IWLWIFI_DHC_PRIVATE=y 26 | # CPTCFG_IWLWIFI_FPGA is not set 27 | # CPTCFG_IWLWIFI_PLATFORM_MOCKUPS is not set 28 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/include/linux/refcount.h: -------------------------------------------------------------------------------- 1 | /* Automatically created during backport process */ 2 | #ifndef CPTCFG_BPAUTO_REFCOUNT 3 | #include_next 4 | #else 5 | #undef refcount_warn_saturate 6 | #define refcount_warn_saturate LINUX_BACKPORT(refcount_warn_saturate) 7 | #undef refcount_dec_if_one 8 | #define refcount_dec_if_one LINUX_BACKPORT(refcount_dec_if_one) 9 | #undef refcount_dec_not_one 10 | #define refcount_dec_not_one LINUX_BACKPORT(refcount_dec_not_one) 11 | #undef refcount_dec_and_mutex_lock 12 | #define refcount_dec_and_mutex_lock LINUX_BACKPORT(refcount_dec_and_mutex_lock) 13 | #undef refcount_dec_and_lock 14 | #define refcount_dec_and_lock LINUX_BACKPORT(refcount_dec_and_lock) 15 | #undef refcount_dec_and_lock_irqsave 16 | #define refcount_dec_and_lock_irqsave LINUX_BACKPORT(refcount_dec_and_lock_irqsave) 17 | #include 18 | #endif /* CPTCFG_BPAUTO_REFCOUNT */ 19 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/net/mac80211/debugfs_netdev.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 */ 2 | /* routines exported for debugfs handling */ 3 | 4 | #ifndef __IEEE80211_DEBUGFS_NETDEV_H 5 | #define __IEEE80211_DEBUGFS_NETDEV_H 6 | 7 | #include "ieee80211_i.h" 8 | 9 | #ifdef CPTCFG_MAC80211_DEBUGFS 10 | void ieee80211_debugfs_add_netdev(struct ieee80211_sub_if_data *sdata); 11 | void ieee80211_debugfs_remove_netdev(struct ieee80211_sub_if_data *sdata); 12 | void ieee80211_debugfs_rename_netdev(struct ieee80211_sub_if_data *sdata); 13 | #else 14 | static inline void ieee80211_debugfs_add_netdev( 15 | struct ieee80211_sub_if_data *sdata) 16 | {} 17 | static inline void ieee80211_debugfs_remove_netdev( 18 | struct ieee80211_sub_if_data *sdata) 19 | {} 20 | static inline void ieee80211_debugfs_rename_netdev( 21 | struct ieee80211_sub_if_data *sdata) 22 | {} 23 | #endif 24 | 25 | #endif /* __IEEE80211_DEBUGFS_NETDEV_H */ 26 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/drivers/net/wireless/intel/iwlwifi/xvt/constants.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 2 | /* 3 | * Copyright (C) 2013-2014 Intel Corporation 4 | * Copyright (C) 2017 Intel Deutschland GmbH 5 | */ 6 | #ifndef __XVT_CONSTANTS_H 7 | #define __XVT_CONSTANTS_H 8 | 9 | #ifndef CPTCFG_IWLWIFI_SUPPORT_DEBUG_OVERRIDES 10 | #define IWL_XVT_DEFAULT_DBGM_MEM_POWER 0 11 | #define IWL_XVT_DEFAULT_DBGM_LMAC_MASK 0 12 | #define IWL_XVT_DEFAULT_DBGM_PRPH_MASK 0 13 | 14 | #else /* CPTCFG_IWLWIFI_SUPPORT_DEBUG_OVERRIDES */ 15 | #define IWL_XVT_DEFAULT_DBGM_MEM_POWER (xvt->trans->dbg_cfg.XVT_DEFAULT_DBGM_MEM_POWER) 16 | #define IWL_XVT_DEFAULT_DBGM_LMAC_MASK (xvt->trans->dbg_cfg.XVT_DEFAULT_DBGM_LMAC_MASK) 17 | #define IWL_XVT_DEFAULT_DBGM_PRPH_MASK (xvt->trans->dbg_cfg.XVT_DEFAULT_DBGM_PRPH_MASK) 18 | 19 | #endif /* CPTCFG_IWLWIFI_SUPPORT_DEBUG_OVERRIDES */ 20 | 21 | #endif /* __XVT_CONSTANTS_H */ 22 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/defconfigs/iwlwifi-galileo: -------------------------------------------------------------------------------- 1 | CPTCFG_CFG80211=m 2 | CPTCFG_CFG80211_DEFAULT_PS=y 3 | CPTCFG_CFG80211_DEBUGFS=y 4 | CPTCFG_CFG80211_CERTIFICATION_ONUS=y 5 | CPTCFG_CFG80211_REG_RELAX_NO_IR=y 6 | CPTCFG_NL80211_TESTMODE=y 7 | CPTCFG_MAC80211=m 8 | # CPTCFG_MAC80211_RC_PID is not set 9 | CPTCFG_MAC80211_RC_MINSTREL=y 10 | CPTCFG_MAC80211_RC_DEFAULT_MINSTREL=y 11 | CPTCFG_MAC80211_DEBUGFS=y 12 | CPTCFG_MAC80211_MESSAGE_TRACING=y 13 | CPTCFG_WLAN=y 14 | CPTCFG_IWLWIFI=m 15 | #CPTCFG_IWLDVM is not set 16 | CPTCFG_IWLMVM=m 17 | CPTCFG_IWLWIFI_DEBUG=y 18 | CPTCFG_IWLWIFI_DEBUGFS=y 19 | CPTCFG_IWLWIFI_DEVICE_TRACING=y 20 | CPTCFG_IWLWIFI_DEVICE_TESTMODE=y 21 | # CPTCFG_MAC80211_HWSIM is not set 22 | CPTCFG_IWLXVT=m 23 | CPTCFG_IWLWIFI_SUPPORT_DEBUG_OVERRIDES=y 24 | # CPTCFG_IWLWIFI_FORCE_OFDM_RATE is not set 25 | # CPTCFG_IWLMVM_P2P_UAPSD_STANDALONE is not set 26 | CPTCFG_IWLWIFI_NUM_CHANNELS=1 27 | # CPTCFG_IWLWIFI_FPGA is not set 28 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/virtio_config.h: -------------------------------------------------------------------------------- 1 | #ifndef _COMPAT_LINUX_VIRTIO_CONFIG_H 2 | #define _COMPAT_LINUX_VIRTIO_CONFIG_H 3 | #include_next 4 | 5 | #include 6 | 7 | #if LINUX_VERSION_IS_LESS(4,11,0) 8 | struct irq_affinity; 9 | #endif 10 | 11 | #if LINUX_VERSION_IS_LESS(4,12,0) 12 | static inline 13 | int virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs, 14 | struct virtqueue *vqs[], vq_callback_t *callbacks[], 15 | #if LINUX_VERSION_IS_LESS(4,10,0) 16 | const char * const names[], 17 | #else 18 | const char *names[], 19 | #endif 20 | struct irq_affinity *desc) 21 | { 22 | #if LINUX_VERSION_IS_LESS(4,11,0) 23 | return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names); 24 | #else 25 | return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, desc); 26 | #endif 27 | } 28 | #endif /* < 4.12 */ 29 | 30 | 31 | #endif /* _COMPAT_LINUX_VIRTIO_CONFIG_H */ 32 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/generated/utsrelease.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_GENERATED_UTS_RELEASE_H 2 | #define __BACKPORT_GENERATED_UTS_RELEASE_H 3 | #include_next 4 | 5 | /* 6 | * We only want the UTS_UBUNTU_RELEASE_ABI var when we are on a normal 7 | * Ubuntu distribution kernel and not when we are on a Ubuntu mainline 8 | * kernel. Some of the Ubuntu mainline kernel do have an invalid octal 9 | * number in this field like 031418 and we do not want to evaluate this 10 | * at all on the Ubuntu mainline kernels. All Ubuntu distribution 11 | * kernel have CONFIG_VERSION_SIGNATURE set so this way we can detect 12 | * the which type of kernel we are on. 13 | */ 14 | #ifndef UTS_UBUNTU_RELEASE_ABI 15 | #define UTS_UBUNTU_RELEASE_ABI 0 16 | #elif !defined(CONFIG_VERSION_SIGNATURE) 17 | #undef UTS_UBUNTU_RELEASE_ABI 18 | #define UTS_UBUNTU_RELEASE_ABI 0 19 | #endif 20 | 21 | #endif /* __BACKPORT_GENERATED_UTS_RELEASE_H */ 22 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/rfkill.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_UAPI__RFKILL_H 2 | #define __BACKPORT_UAPI__RFKILL_H 3 | #include_next 4 | 5 | 6 | #if LINUX_VERSION_IS_LESS(5,11,0) 7 | 8 | /* This should come from uapi/linux/rfkill.h, but it was much easier 9 | * to do it this way. 10 | */ 11 | enum rfkill_hard_block_reasons { 12 | RFKILL_HARD_BLOCK_SIGNAL = 1 << 0, 13 | RFKILL_HARD_BLOCK_NOT_OWNER = 1 << 1, 14 | }; 15 | 16 | static inline bool rfkill_set_hw_state_reason(struct rfkill *rfkill, 17 | bool blocked, unsigned long reason) 18 | { 19 | return rfkill_set_hw_state(rfkill, blocked); 20 | } 21 | 22 | #endif /* 5.11 */ 23 | 24 | #if LINUX_VERSION_IS_LESS(5,17,0) && !defined(CONFIG_WLAN_VENDOR_INTEL_MEI) 25 | 26 | static inline bool rfkill_soft_blocked(struct rfkill *rfkill) 27 | { 28 | return rfkill_blocked(rfkill); 29 | } 30 | 31 | #endif /* 5.17 */ 32 | 33 | #endif /* __BACKPORT_UAPI__RFKILL_H */ 34 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/fs.h: -------------------------------------------------------------------------------- 1 | #ifndef _COMPAT_LINUX_FS_H 2 | #define _COMPAT_LINUX_FS_H 3 | #include_next 4 | #include 5 | 6 | 7 | #if LINUX_VERSION_IS_LESS(4,5,0) 8 | #define no_seek_end_llseek LINUX_BACKPORT(no_seek_end_llseek) 9 | extern loff_t no_seek_end_llseek(struct file *, loff_t, int); 10 | #endif /* < 4.5 */ 11 | 12 | #if LINUX_VERSION_IS_LESS(5,5,0) 13 | #ifdef CONFIG_COMPAT 14 | #define compat_ptr_ioctl LINUX_BACKPORT(compat_ptr_ioctl) 15 | extern long compat_ptr_ioctl(struct file *file, unsigned int cmd, 16 | unsigned long arg); 17 | #else 18 | #define compat_ptr_ioctl NULL 19 | #endif 20 | #endif /* < 5.5 */ 21 | 22 | #if LINUX_VERSION_IS_LESS(5,6,0) 23 | #define proc_ops file_operations 24 | #define proc_open open 25 | #define proc_read read 26 | #define proc_lseek llseek 27 | #define proc_release release 28 | #define proc_write write 29 | #endif /* < 5.6 */ 30 | 31 | #endif /* _COMPAT_LINUX_FS_H */ 32 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/defconfigs/iwlwifi-nomockups: -------------------------------------------------------------------------------- 1 | CPTCFG_CFG80211=m 2 | CPTCFG_CFG80211_DEFAULT_PS=y 3 | CPTCFG_CFG80211_DEBUGFS=y 4 | CPTCFG_CFG80211_CERTIFICATION_ONUS=y 5 | CPTCFG_CFG80211_REG_RELAX_NO_IR=y 6 | CPTCFG_NL80211_TESTMODE=y 7 | CPTCFG_MAC80211=m 8 | # CPTCFG_MAC80211_RC_PID is not set 9 | CPTCFG_MAC80211_RC_MINSTREL=y 10 | CPTCFG_MAC80211_RC_DEFAULT_MINSTREL=y 11 | CPTCFG_MAC80211_DEBUGFS=y 12 | CPTCFG_MAC80211_MESSAGE_TRACING=y 13 | CPTCFG_WLAN=y 14 | CPTCFG_WLAN_VENDOR_INTEL=y 15 | CPTCFG_IWLWIFI=m 16 | CPTCFG_IWLDVM=m 17 | CPTCFG_IWLMVM=m 18 | CPTCFG_IWLMEI=m 19 | CPTCFG_IWLWIFI_DEBUG=y 20 | CPTCFG_IWLWIFI_DEBUGFS=y 21 | CPTCFG_IWLWIFI_DEVICE_TRACING=y 22 | CPTCFG_IWLWIFI_DEVICE_TESTMODE=y 23 | CPTCFG_MAC80211_HWSIM=m 24 | CPTCFG_IWLXVT=m 25 | CPTCFG_IWLWIFI_SUPPORT_DEBUG_OVERRIDES=y 26 | # CPTCFG_IWLWIFI_FORCE_OFDM_RATE is not set 27 | CPTCFG_IWLWIFI_DHC_PRIVATE=y 28 | # CPTCFG_IWLWIFI_FPGA is not set 29 | # CPTCFG_IWLWIFI_PLATFORM_MOCKUPS is not set 30 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/nix/sparse.nix: -------------------------------------------------------------------------------- 1 | { pkgs }: 2 | 3 | with pkgs; 4 | 5 | let 6 | GCC_BASE = "${stdenv.cc.cc}/lib/gcc/${stdenv.hostPlatform.uname.processor}-unknown-linux-gnu/${stdenv.cc.cc.version}"; 7 | in multiStdenv.mkDerivation rec { 8 | pname = "sparse"; 9 | version = "git+ce1a6720"; 10 | 11 | src = fetchGit { 12 | name = "sparse-ce1a6720"; 13 | url = "https://git.kernel.org/pub/scm/devel/sparse/sparse.git"; 14 | rev = "ce1a6720f69e6233ec9abd4e9aae5945e05fda41"; 15 | }; 16 | 17 | enableParallelBuilding = true; 18 | 19 | nativeBuildInputs = [ pkg-config ]; 20 | buildInputs = [ perl ]; 21 | 22 | makeFlags = [ "PREFIX=$(out)" ]; 23 | 24 | preConfigure = '' 25 | sed -i 's|"/usr/include"|"${stdenv.cc.libc.dev}/include"|' pre-process.c 26 | sed -i 's|qx(\$ccom -print-file-name=)|"${GCC_BASE}"|' cgcc 27 | ''; 28 | 29 | buildFlags = "GCC_BASE:=${GCC_BASE}"; 30 | 31 | patches = [ 32 | ./sparse.patch 33 | ]; 34 | } 35 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/drivers/net/wireless/intel/iwlwifi/iwl-dnt-dispatch.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 2 | /* 3 | * Copyright (C) 2014 Intel Corporation 4 | */ 5 | #ifndef __iwl_dnt_dispatch_h__ 6 | #define __iwl_dnt_dispatch_h__ 7 | 8 | #include "iwl-debug.h" 9 | #include "iwl-drv.h" 10 | #include "iwl-trans.h" 11 | #include "iwl-op-mode.h" 12 | #include "iwl-config.h" 13 | 14 | 15 | /** 16 | * iwl_dnt_dispatch_pull - pulling debug data. 17 | */ 18 | int iwl_dnt_dispatch_pull(struct iwl_trans *trans, u8 *buffer, u32 buffer_size, 19 | u32 input); 20 | 21 | int iwl_dnt_dispatch_collect_ucode_message(struct iwl_trans *trans, 22 | struct iwl_rx_cmd_buffer *rxb); 23 | 24 | void iwl_dnt_dispatch_free(struct iwl_dnt *dnt, struct iwl_trans *trans); 25 | 26 | struct dnt_collect_db *iwl_dnt_dispatch_allocate_collect_db( 27 | struct iwl_dnt *dnt); 28 | 29 | void iwl_dnt_dispatch_handle_nic_err(struct iwl_trans *trans); 30 | #endif 31 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/compat/backport-5.13.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-2.0 2 | 3 | #include 4 | #include 5 | 6 | #if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT_RT) 7 | /* 8 | * Do not use in new code. Waiting for tasklets from atomic contexts is 9 | * error prone and should be avoided. 10 | */ 11 | void tasklet_unlock_spin_wait(struct tasklet_struct *t) 12 | { 13 | while (test_bit(TASKLET_STATE_RUN, &(t)->state)) { 14 | if (IS_ENABLED(CONFIG_PREEMPT_RT)) { 15 | /* 16 | * Prevent a live lock when current preempted soft 17 | * interrupt processing or prevents ksoftirqd from 18 | * running. If the tasklet runs on a different CPU 19 | * then this has no effect other than doing the BH 20 | * disable/enable dance for nothing. 21 | */ 22 | local_bh_disable(); 23 | local_bh_enable(); 24 | } else { 25 | cpu_relax(); 26 | } 27 | } 28 | } 29 | EXPORT_SYMBOL_GPL(tasklet_unlock_spin_wait); 30 | #endif 31 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/shell.nix: -------------------------------------------------------------------------------- 1 | { pkgs ? import (builtins.fetchGit { 2 | name = "nixpkgs-unstable-2022-05-17"; 3 | url = https://github.com/nixos/nixpkgs/; 4 | rev = "acc4a0bbb9485e155e0a20786f9f48d7eda0ba40"; 5 | }) {} }: 6 | 7 | with pkgs; 8 | 9 | let 10 | sparse = import ./nix/sparse.nix { inherit pkgs; }; 11 | 12 | ccacheWrapper = pkgs.ccacheWrapper.override ({ 13 | cc = pkgs.multiStdenv.cc; 14 | }); 15 | in 16 | multiStdenv.mkDerivation { 17 | name = "iwlwifi"; 18 | buildInputs = [ 19 | flex 20 | bison 21 | openssl 22 | bc 23 | hostname 24 | kmod 25 | elfutils 26 | sparse 27 | ccache 28 | perl 29 | which 30 | rsync 31 | ]; 32 | 33 | shellHook = '' 34 | export PATH=${ccacheWrapper}/bin:$PATH 35 | export LC_ALL=C 36 | export LANG=C 37 | ''; 38 | } 39 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/net/wireless/ethtool.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-2.0 2 | #include 3 | #include 4 | #include "core.h" 5 | #include "rdev-ops.h" 6 | 7 | void cfg80211_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) 8 | { 9 | struct wireless_dev *wdev = dev->ieee80211_ptr; 10 | struct device *pdev = wiphy_dev(wdev->wiphy); 11 | 12 | if (pdev->driver) 13 | strscpy(info->driver, pdev->driver->name, 14 | sizeof(info->driver)); 15 | else 16 | strscpy(info->driver, "N/A", sizeof(info->driver)); 17 | 18 | strscpy(info->version, init_utsname()->release, sizeof(info->version)); 19 | 20 | if (wdev->wiphy->fw_version[0]) 21 | strscpy(info->fw_version, wdev->wiphy->fw_version, 22 | sizeof(info->fw_version)); 23 | else 24 | strscpy(info->fw_version, "N/A", sizeof(info->fw_version)); 25 | 26 | strscpy(info->bus_info, dev_name(wiphy_dev(wdev->wiphy)), 27 | sizeof(info->bus_info)); 28 | } 29 | EXPORT_SYMBOL(cfg80211_get_drvinfo); 30 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/mod_devicetable.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_MOD_DEVICETABLE_H 2 | #define __BACKPORT_MOD_DEVICETABLE_H 3 | #include_next 4 | 5 | #ifndef HID_BUS_ANY 6 | #define HID_BUS_ANY 0xffff 7 | #endif 8 | 9 | #ifndef HID_GROUP_ANY 10 | #define HID_GROUP_ANY 0x0000 11 | #endif 12 | 13 | #ifndef HID_ANY_ID 14 | #define HID_ANY_ID (~0) 15 | #endif 16 | 17 | #if LINUX_VERSION_IS_LESS(5,7,0) 18 | #define MHI_DEVICE_MODALIAS_FMT "mhi:%s" 19 | #define MHI_NAME_SIZE 32 20 | 21 | /** 22 | * struct mhi_device_id - MHI device identification 23 | * @chan: MHI channel name 24 | * @driver_data: driver data; 25 | */ 26 | struct mhi_device_id { 27 | const char chan[MHI_NAME_SIZE]; 28 | kernel_ulong_t driver_data; 29 | }; 30 | #endif 31 | 32 | #if LINUX_VERSION_IS_LESS(4,17,0) 33 | #define DMI_OEM_STRING (DMI_STRING_MAX + 1) 34 | #endif /* < 4.17.0 */ 35 | 36 | #endif /* __BACKPORT_MOD_DEVICETABLE_H */ 37 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/defconfigs/fpga: -------------------------------------------------------------------------------- 1 | CPTCFG_CFG80211=m 2 | CPTCFG_CFG80211_DEFAULT_PS=y 3 | CPTCFG_CFG80211_DEBUGFS=y 4 | CPTCFG_CFG80211_CERTIFICATION_ONUS=y 5 | CPTCFG_CFG80211_REG_RELAX_NO_IR=y 6 | CPTCFG_CFG80211_REQUIRE_SIGNED_REGDB=n 7 | CPTCFG_NL80211_TESTMODE=y 8 | CPTCFG_MAC80211=m 9 | # CPTCFG_MAC80211_RC_PID is not set 10 | CPTCFG_MAC80211_RC_MINSTREL=y 11 | CPTCFG_MAC80211_RC_DEFAULT_MINSTREL=y 12 | CPTCFG_MAC80211_DEBUGFS=y 13 | CPTCFG_MAC80211_MESSAGE_TRACING=y 14 | CPTCFG_WLAN=y 15 | CPTCFG_WLAN_VENDOR_INTEL=y 16 | CPTCFG_IWLWIFI=m 17 | CPTCFG_IWLDVM=m 18 | CPTCFG_IWLMVM=m 19 | CPTCFG_IWLWIFI_DEBUG=y 20 | CPTCFG_IWLWIFI_DEBUGFS=y 21 | CPTCFG_IWLWIFI_DEVICE_TRACING=y 22 | CPTCFG_IWLWIFI_DEVICE_TESTMODE=y 23 | CPTCFG_MAC80211_HWSIM=m 24 | CPTCFG_IWLXVT=m 25 | CPTCFG_IWLWIFI_SUPPORT_DEBUG_OVERRIDES=y 26 | # CPTCFG_IWLWIFI_FORCE_OFDM_RATE is not set 27 | CPTCFG_IWLWIFI_DHC_PRIVATE=y 28 | CPTCFG_IWL_TIMEOUT_FACTOR=20 29 | CPTCFG_IWL_DELAY_FACTOR=1 30 | CPTCFG_IWLWIFI_FPGA=y 31 | # CPTCFG_IWLWIFI_PLATFORM_MOCKUPS is not set 32 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/sysfs.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_SYSFS_H 2 | #define __BACKPORT_LINUX_SYSFS_H 3 | #include_next 4 | #include 5 | 6 | #ifndef __ATTR_RW 7 | #define __ATTR_RW(_name) __ATTR(_name, (S_IWUSR | S_IRUGO), \ 8 | _name##_show, _name##_store) 9 | #endif 10 | 11 | #if LINUX_VERSION_IS_LESS(5,10,0) 12 | #define sysfs_emit LINUX_BACKPORT(sysfs_emit) 13 | #ifdef CONFIG_SYSFS 14 | __printf(2, 3) 15 | int sysfs_emit(char *buf, const char *fmt, ...); 16 | #else /* CONFIG_SYSFS */ 17 | __printf(2, 3) 18 | static inline int sysfs_emit(char *buf, const char *fmt, ...) 19 | { 20 | return 0; 21 | } 22 | #endif /* CONFIG_SYSFS */ 23 | #endif /* < 5.10 */ 24 | 25 | #ifndef __ATTR_RW_MODE 26 | #define __ATTR_RW_MODE(_name, _mode) { \ 27 | .attr = { .name = __stringify(_name), \ 28 | .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \ 29 | .show = _name##_show, \ 30 | .store = _name##_store, \ 31 | } 32 | #endif 33 | 34 | #endif /* __BACKPORT_LINUX_SYSFS_H */ 35 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/scripts/blacklist.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | BLACKLIST_CONF="/etc/modprobe.d/backports.conf" 4 | BLACKLIST_MAP=".blacklist.map" 5 | 6 | MODULE_DIR=$1 7 | MODULE_UPDATES=$2 8 | 9 | if [[ ! -d $MODULE_DIR ]]; then 10 | exit 11 | fi 12 | 13 | if [[ ! -d $MODULE_UPDATES ]]; then 14 | exit 15 | fi 16 | 17 | mkdir -p $(dirname $BLACKLIST_CONF) 18 | rm -f $BLACKLIST_CONF 19 | 20 | echo "# To be used when using backported drivers" > $BLACKLIST_CONF 21 | 22 | for i in $(grep -v ^# $BLACKLIST_MAP | awk '{print $2}'); do 23 | MODULE="${i}.ko" 24 | MODULE_UPDATE="$(grep -v ^# $BLACKLIST_MAP | grep $i | awk '{print $1}' | head -1).ko" 25 | 26 | COUNT=$(find $MODULE_DIR -type f -name ${MODULE} -or -name ${MODULE}.gz | wc -l) 27 | COUNT_REPLACE=$(find $MODULE_UPDATES -type f -name ${MODULE_UPDATE} -or -name ${MODULE_UPDATE}.gz | wc -l) 28 | 29 | if [ $COUNT -ne 0 ]; then 30 | if [ $COUNT_REPLACE -ne 0 ]; then 31 | echo "Blacklisting $MODULE ..." 32 | echo blacklist $i >> $BLACKLIST_CONF 33 | fi 34 | fi 35 | done 36 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/uapi/linux/eventpoll.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_EVENTPOLL_H 2 | #define __BACKPORT_LINUX_EVENTPOLL_H 3 | #include_next 4 | 5 | #ifndef EPOLLIN 6 | #define EPOLLIN 0x00000001 7 | #endif 8 | 9 | #ifndef EPOLLPRI 10 | #define EPOLLPRI 0x00000002 11 | #endif 12 | 13 | #ifndef EPOLLOUT 14 | #define EPOLLOUT 0x00000004 15 | #endif 16 | 17 | #ifndef EPOLLERR 18 | #define EPOLLERR 0x00000008 19 | #endif 20 | 21 | #ifndef EPOLLHUP 22 | #define EPOLLHUP 0x00000010 23 | #endif 24 | 25 | #ifndef EPOLLRDNORM 26 | #define EPOLLRDNORM 0x00000040 27 | #endif 28 | 29 | #ifndef EPOLLRDBAND 30 | #define EPOLLRDBAND 0x00000080 31 | #endif 32 | 33 | #ifndef EPOLLWRNORM 34 | #define EPOLLWRNORM 0x00000100 35 | #endif 36 | 37 | #ifndef EPOLLWRBAND 38 | #define EPOLLWRBAND 0x00000200 39 | #endif 40 | 41 | #ifndef EPOLLMSG 42 | #define EPOLLMSG 0x00000400 43 | #endif 44 | 45 | #ifndef EPOLLRDHUP 46 | #define EPOLLRDHUP 0x00002000 47 | #endif 48 | 49 | #endif /* __BACKPORT_LINUX_EVENTPOLL_H */ 50 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/drivers/net/wireless/intel/iwlwifi/mvm/time-sync.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 2 | /* 3 | * Copyright (C) 2022 Intel Corporation 4 | */ 5 | #ifndef __TIME_SYNC_H__ 6 | #define __TIME_SYNC_H__ 7 | 8 | #include "mvm.h" 9 | #include 10 | 11 | void iwl_mvm_init_time_sync(struct iwl_time_sync_data *data); 12 | void iwl_mvm_time_sync_msmt_event(struct iwl_mvm *mvm, 13 | struct iwl_rx_cmd_buffer *rxb); 14 | void iwl_mvm_time_sync_msmt_confirm_event(struct iwl_mvm *mvm, 15 | struct iwl_rx_cmd_buffer *rxb); 16 | int iwl_mvm_time_sync_config(struct iwl_mvm *mvm, const u8 *addr, 17 | u32 protocols); 18 | 19 | static inline 20 | bool iwl_mvm_time_sync_frame(struct iwl_mvm *mvm, struct sk_buff *skb, u8 *addr) 21 | { 22 | if (ether_addr_equal(mvm->time_sync.peer_addr, addr) && 23 | (ieee80211_is_timing_measurement(skb) || ieee80211_is_ftm(skb))) { 24 | skb_queue_tail(&mvm->time_sync.frame_list, skb); 25 | return true; 26 | } 27 | 28 | return false; 29 | } 30 | #endif 31 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/drivers/net/wireless/intel/iwlwifi/fw/api/paging.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 2 | /* 3 | * Copyright (C) 2005-2014 Intel Corporation 4 | * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 | * Copyright (C) 2016-2017 Intel Deutschland GmbH 6 | */ 7 | #ifndef __iwl_fw_api_paging_h__ 8 | #define __iwl_fw_api_paging_h__ 9 | 10 | #define NUM_OF_FW_PAGING_BLOCKS 33 /* 32 for data and 1 block for CSS */ 11 | 12 | /** 13 | * struct iwl_fw_paging_cmd - paging layout 14 | * 15 | * Send to FW the paging layout in the driver. 16 | * 17 | * @flags: various flags for the command 18 | * @block_size: the block size in powers of 2 19 | * @block_num: number of blocks specified in the command. 20 | * @device_phy_addr: virtual addresses from device side 21 | */ 22 | struct iwl_fw_paging_cmd { 23 | __le32 flags; 24 | __le32 block_size; 25 | __le32 block_num; 26 | __le32 device_phy_addr[NUM_OF_FW_PAGING_BLOCKS]; 27 | } __packed; /* FW_PAGING_BLOCK_CMD_API_S_VER_1 */ 28 | 29 | #endif /* __iwl_fw_api_paging_h__ */ 30 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/net/mac80211/wep.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0-only */ 2 | /* 3 | * Software WEP encryption implementation 4 | * Copyright 2002, Jouni Malinen 5 | * Copyright 2003, Instant802 Networks, Inc. 6 | */ 7 | 8 | #ifndef WEP_H 9 | #define WEP_H 10 | 11 | #include 12 | #include 13 | #include "ieee80211_i.h" 14 | #include "key.h" 15 | 16 | void ieee80211_wep_init(struct ieee80211_local *local); 17 | int ieee80211_wep_encrypt_data(struct arc4_ctx *ctx, u8 *rc4key, 18 | size_t klen, u8 *data, size_t data_len); 19 | int ieee80211_wep_encrypt(struct ieee80211_local *local, 20 | struct sk_buff *skb, 21 | const u8 *key, int keylen, int keyidx); 22 | int ieee80211_wep_decrypt_data(struct arc4_ctx *ctx, u8 *rc4key, 23 | size_t klen, u8 *data, size_t data_len); 24 | 25 | ieee80211_rx_result 26 | ieee80211_crypto_wep_decrypt(struct ieee80211_rx_data *rx); 27 | ieee80211_tx_result 28 | ieee80211_crypto_wep_encrypt(struct ieee80211_tx_data *tx); 29 | 30 | #endif /* WEP_H */ 31 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/Documentation/developers/trees.rst: -------------------------------------------------------------------------------- 1 | Trees used for the driver 2 | ========================= 3 | 4 | :: 5 | 6 | iwlwifi-stack-dev 7 | ( = master or release/*) 8 | | 9 | | 10 | | 11 | +-------> iwlwifi-chrome-kernel/chromeos-__ [defconfig: chromeos] 12 | | Done using intc-scripts/chromeos.py, see VERSIONS variable 13 | | there for s and corresponding WIFIVERSIONs. 14 | | See the ChromeOS chapter for a more detailed description of 15 | | the process and how to resolve problems when it fails per-CI. 16 | | 17 | | 18 | +-------> iwlwifi-public/ [defconfig: iwlwifi-public] 19 | +-------> iwlwifi-public-modrename/ [defconfig: iwlwifi-public, --modcompat renaming] 20 | +-------> iwlwifi-public-slave/ [defconfig: xmm6321] 21 | This is done using intc-scripts/prune-mirror.py. 22 | See the Pruning chapter for a more detailed description of 23 | this process and how to resolve problems when it fails per-CI. 24 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/pcmcia/ds.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_PCMCIA_DS_H 2 | #define __BACKPORT_PCMCIA_DS_H 3 | #include_next 4 | 5 | #ifndef module_pcmcia_driver 6 | /** 7 | * backport of: 8 | * 9 | * commit 6ed7ffddcf61f668114edb676417e5fb33773b59 10 | * Author: H Hartley Sweeten 11 | * Date: Wed Mar 6 11:24:44 2013 -0700 12 | * 13 | * pcmcia/ds.h: introduce helper for pcmcia_driver module boilerplate 14 | */ 15 | 16 | /** 17 | * module_pcmcia_driver() - Helper macro for registering a pcmcia driver 18 | * @__pcmcia_driver: pcmcia_driver struct 19 | * 20 | * Helper macro for pcmcia drivers which do not do anything special in module 21 | * init/exit. This eliminates a lot of boilerplate. Each module may only use 22 | * this macro once, and calling it replaces module_init() and module_exit(). 23 | */ 24 | #define module_pcmcia_driver(__pcmcia_driver) \ 25 | module_driver(__pcmcia_driver, pcmcia_register_driver, \ 26 | pcmcia_unregister_driver) 27 | #endif 28 | 29 | #endif /* __BACKPORT_PCMCIA_DS_H */ 30 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/rculist.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_RCULIST_H 2 | #define __BACKPORT_RCULIST_H 3 | #include_next 4 | #include 5 | 6 | 7 | #if LINUX_VERSION_IS_LESS(5,4,0) 8 | /** 9 | * list_for_each_entry_rcu - iterate over rcu list of given type 10 | * @pos: the type * to use as a loop cursor. 11 | * @head: the head for your list. 12 | * @member: the name of the list_head within the struct. 13 | * @cond...: optional lockdep expression if called from non-RCU protection. 14 | * 15 | * This list-traversal primitive may safely run concurrently with 16 | * the _rcu list-mutation primitives such as list_add_rcu() 17 | * as long as the traversal is guarded by rcu_read_lock(). 18 | */ 19 | #undef list_for_each_entry_rcu 20 | #define list_for_each_entry_rcu(pos, head, member, cond...) \ 21 | for (pos = list_entry_rcu((head)->next, typeof(*pos), member); \ 22 | &pos->member != (head); \ 23 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) 24 | #endif /* < 5.4 */ 25 | 26 | #endif /* __BACKPORT_RCULIST_H */ 27 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/u64_stats_sync.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_U64_STATS_SYNC_H 2 | #define __BACKPORT_LINUX_U64_STATS_SYNC_H 3 | 4 | #include 5 | #include 6 | #include_next 7 | 8 | #if LINUX_VERSION_IS_LESS(4,16,0) && \ 9 | !LINUX_VERSION_IN_RANGE(4,14,44, 4,15,0) && \ 10 | !(LINUX_VERSION_IS_GEQ(4,15,18) && UTS_UBUNTU_RELEASE_ABI >= 33) 11 | static inline unsigned long 12 | u64_stats_update_begin_irqsave(struct u64_stats_sync *syncp) 13 | { 14 | unsigned long flags = 0; 15 | 16 | #if BITS_PER_LONG==32 && defined(CONFIG_SMP) 17 | local_irq_save(flags); 18 | write_seqcount_begin(&syncp->seq); 19 | #endif 20 | return flags; 21 | } 22 | 23 | static inline void 24 | u64_stats_update_end_irqrestore(struct u64_stats_sync *syncp, 25 | unsigned long flags) 26 | { 27 | #if BITS_PER_LONG==32 && defined(CONFIG_SMP) 28 | write_seqcount_end(&syncp->seq); 29 | local_irq_restore(flags); 30 | #endif 31 | } 32 | #endif /* < 4.16 */ 33 | 34 | #endif /* __BACKPORT_LINUX_U64_STATS_SYNC_H */ 35 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/drivers/net/wireless/intel/iwlwifi/dvm/led.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0-only */ 2 | /****************************************************************************** 3 | * 4 | * Copyright(c) 2003 - 2014 Intel Corporation. All rights reserved. 5 | *****************************************************************************/ 6 | 7 | #ifndef __iwl_leds_h__ 8 | #define __iwl_leds_h__ 9 | 10 | 11 | struct iwl_priv; 12 | 13 | #define IWL_LED_SOLID 11 14 | #define IWL_DEF_LED_INTRVL cpu_to_le32(1000) 15 | 16 | #define IWL_LED_ACTIVITY (0<<1) 17 | #define IWL_LED_LINK (1<<1) 18 | 19 | #ifdef CPTCFG_IWLWIFI_LEDS 20 | void iwlagn_led_enable(struct iwl_priv *priv); 21 | void iwl_leds_init(struct iwl_priv *priv); 22 | void iwl_leds_exit(struct iwl_priv *priv); 23 | #else 24 | static inline void iwlagn_led_enable(struct iwl_priv *priv) 25 | { 26 | } 27 | static inline void iwl_leds_init(struct iwl_priv *priv) 28 | { 29 | } 30 | static inline void iwl_leds_exit(struct iwl_priv *priv) 31 | { 32 | } 33 | #endif 34 | 35 | #endif /* __iwl_leds_h__ */ 36 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/drivers/net/wireless/intel/iwlwifi/dvm/power.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: GPL-2.0-only */ 2 | /****************************************************************************** 3 | * 4 | * Copyright(c) 2007 - 2014 Intel Corporation. All rights reserved. 5 | * 6 | * Portions of this file are derived from the ipw3945 project, as well 7 | * as portions of the ieee80211 subsystem header files. 8 | *****************************************************************************/ 9 | #ifndef __iwl_power_setting_h__ 10 | #define __iwl_power_setting_h__ 11 | 12 | #include "commands.h" 13 | 14 | struct iwl_power_mgr { 15 | struct iwl_powertable_cmd sleep_cmd; 16 | struct iwl_powertable_cmd sleep_cmd_next; 17 | int debug_sleep_level_override; 18 | bool bus_pm; 19 | }; 20 | 21 | int iwl_power_set_mode(struct iwl_priv *priv, struct iwl_powertable_cmd *cmd, 22 | bool force); 23 | int iwl_power_update_mode(struct iwl_priv *priv, bool force); 24 | void iwl_power_initialize(struct iwl_priv *priv); 25 | 26 | extern bool no_sleep_autoadjust; 27 | 28 | #endif /* __iwl_power_setting_h__ */ 29 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/LICENSES/exceptions/GCC-exception-2.0: -------------------------------------------------------------------------------- 1 | SPDX-Exception-Identifier: GCC-exception-2.0 2 | SPDX-URL: https://spdx.org/licenses/GCC-exception-2.0.html 3 | SPDX-Licenses: GPL-2.0, GPL-2.0+, GPL-2.0-only, GPL-2.0-or-later 4 | Usage-Guide: 5 | This exception is used together with one of the above SPDX-Licenses to 6 | allow linking the compiled version of code to non GPL compliant code. 7 | To use this exception add it with the keyword WITH to one of the 8 | identifiers in the SPDX-Licenses tag: 9 | SPDX-License-Identifier: WITH GCC-exception-2.0 10 | License-Text: 11 | 12 | In addition to the permissions in the GNU Library General Public License, 13 | the Free Software Foundation gives you unlimited permission to link the 14 | compiled version of this file into combinations with other programs, and to 15 | distribute those programs without any restriction coming from the use of 16 | this file. (The General Public License restrictions do apply in other 17 | respects; for example, they cover modification of the file, and 18 | distribution when not linked into another program.) 19 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/chromeOS/hdrs/linux/verification.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2018 Intel Corporation 3 | */ 4 | 5 | #ifndef __BP_VERIFICATION_H 6 | #define __BP_VERIFICATION_H 7 | #include 8 | #if LINUX_VERSION_IS_GEQ(4,7,0) 9 | #include_next 10 | #else 11 | #include 12 | 13 | enum key_being_used_for { 14 | VERIFYING_MODULE_SIGNATURE, 15 | VERIFYING_FIRMWARE_SIGNATURE, 16 | VERIFYING_KEXEC_PE_SIGNATURE, 17 | VERIFYING_KEY_SIGNATURE, 18 | VERIFYING_KEY_SELF_SIGNATURE, 19 | VERIFYING_UNSPECIFIED_SIGNATURE, 20 | NR__KEY_BEING_USED_FOR 21 | }; 22 | 23 | static inline 24 | int verify_pkcs7_signature(const void *data, size_t len, 25 | const void *raw_pkcs7, size_t pkcs7_len, 26 | struct key *trusted_keys, 27 | enum key_being_used_for usage, 28 | int (*view_content)(void *ctx, 29 | const void *data, size_t len, 30 | size_t asn1hdrlen), 31 | void *ctx) 32 | { 33 | WARN_ON(1); 34 | return 0; 35 | } 36 | #endif /* LINUX_VERSION_IS_GEQ(4,7,0) */ 37 | #endif /* __CHROMEOS_VERIFICATION_H */ 38 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/lockdep.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_LOCKDEP_H 2 | #define __BACKPORT_LINUX_LOCKDEP_H 3 | #include_next 4 | #include 5 | 6 | #if LINUX_VERSION_IS_LESS(4,15,0) 7 | #ifndef CONFIG_LOCKDEP 8 | struct lockdep_map { }; 9 | #endif /* CONFIG_LOCKDEP */ 10 | #endif /* LINUX_VERSION_IS_LESS(4,15,0) */ 11 | 12 | #if LINUX_VERSION_IS_LESS(5,11,0) 13 | #if !defined(CONFIG_LOCKDEP) && !defined(lockdep_is_held) 14 | /* upstream since 5.11 in this exact same way - calls compile away */ 15 | int lockdep_is_held(const void *); 16 | #endif 17 | #endif 18 | 19 | #ifndef lockdep_assert_not_held 20 | #ifdef CONFIG_LOCKDEP 21 | #ifndef LOCK_STATE_HELD 22 | #define LOCK_STATE_HELD 1 23 | #endif /* LOCK_STATE_HELD */ 24 | #define lockdep_assert_not_held(l) do { \ 25 | WARN_ON(debug_locks && \ 26 | lockdep_is_held(l) == LOCK_STATE_HELD); \ 27 | } while (0) 28 | #else 29 | #define lockdep_assert_not_held(l) do { (void)(l); } while (0) 30 | #endif /* CONFIG_LOCKDEP */ 31 | #endif /* lockdep_assert_not_held */ 32 | 33 | #endif /* __BACKPORT_LINUX_LOCKDEP_H */ 34 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/chromeOS/adjustments/017-iftype_ext_capab.spatch: -------------------------------------------------------------------------------- 1 | @wiphy_ext_capa@ 2 | identifier a, capa; 3 | @@ 4 | struct wiphy_iftype_ext_capab a[] = { 5 | ..., 6 | { 7 | ..., 8 | .extended_capabilities = capa, 9 | ..., 10 | }, 11 | ..., 12 | }; 13 | 14 | @@ 15 | identifier wiphy_ext_capa.capa; 16 | @@ 17 | +#if CFG80211_VERSION >= KERNEL_VERSION(4,8,0) 18 | const u8 capa[] = { 19 | ..., 20 | }; 21 | +#endif 22 | 23 | @@ 24 | identifier wiphy_ext_capa.a; 25 | expression e; 26 | @@ 27 | +#if CFG80211_VERSION >= KERNEL_VERSION(4,8,0) 28 | if (e) { 29 | ... 30 | hw->wiphy->iftype_ext_capab = a; 31 | ... 32 | } 33 | +#endif 34 | 35 | @@ 36 | identifier b; 37 | @@ 38 | +#if CFG80211_VERSION >= KERNEL_VERSION(4,8,0) 39 | struct wiphy_iftype_ext_capab b[] = { 40 | ..., 41 | }; 42 | +#endif 43 | 44 | @@ 45 | struct wiphy_iftype_ext_capab *ift_ext_capa; 46 | @@ 47 | -ift_ext_capa->eml_capabilities 48 | +cfg80211_ext_capa_eml_capabilities(ift_ext_capa) 49 | 50 | @@ 51 | struct wiphy_iftype_ext_capab *ift_ext_capa; 52 | @@ 53 | -ift_ext_capa->mld_capa_and_ops 54 | +cfg80211_ext_capa_mld_capa_and_ops(ift_ext_capa) 55 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/verification.h: -------------------------------------------------------------------------------- 1 | #ifndef __BP_VERIFICATION_H 2 | #define __BP_VERIFICATION_H 3 | #include 4 | #if (LINUX_VERSION_IS_GEQ(4,7,0) && !defined(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION)) && \ 5 | defined(CONFIG_CRYPTO_HASH_INFO) 6 | #include_next 7 | #else 8 | #include 9 | 10 | enum key_being_used_for { 11 | VERIFYING_MODULE_SIGNATURE, 12 | VERIFYING_FIRMWARE_SIGNATURE, 13 | VERIFYING_KEXEC_PE_SIGNATURE, 14 | VERIFYING_KEY_SIGNATURE, 15 | VERIFYING_KEY_SELF_SIGNATURE, 16 | VERIFYING_UNSPECIFIED_SIGNATURE, 17 | NR__KEY_BEING_USED_FOR 18 | }; 19 | 20 | extern int verify_pkcs7_signature(const void *data, size_t len, 21 | const void *raw_pkcs7, size_t pkcs7_len, 22 | struct key *trusted_keys, 23 | enum key_being_used_for usage, 24 | int (*view_content)(void *ctx, 25 | const void *data, size_t len, 26 | size_t asn1hdrlen), 27 | void *ctx); 28 | #endif /* LINUX_VERSION_IS_GEQ(4,7,0) && !defined(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) */ 29 | #endif /* __BP_VERIFICATION_H */ 30 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/chromeOS/adjustments/008-control_port.spatch: -------------------------------------------------------------------------------- 1 | @@ 2 | identifier params; 3 | identifier type =~ "cfg80211_crypto_settings|mesh_setup|cfg80211_ibss_params"; 4 | @@ 5 | struct type *params; 6 | <... 7 | -params->control_port_over_nl80211 8 | +cfg_control_port_over_nl80211(params) 9 | ...> 10 | 11 | @@ 12 | identifier params; 13 | identifier fn; 14 | identifier type =~ "cfg80211_crypto_settings|mesh_setup|cfg80211_ibss_params"; 15 | @@ 16 | fn(..., struct type *params, ...) 17 | { 18 | <... 19 | -params->control_port_over_nl80211 20 | +cfg_control_port_over_nl80211(params) 21 | ...> 22 | } 23 | 24 | @@ 25 | identifier p; 26 | identifier type =~ "cfg80211_ap_settings|cfg80211_assoc_request"; 27 | @@ 28 | struct type *p; 29 | <... 30 | -p->crypto.control_port_over_nl80211 31 | +cfg_control_port_over_nl80211(&p->crypto) 32 | ...> 33 | 34 | 35 | @@ 36 | identifier p, fn; 37 | identifier type =~ "cfg80211_ap_settings|cfg80211_assoc_request"; 38 | @@ 39 | fn(..., struct type *p, ...) 40 | { 41 | <... 42 | -p->crypto.control_port_over_nl80211 43 | +cfg_control_port_over_nl80211(&p->crypto) 44 | ...> 45 | } 46 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/leds.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_LEDS_H 2 | #define __BACKPORT_LINUX_LEDS_H 3 | #include_next 4 | #include 5 | 6 | #if LINUX_VERSION_IS_LESS(4,5,0) 7 | #define led_set_brightness_sync LINUX_BACKPORT(led_set_brightness_sync) 8 | /** 9 | * led_set_brightness_sync - set LED brightness synchronously 10 | * @led_cdev: the LED to set 11 | * @brightness: the brightness to set it to 12 | * 13 | * Set an LED's brightness immediately. This function will block 14 | * the caller for the time required for accessing device registers, 15 | * and it can sleep. 16 | * 17 | * Returns: 0 on success or negative error value on failure 18 | */ 19 | extern int led_set_brightness_sync(struct led_classdev *led_cdev, 20 | enum led_brightness value); 21 | #endif /* < 4.5 */ 22 | 23 | #if LINUX_VERSION_IS_LESS(4,5,0) 24 | #define devm_led_trigger_register LINUX_BACKPORT(devm_led_trigger_register) 25 | extern int devm_led_trigger_register(struct device *dev, 26 | struct led_trigger *trigger); 27 | #endif /* < 4.5 */ 28 | 29 | #endif /* __BACKPORT_LINUX_LEDS_H */ 30 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/compat/backport-5.9.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-2.0 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | u64 mul_u64_u64_div_u64(u64 a, u64 b, u64 c) 8 | { 9 | u64 res = 0, div, rem; 10 | int shift; 11 | 12 | /* can a * b overflow ? */ 13 | if (ilog2(a) + ilog2(b) > 62) { 14 | /* 15 | * (b * a) / c is equal to 16 | * 17 | * (b / c) * a + 18 | * (b % c) * a / c 19 | * 20 | * if nothing overflows. Can the 1st multiplication 21 | * overflow? Yes, but we do not care: this can only 22 | * happen if the end result can't fit in u64 anyway. 23 | * 24 | * So the code below does 25 | * 26 | * res = (b / c) * a; 27 | * b = b % c; 28 | */ 29 | div = div64_u64_rem(b, c, &rem); 30 | res = div * a; 31 | b = rem; 32 | 33 | shift = ilog2(a) + ilog2(b) - 62; 34 | if (shift > 0) { 35 | /* drop precision */ 36 | b >>= shift; 37 | c >>= shift; 38 | if (!c) 39 | return res; 40 | } 41 | } 42 | 43 | return res + div64_u64(a * b, c); 44 | } 45 | EXPORT_SYMBOL_GPL(mul_u64_u64_div_u64); 46 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/rhashtable.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_RHASHTABLE_H 2 | #define __BACKPORT_RHASHTABLE_H 3 | #include_next 4 | #include 5 | 6 | #if LINUX_VERSION_IS_LESS(4,12,0) 7 | /** 8 | * rhashtable_lookup_get_insert_fast - lookup and insert object into hash table 9 | * @ht: hash table 10 | * @obj: pointer to hash head inside object 11 | * @params: hash table parameters 12 | * 13 | * Just like rhashtable_lookup_insert_fast(), but this function returns the 14 | * object if it exists, NULL if it did not and the insertion was successful, 15 | * and an ERR_PTR otherwise. 16 | */ 17 | #define rhashtable_lookup_get_insert_fast LINUX_BACKPORT(rhashtable_lookup_get_insert_fast) 18 | static inline void *rhashtable_lookup_get_insert_fast( 19 | struct rhashtable *ht, struct rhash_head *obj, 20 | const struct rhashtable_params params) 21 | { 22 | const char *key = rht_obj(ht, obj); 23 | 24 | BUG_ON(ht->p.obj_hashfn); 25 | 26 | return __rhashtable_insert_fast(ht, key + ht->p.key_offset, obj, params, 27 | false); 28 | } 29 | #endif 30 | 31 | #endif /* __BACKPORT_RHASHTABLE_H */ 32 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/compat/verification/rsapubkey.asn1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by asn1_compiler. Do not edit 3 | * 4 | * ASN.1 parser for rsapubkey 5 | */ 6 | #include 7 | #include "rsapubkey.asn1.h" 8 | 9 | enum rsapubkey_actions { 10 | ACT_rsa_get_e = 0, 11 | ACT_rsa_get_n = 1, 12 | NR__rsapubkey_actions = 2 13 | }; 14 | 15 | static const asn1_action_t rsapubkey_action_table[NR__rsapubkey_actions] = { 16 | [ 0] = rsa_get_e, 17 | [ 1] = rsa_get_n, 18 | }; 19 | 20 | static const unsigned char rsapubkey_machine[] = { 21 | // RsaPubKey 22 | [ 0] = ASN1_OP_MATCH, 23 | [ 1] = _tag(UNIV, CONS, SEQ), 24 | [ 2] = ASN1_OP_MATCH_ACT, // n 25 | [ 3] = _tag(UNIV, PRIM, INT), 26 | [ 4] = _action(ACT_rsa_get_n), 27 | [ 5] = ASN1_OP_MATCH_ACT, // e 28 | [ 6] = _tag(UNIV, PRIM, INT), 29 | [ 7] = _action(ACT_rsa_get_e), 30 | [ 8] = ASN1_OP_END_SEQ, 31 | [ 9] = ASN1_OP_COMPLETE, 32 | }; 33 | 34 | const struct asn1_decoder rsapubkey_decoder = { 35 | .machine = rsapubkey_machine, 36 | .machlen = sizeof(rsapubkey_machine), 37 | .actions = rsapubkey_action_table, 38 | }; 39 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/spinlock.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_SPINLOCK_H 2 | #define __BACKPORT_SPINLOCK_H 3 | #include_next 4 | 5 | 6 | #if LINUX_VERSION_IS_LESS(4,16,0) 7 | int alloc_bucket_spinlocks(spinlock_t **locks, unsigned int *lock_mask, 8 | size_t max_size, unsigned int cpu_mult, 9 | gfp_t gfp); 10 | 11 | void free_bucket_spinlocks(spinlock_t *locks); 12 | #endif /* LINUX_VERSION_IS_LESS(4,16,0) */ 13 | 14 | #if LINUX_VERSION_IS_LESS(4,19,0) 15 | int __alloc_bucket_spinlocks(spinlock_t **locks, unsigned int *lock_mask, 16 | size_t max_size, unsigned int cpu_mult, 17 | gfp_t gfp, const char *name, 18 | struct lock_class_key *key); 19 | 20 | #define alloc_bucket_spinlocks(locks, lock_mask, max_size, cpu_mult, gfp) \ 21 | ({ \ 22 | static struct lock_class_key key; \ 23 | int ret; \ 24 | \ 25 | ret = __alloc_bucket_spinlocks(locks, lock_mask, max_size, \ 26 | cpu_mult, gfp, #locks, &key); \ 27 | ret; \ 28 | }) 29 | #endif /* LINUX_VERSION_IS_LESS(4,19,0) */ 30 | 31 | #endif /* __BACKPORT_SPINLOCK_H */ 32 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/keys/asymmetric-type.h: -------------------------------------------------------------------------------- 1 | #ifndef __BP_ASYMMETRIC_TYPE_H 2 | #define __BP_ASYMMETRIC_TYPE_H 3 | #ifdef CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION 4 | 5 | #include 6 | 7 | struct asymmetric_key_id { 8 | unsigned short len; 9 | unsigned char data[]; 10 | }; 11 | 12 | struct asymmetric_key_ids { 13 | struct asymmetric_key_id *id[2]; 14 | }; 15 | 16 | static inline bool asymmetric_key_id_same(const struct asymmetric_key_id *kid1, 17 | const struct asymmetric_key_id *kid2) 18 | { 19 | if (!kid1 || !kid2) 20 | return false; 21 | if (kid1->len != kid2->len) 22 | return false; 23 | return memcmp(kid1->data, kid2->data, kid1->len) == 0; 24 | } 25 | 26 | extern struct asymmetric_key_id * 27 | asymmetric_key_generate_id(const void *val_1, size_t len_1, 28 | const void *val_2, size_t len_2); 29 | 30 | extern struct key *find_asymmetric_key(struct key *keyring, 31 | const struct asymmetric_key_id *id_0, 32 | const struct asymmetric_key_id *id_1, 33 | const struct asymmetric_key_id *id_2, 34 | bool partial); 35 | #endif 36 | #endif /* __BP_ASYMMETRIC_TYPE_H */ 37 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/time.h: -------------------------------------------------------------------------------- 1 | #ifndef __BACKPORT_LINUX_TIME_H 2 | #define __BACKPORT_LINUX_TIME_H 3 | #include_next 4 | 5 | #include 6 | 7 | #if LINUX_VERSION_IS_LESS(4,8,0) 8 | static inline void time64_to_tm(time64_t totalsecs, int offset, 9 | struct tm *result) 10 | { 11 | time_to_tm((time_t)totalsecs, 0, result); 12 | } 13 | #endif 14 | 15 | #ifndef time_after32 16 | /** 17 | * time_after32 - compare two 32-bit relative times 18 | * @a: the time which may be after @b 19 | * @b: the time which may be before @a 20 | * 21 | * time_after32(a, b) returns true if the time @a is after time @b. 22 | * time_before32(b, a) returns true if the time @b is before time @a. 23 | * 24 | * Similar to time_after(), compare two 32-bit timestamps for relative 25 | * times. This is useful for comparing 32-bit seconds values that can't 26 | * be converted to 64-bit values (e.g. due to disk format or wire protocol 27 | * issues) when it is known that the times are less than 68 years apart. 28 | */ 29 | #define time_after32(a, b) ((s32)((u32)(b) - (u32)(a)) < 0) 30 | #endif 31 | 32 | #endif /* __BACKPORT_LINUX_TIME_H */ 33 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/LICENSES/deprecated/ISC: -------------------------------------------------------------------------------- 1 | Valid-License-Identifier: ISC 2 | SPDX-URL: https://spdx.org/licenses/ISC.html 3 | Usage-Guide: 4 | To use the ISC License put the following SPDX tag/value pair into a 5 | comment according to the placement guidelines in the licensing rules 6 | documentation: 7 | SPDX-License-Identifier: ISC 8 | License-Text: 9 | 10 | ISC License 11 | 12 | Copyright (c) 13 | 14 | Permission to use, copy, modify, and/or distribute this software for any 15 | purpose with or without fee is hereby granted, provided that the above 16 | copyright notice and this permission notice appear in all copies. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 19 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 20 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 21 | SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 22 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 23 | OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 24 | CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 25 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/intc-scripts/publishable-options: -------------------------------------------------------------------------------- 1 | MAC80211 2 | MAC80211_HAS_RC 3 | MAC80211_RC_MINSTREL 4 | MAC80211_RC_MINSTREL_HT 5 | MAC80211_RC_MINSTREL_VHT 6 | MAC80211_RC_DEFAULT_MINSTREL 7 | MAC80211_RC_DEFAULT 8 | MAC80211_MESH 9 | MAC80211_LEDS 10 | MAC80211_DEBUGFS 11 | MAC80211_MESSAGE_TRACING 12 | MAC80211_NOINLINE 13 | MAC80211_VERBOSE_DEBUG 14 | MAC80211_MLME_DEBUG 15 | MAC80211_STA_DEBUG 16 | MAC80211_HT_DEBUG 17 | MAC80211_OCB_DEBUG 18 | MAC80211_IBSS_DEBUG 19 | MAC80211_PS_DEBUG 20 | MAC80211_MPL_DEBUG 21 | MAC80211_MPATH_DEBUG 22 | MAC80211_MHWMP_DEBUG 23 | MAC80211_MESH_SYNC_DEBUG 24 | MAC80211_MESH_CSA_DEBUG 25 | MAC80211_MESH_PS_DEBUG 26 | MAC80211_TDLS_DEBUG 27 | MAC80211_DEBUG_COUNTERS 28 | MAC80211_STA_HASH_MAX_SIZE 29 | MAC80211_DEBUG_MENU 30 | IWL_TIMEOUT_FACTOR 31 | IWL_DELAY_FACTOR 32 | IWLWIFI_SUPPORT_DEBUG_OVERRIDES 33 | IWLWIFI_NUM_CHANNELS 34 | IWLWIFI_LEDS 35 | IWLWIFI_OPMODE_MODULAR 36 | IWLMVM_TDLS_PEER_CACHE 37 | IWLMVM_P2P_OPPPS_TEST_WA 38 | IWLMVM_VENDOR_CMDS 39 | IWLWIFI_THERMAL_DEBUGFS 40 | IWLWIFI_DISALLOW_OLDER_FW 41 | IWLWIFI_FORCE_OFDM_RATE 42 | IWLWIFI_NUM_STA_INTERFACES 43 | REJECT_NONUPSTREAM_NL80211 44 | IWLWIFI_DHC 45 | IWLWIFI_DONT_DUMP_FIFOS 46 | -------------------------------------------------------------------------------- /iwlwifi-stack-dev/backport-include/linux/compiler_attributes.h: -------------------------------------------------------------------------------- 1 | #ifndef _BACKPORTS_LINUX_COMPILER_ATTRIBUTES_H 2 | #define _BACKPORTS_LINUX_COMPILER_ATTRIBUTES_H 1 3 | 4 | #if LINUX_VERSION_IS_GEQ(4,20,0) 5 | #include_next 6 | #endif 7 | 8 | #ifndef __has_attribute 9 | # define __has_attribute(x) __GCC4_has_attribute_##x 10 | #endif 11 | 12 | #ifndef __GCC4_has_attribute___fallthrough__ 13 | # define __GCC4_has_attribute___fallthrough__ 0 14 | #endif /* __GCC4_has_attribute___fallthrough__ */ 15 | 16 | #ifndef fallthrough 17 | /* 18 | * Add the pseudo keyword 'fallthrough' so case statement blocks 19 | * must end with any of these keywords: 20 | * break; 21 | * fallthrough; 22 | * goto