Linus Lüssing
4a2d4496e1
mac80211: fix potential double free on mesh join
...
While commit 6a01afcf84 ("mac80211: mesh: Free ie data when leaving
mesh") fixed a memory leak on mesh leave / teardown it introduced a
potential memory corruption caused by a double free when rejoining the
mesh:
ieee80211_leave_mesh()
-> kfree(sdata->u.mesh.ie);
...
ieee80211_join_mesh()
-> copy_mesh_setup()
-> old_ie = ifmsh->ie;
-> kfree(old_ie);
This double free / kernel panics can be reproduced by using wpa_supplicant
with an encrypted mesh (if set up without encryption via "iw" then
ifmsh->ie is always NULL, which avoids this issue). And then calling:
$ iw dev mesh0 mesh leave
$ iw dev mesh0 mesh join my-mesh
Note that typically these commands are not used / working when using
wpa_supplicant. And it seems that wpa_supplicant or wpa_cli are going
through a NETDEV_DOWN/NETDEV_UP cycle between a mesh leave and mesh join
where the NETDEV_UP resets the mesh.ie to NULL via a memcpy of
default_mesh_setup in cfg80211_netdev_notifier_call, which then avoids
the memory corruption, too.
The issue was first observed in an application which was not using
wpa_supplicant but "Senf" instead, which implements its own calls to
nl80211.
Fixing the issue by removing the kfree()'ing of the mesh IE in the mesh
join function and leaving it solely up to the mesh leave to free the
mesh IE.
Cc: stable@vger.kernel.org
Fixes: 6a01afcf84 ("mac80211: mesh: Free ie data when leaving mesh")
Reported-by: Matthias Kretschmer <mathias.kretschmer@fit.fraunhofer.de >
Signed-off-by: Linus Lüssing <ll@simonwunderlich.de >
Tested-by: Mathias Kretschmer <mathias.kretschmer@fit.fraunhofer.de >
Link: https://lore.kernel.org/r/20220310183513.28589-1-linus.luessing@c0d3.blue
Signed-off-by: Johannes Berg <johannes.berg@intel.com >
2022-03-11 11:51:18 +01:00
MeiChia Chiu
022143d0c5
mac80211: correct legacy rates check in ieee80211_calc_rx_airtime
...
There are no legacy rates on 60GHz or sub-1GHz band, so modify the check.
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com >
Signed-off-by: MeiChia Chiu <MeiChia.Chiu@mediatek.com >
Link: https://lore.kernel.org/r/20220308021645.16272-1-MeiChia.Chiu@mediatek.com
[Ghz -> GHz]
Signed-off-by: Johannes Berg <johannes.berg@intel.com >
2022-03-11 11:45:36 +01:00
Veerendranath Jakkam
2916b7a9c7
nl80211: fix typo of NL80211_IF_TYPE_OCB in documentation
...
It should be NL80211_IFTYPE_OCB instead.
Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com >
Link: https://lore.kernel.org/r/1645542399-4680-1-git-send-email-quic_vjakkam@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com >
2022-03-11 11:43:55 +01:00
Christophe JAILLET
60df54f8e6
mac80211: Use GFP_KERNEL instead of GFP_ATOMIC when possible
...
Previous memory allocations in this function already use GFP_KERNEL, so
use __dev_alloc_skb() and an explicit GFP_KERNEL instead of an implicit
GFP_ATOMIC.
This gives more opportunities of successful allocation.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr >
Link: https://lore.kernel.org/r/194a0e2ff00c3fae88cc9fba47431747360c8242.1645345378.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Johannes Berg <johannes.berg@intel.com >
2022-03-11 11:42:49 +01:00
Yihao Han
3856f1b31f
mac80211: replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE
...
Fix the following coccicheck warning:
./drivers/net/wireless/mac80211_hwsim.c:1040:0-23: WARNING:
hwsim_fops_rx_rssi should be defined with
DEFINE_DEBUGFS_ATTRIBUTE
Signed-off-by: Yihao Han <hanyihao@vivo.com >
Link: https://lore.kernel.org/r/20220218070228.6210-1-hanyihao@vivo.com
[fix indentation]
Signed-off-by: Johannes Berg <johannes.berg@intel.com >
2022-03-11 11:42:36 +01:00
Kalle Valo
1922260175
Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
...
ath.git patches for v5.18. Major changes:
ath6kl
* add device ID for WLU5150-D81
2022-03-10 18:48:16 +02:00
Kalle Valo
3b03fc9ac3
Merge tag 'iwlwifi-next-for-kalle-2022-03-10' of git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-next
...
iwlwifi patches for v5.18
* Mostly debugging infra changes;
* Some more work on the Bz family of devices;
* Bump the FW API twice;
* Some other small fixes, clean-ups and improvements.
2022-03-10 18:46:32 +02:00
Ping-Ke Shih
ea37206459
rtw89: 8852c: process logic efuse map
...
Add a struct to access logic efuse map, and fill data according to the map.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com >
Signed-off-by: Kalle Valo <kvalo@kernel.org >
Link: https://lore.kernel.org/r/20220307060457.56789-14-pkshih@realtek.com
2022-03-10 18:44:02 +02:00
Ping-Ke Shih
a82174c6a1
rtw89: 8852c: process efuse of phycap
...
Read phycap data programmed in efuse, and store them into array.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com >
Signed-off-by: Kalle Valo <kvalo@kernel.org >
Link: https://lore.kernel.org/r/20220307060457.56789-13-pkshih@realtek.com
2022-03-10 18:43:51 +02:00
Ping-Ke Shih
bdfbf06c2c
rtw89: support DAV efuse reading operation
...
DAV is an another efuse region that new chip, like 8852C, has this region.
Extend the code to read it, and convert the physical map to logical map
followed by original logical map.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com >
Signed-off-by: Kalle Valo <kvalo@kernel.org >
Link: https://lore.kernel.org/r/20220307060457.56789-12-pkshih@realtek.com
2022-03-10 18:43:40 +02:00
Ping-Ke Shih
79d099e022
rtw89: 8852c: add chip::dle_mem
...
These tables are used to configure hardware buffer size according to
operating mode.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com >
Signed-off-by: Kalle Valo <kvalo@kernel.org >
Link: https://lore.kernel.org/r/20220307060457.56789-11-pkshih@realtek.com
2022-03-10 18:43:30 +02:00
Ping-Ke Shih
ab8a56716b
rtw89: add page_regs to handle v1 chips
...
These registers are used to configure and access page size of HCI.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com >
Signed-off-by: Kalle Valo <kvalo@kernel.org >
Link: https://lore.kernel.org/r/20220307060457.56789-10-pkshih@realtek.com
2022-03-10 18:43:19 +02:00
Ping-Ke Shih
e8955811c6
rtw89: add chip_info::{h2c,c2h}_reg to support more chips
...
This is a register-based H2C/C2H interface to exchange data with firmware.
Since the register addresses of 8852A and 8852C are different, add fields
to chip_info to support this.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com >
Signed-off-by: Kalle Valo <kvalo@kernel.org >
Link: https://lore.kernel.org/r/20220307060457.56789-9-pkshih@realtek.com
2022-03-10 18:43:09 +02:00
Ping-Ke Shih
2af64b4af4
rtw89: add hci_func_en_addr to support variant generation
...
The HCI_FUNC_EN address of 8852C is different from existing chipset, so
add a chip_info::hci_func_en_addr to fill the address individually.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com >
Signed-off-by: Kalle Valo <kvalo@kernel.org >
Link: https://lore.kernel.org/r/20220307060457.56789-8-pkshih@realtek.com
2022-03-10 18:42:58 +02:00
Ping-Ke Shih
2a7e54db40
rtw89: add power_{on/off}_func
...
New chipset uses individual power_{on/off} functions to replace old power
sequences, because it is hard to represent new complicated flow in a
sequence table.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com >
Signed-off-by: Kalle Valo <kvalo@kernel.org >
Link: https://lore.kernel.org/r/20220307060457.56789-7-pkshih@realtek.com
2022-03-10 18:42:48 +02:00
Ping-Ke Shih
a8bdac1204
rtw89: read chip version depends on chip ID
...
Only 8852A may get wrong chip version if power isn't on, so it needs
additional actions to correct the version. Later chips don't need those.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com >
Signed-off-by: Kalle Valo <kvalo@kernel.org >
Link: https://lore.kernel.org/r/20220307060457.56789-6-pkshih@realtek.com
2022-03-10 18:42:37 +02:00
Ping-Ke Shih
e4133f269e
rtw89: pci: use a struct to describe all registers address related to DMA channel
...
We have had a struct rtw89_pci_ch_dma_addr to describe register address,
so use it as regular. Since the addresses should be changed dynamically
according to operating mode, I don't change it to be constant.
These changes don't affect the logic, so I put them in this separated
patch.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com >
Signed-off-by: Kalle Valo <kvalo@kernel.org >
Link: https://lore.kernel.org/r/20220307060457.56789-5-pkshih@realtek.com
2022-03-10 18:42:27 +02:00
Ping-Ke Shih
97d61bf940
rtw89: pci: add V1 of PCI channel address
...
8852CE use V1 address, and flow is totally shared with 8852AE.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com >
Signed-off-by: Kalle Valo <kvalo@kernel.org >
Link: https://lore.kernel.org/r/20220307060457.56789-4-pkshih@realtek.com
2022-03-10 18:42:16 +02:00
Ping-Ke Shih
4a9e48accf
rtw89: pci: add struct rtw89_pci_info
...
Use this struct to implement chip::ops related to PCI interface.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com >
Signed-off-by: Kalle Valo <kvalo@kernel.org >
Link: https://lore.kernel.org/r/20220307060457.56789-3-pkshih@realtek.com
2022-03-10 18:42:06 +02:00
Ping-Ke Shih
0ac80e05ea
rtw89: 8852c: add 8852c empty files
...
Add these files, and then I can add specific chip::ops or chip::info along
with the existing chip.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com >
Signed-off-by: Kalle Valo <kvalo@kernel.org >
Link: https://lore.kernel.org/r/20220307060457.56789-2-pkshih@realtek.com
2022-03-10 18:41:55 +02:00
Lorenzo Bianconi
f015725fb5
MAINTAINERS: add devicetree bindings entry for mt76
...
Specify devicetree bindings entry for mt76 driver.
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org >
Signed-off-by: Kalle Valo <kvalo@kernel.org >
Link: https://lore.kernel.org/r/8cbfeceef642ede408b4922c363953cb243cd87f.1646766851.git.lorenzo@kernel.org
2022-03-10 18:21:21 +02:00
Colin Ian King
2386f64ceb
brcmfmac: make the read-only array pktflags static const
...
Don't populate the read-only array pktflags on the stack but
instead make it static const. Also makes the object code a little
smaller.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com >
Signed-off-by: Kalle Valo <kvalo@kernel.org >
Link: https://lore.kernel.org/r/20220307223227.165963-1-colin.i.king@gmail.com
2022-03-10 18:18:58 +02:00
Lu Jicong
cb459950ed
rtlwifi: rtl8192ce: remove duplicated function '_rtl92ce_phy_set_rf_sleep'
...
This function exists in phy_common.c as '_rtl92c_phy_set_rf_sleep'.
Switch to the one in common file.
Signed-off-by: Lu Jicong <jiconglu58@gmail.com >
Acked-by: Ping-Ke Shih <pkshih@realtek.com >
Signed-off-by: Kalle Valo <kvalo@kernel.org >
Link: https://lore.kernel.org/r/20220306090846.28523-1-jiconglu58@gmail.com
2022-03-10 18:18:25 +02:00
Colin Ian King
857f837d85
bcma: gpio: remove redundant re-assignment of chip->owner
...
There are two identical assignments of chip->owner to the same value,
the second assignment is redundant and can be removed.
Cleans up cppcheck warning:
drivers/bcma/driver_gpio.c:184:15: style: Variable 'chip->owner' is
reassigned a value before the old one has been used. [redundantAssignment]
Signed-off-by: Colin Ian King <colin.i.king@gmail.com >
Signed-off-by: Kalle Valo <kvalo@kernel.org >
Link: https://lore.kernel.org/r/20220303085841.1124766-1-colin.i.king@gmail.com
2022-03-10 18:17:53 +02:00
Wang Qing
8cbc3d51b4
cw1200: use time_is_after_jiffies() instead of open coding it
...
Use the helper function time_is_{before,after}_jiffies() to improve
code readability.
Signed-off-by: Wang Qing <wangqing@vivo.com >
Signed-off-by: Kalle Valo <kvalo@kernel.org >
Link: https://lore.kernel.org/r/1646018060-61275-1-git-send-email-wangqing@vivo.com
2022-03-10 18:17:10 +02:00
Double Lo
56e4e4538e
MAINTAINERS: brcm80211: remove Infineon maintainers
...
These email addresses no longer work, so remove them from MAINTAINERS.
Signed-off-by: Double Lo <Double.Lo@infineon.com >
Signed-off-by: Kalle Valo <kvalo@kernel.org >
Link: https://lore.kernel.org/r/20220222015947.169224-1-double.lo@infineon.com
2022-03-10 18:03:57 +02:00
Christian Lamparter
83fe43abda
carl9170: devres ar->survey_info
...
driver keeps the same survey_info struct for its lifetime around.
This is used because while firmware does help by providing accounting
information of the current channel, it doesn't keep track on the
remaining channels.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com >
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com >
Link: https://lore.kernel.org/r/9b9a059b384f49587f4384ba47f01d3fb2115b22.1646250537.git.chunkeey@gmail.com
2022-03-10 17:54:41 +02:00
Christian Lamparter
a8da65f901
carl9170: replace bitmap_zalloc with devm_bitmap_zalloc
...
the mem_bitmap is kept around for the lifetime of the
driver device. This is a perfect candidate for devm.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com >
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com >
Link: https://lore.kernel.org/r/0a79221aa5477501c3def032e95ef8018973a514.1646250537.git.chunkeey@gmail.com
2022-03-10 17:54:20 +02:00
Christian Lamparter
87ddb2fc29
carl9170: devres-ing input_allocate_device
...
devres will take care of freeing the input_device once
it is no longer needed.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com >
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com >
Link: https://lore.kernel.org/r/f81a6ff3b02116c6a448c42eecb546ea5d46c108.1646250537.git.chunkeey@gmail.com
2022-03-10 17:53:59 +02:00
Christian Lamparter
23de0fa0d2
carl9170: devres-ing hwrng_register usage
...
devres will take care of freeing the hwrng once it is no longer needed.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com >
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com >
Link: https://lore.kernel.org/r/d1c16490462a9371ab3cc16a018ef5e08382a35e.1646250537.git.chunkeey@gmail.com
2022-03-10 17:53:38 +02:00
Christian Lamparter
e42fe43a21
carl9170: replace GFP_ATOMIC in ampdu_action, it can sleep
...
Since ~2010, the driver is allowed to sleep in the ampdu_action
callback thanks to:
commit 85ad181ea7 ("mac80211: allow drivers to sleep in ampdu_action")
Signed-off-by: Christian Lamparter <chunkeey@gmail.com >
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com >
Link: https://lore.kernel.org/r/0036538d0933626a1a5eb2c2c3935cf173028926.1646250537.git.chunkeey@gmail.com
2022-03-10 17:53:17 +02:00
Miaoqian Lin
9747a78d5f
ath10k: Fix error handling in ath10k_setup_msa_resources
...
The device_node pointer is returned by of_parse_phandle() with refcount
incremented. We should use of_node_put() on it when done.
This function only calls of_node_put() in the regular path.
And it will cause refcount leak in error path.
Fixes: 727fec790e ("ath10k: Setup the msa resources before qmi init")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com >
Reviewed-by: Jeff Johnson <quic_jjohnson@quicinc.com >
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com >
Link: https://lore.kernel.org/r/20220308070238.19295-1-linmq006@gmail.com
2022-03-10 17:52:18 +02:00
Lv Ruyi (CGEL ZTE)
57fe207f75
ath11k: remove unneeded flush_workqueue
...
All work currently pending will be done first by calling destroy_workqueue,
so there is no need to flush it explicitly.
Reported-by: Zeal Robot <zealci@zte.com.cn >
Signed-off-by: Lv Ruyi (CGEL ZTE) <lv.ruyi@zte.com.cn >
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com >
Link: https://lore.kernel.org/r/20220301013246.2052570-1-lv.ruyi@zte.com.cn
2022-03-10 17:50:57 +02:00
André Apitzsch
0ac121b863
ath6kl: add device ID for WLU5150-D81
...
This device with a male Mini-B USB connector is part of Panasonic TVs.
Signed-off-by: André Apitzsch <git@apitzsch.eu >
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com >
Link: https://lore.kernel.org/r/20220302211436.8746-1-git@apitzsch.eu
2022-03-10 17:48:55 +02:00
Luca Coelho
8594ab8687
iwlwifi: bump FW API to 72 for AX devices
...
Start supporting API version 72 for AX devices.
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
Link: https://lore.kernel.org/r/iwlwifi.20220304131517.8de72a8ea67f.I66681363afeb34c619379a5989090264fe6b5f2a@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
2022-03-10 09:23:29 +02:00
Matt Chen
e8e10a37c5
iwlwifi: acpi: move ppag code from mvm to fw/acpi
...
Move the ppag code to fw/acpi to keep consistency
with the other ACPI handling we do.
Signed-off-by: Matt Chen <matt.chen@intel.com >
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
Link: https://lore.kernel.org/r/iwlwifi.20220304131517.7f250088b443.I61e64c2758ad178da729ce00428287cc94430eed@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
2022-03-10 09:23:29 +02:00
Mordechay Goodstein
97374513bb
iwlwifi: dbg: check trigger data before access
...
Without trigger data set, no point in any collection.
so check that we have the info for collecting the data.
Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com >
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
Link: https://lore.kernel.org/r/iwlwifi.20220304131517.5fb34fb1f0eb.I4d7f2a4d162e80474540c5caf1194ed7d32977bc@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
2022-03-10 09:23:29 +02:00
Mordechay Goodstein
f0c163382c
iwlwifi: dbg: in sync mode don't call schedule
...
Today in the code we have two options for collecting data sync/schedule,
the two options call the same function and can lead to racing in free
resources after done.
So we call only one of two sync/schedule, and in case of sync only
call sync function without also schedule to immediately run as a side
job.
Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com >
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
Link: https://lore.kernel.org/r/iwlwifi.20220304131517.88574097ce1b.I1b42297619d638d677a2300ed9a95105c1262101@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
2022-03-10 09:23:29 +02:00
Johannes Berg
bb16ffd561
iwlwifi: use 4k queue size for Bz A-step
...
There's a hardware bug in Bz A-step that can be worked
around by using 4k queue size, so do that.
Signed-off-by: Johannes Berg <johannes.berg@intel.com >
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
Link: https://lore.kernel.org/r/iwlwifi.20220304131517.10ea0e115d05.Idfb3706133bf3b15f1f68f1145e77e89947449d1@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
2022-03-10 09:23:28 +02:00
Johannes Berg
7b9f485091
iwlwifi: pcie: fix SW error MSI-X mapping
...
We need to also update the IVAR location, since we've shifted
the bit.
Signed-off-by: Johannes Berg <johannes.berg@intel.com >
Fixes: 571836a02c ("iwlwifi: pcie: update sw error interrupt for BZ family")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
Link: https://lore.kernel.org/r/iwlwifi.20220304131517.bcfb28484e50.I921df6b5134785d7eeb0c934e4a43157c582fa79@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
2022-03-10 09:23:28 +02:00
Mukesh Sisodiya
a6d21729ff
iwlwifi: yoyo: dump IMR DRAM only for HW and FW error
...
Support debug collection of the platform IMR memory region
only for HW and FW error. This region needs to be collected
as the last region.
Signed-off-by: Mukesh Sisodiya <mukesh.sisodiya@intel.com >
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
Link: https://lore.kernel.org/r/iwlwifi.20220304131517.5b70e5ba9a41.I502f9b6179b97b163992729edd2b3c5c4ca9e311@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
2022-03-10 09:23:28 +02:00
Mukesh Sisodiya
1c4db7613f
iwlwifi: mvm: add support for IMR based on platform
...
Driver needs to enable IMR which is needed for debug on
certain platforms, so add a device config flag to set it.
Signed-off-by: Mukesh Sisodiya <mukesh.sisodiya@intel.com >
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
Link: https://lore.kernel.org/r/iwlwifi.20220304131517.0b96b2760503.I08bc741c8c497a2edbe4784cdab6abd8d04c62f3@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
2022-03-10 09:23:27 +02:00
Mukesh Sisodiya
5053a45110
iwlwifi: yoyo: disable IMR DRAM region if IMR is disabled
...
Disable IMR region if it is enabled in the TLVs,
but disabled at runtime by the FW.
Signed-off-by: Mukesh Sisodiya <mukesh.sisodiya@intel.com >
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
Link: https://lore.kernel.org/r/iwlwifi.20220304131517.2a696656a161.I99705472a8838121ffaca72977015dc2069549b9@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
2022-03-10 09:23:27 +02:00
Johannes Berg
8b3d2c4882
iwlwifi: mvm: remove cipher scheme support
...
There are no shipping firmware versions with this, and there
will also not be in the future, so remove the support.
Signed-off-by: Johannes Berg <johannes.berg@intel.com >
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
Link: https://lore.kernel.org/r/iwlwifi.20220304131517.8b3c8b4adf41.Ib3ddb6b250ea2dd72b4ecc88bdd5cffb86af1dcc@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
2022-03-10 09:23:27 +02:00
Ayala Barazani
b49c2b252b
iwlwifi: Configure FW debug preset via module param.
...
The module param "enable_ini" is currently used to be enable/disable ini.
Add the option to configure the FW debug preset via this module param,
by change it type from boolean to an integer.
Signed-off-by: Ayala Barazani <ayala.barazani@intel.com >
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
Link: https://lore.kernel.org/r/iwlwifi.20220304131517.4929e4b14956.I1bdffa4c37d4ee349aa0001978b716b96e38b090@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
2022-03-10 09:23:27 +02:00
Ayala Barazani
b0aa02b3de
iwlwifi: mvm: add a flag to reduce power command.
...
Add a flags bitfield in REDUCED_TX_POWER_CMD, and
send it as is to FW.
Signed-off-by: Ayala Barazani <ayala.barazani@intel.com >
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
Link: https://lore.kernel.org/r/iwlwifi.20220304131517.55c2f014f5ee.Iceb632f620de959800f979e212f0dc20240f9d38@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
2022-03-10 09:23:26 +02:00
Luca Coelho
8061effc78
iwlwifi: bump FW API to 71 for AX devices
...
Start supporting API version 71 for AX devices.
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
Link: https://lore.kernel.org/r/iwlwifi.20220304131517.d0898482506f.I2de2f9140c23f39a837f68199bbaf15a20f26abb@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com >
2022-03-10 09:23:26 +02:00
Colin Ian King
44d445c023
ath9k: make array voice_priority static const
...
Don't populate the read-only array voice_priority on the stack but
instead make it static const. Also makes the object code a little
smaller.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com >
Reviewed-by: Jeff Johnson <quic_jjohnson@quicinc.com >
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk >
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com >
Link: https://lore.kernel.org/r/20220222121749.87513-1-colin.i.king@gmail.com
2022-03-09 17:09:07 +02:00
Gustavo A. R. Silva
0dff6f05a9
ath6kl: wmi: Replace one-element array with flexible-array member in struct wmi_aplist_event
...
Replace one-element array with flexible-array member in struct
wmi_aplist_event.
Also, make use of the struct_size() helper and remove unneeded variable
ap_info_entry_size.
This issue was found with the help of Coccinelle and audited and fixed,
manually.
Link: https://www.kernel.org/doc/html/v5.16/process/deprecated.html#zero-length-and-one-element-arrays
Link: https://github.com/KSPP/linux/issues/79
Reviewed-by: Jeff Johnson <quic_jjohnson@quicinc.com >
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org >
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com >
Link: https://lore.kernel.org/r/1b7889828f23763c034c1558cbab9c8e2066053e.1645736204.git.gustavoars@kernel.org
2022-03-09 17:07:44 +02:00
Gustavo A. R. Silva
5140df50e6
ath6kl: wmi: Replace one-element array with flexible-array member in struct wmi_disconnect_event
...
Replace one-element array with flexible-array member in struct
wmi_disconnect_event.
This issue was found with the help of Coccinelle and audited and fixed,
manually.
Link: https://www.kernel.org/doc/html/v5.16/process/deprecated.html#zero-length-and-one-element-arrays
Link: https://github.com/KSPP/linux/issues/79
Reviewed-by: Jeff Johnson <quic_jjohnson@quicinc.com >
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org >
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com >
Link: https://lore.kernel.org/r/e9957dc53ae48c2f39ae57b0157a67d844b5bc20.1645736204.git.gustavoars@kernel.org
2022-03-09 17:07:23 +02:00