Commit Graph

296 Commits

Author SHA1 Message Date
Pascal Brochart
8668e7cfbd
Avoid field-overflowing memcpy() (#333) 2024-01-20 13:29:00 +01:00
Norbert Brondeau
94d6dfbe9d
Fix Build with Kernel 6.7 (#331)
* Fix Build with Kernel 6.7

* Update ioctl_cfg80211.c

...
2024-01-20 13:10:15 +01:00
Carlos Garcés
bca1d7eb80
Fix GLIBC_2.38 requirement for CI (#335) 2024-01-20 12:57:34 +01:00
Dmitry Geurkov
f2fc8af7ab
fix netif_napi_add Linux 6.1/6.3 execution issue (#321)
* fix netif_napi_add Linux 6.1/6.3 compile issue
2023-06-13 14:58:04 +02:00
Carlos Garcés
528ae31705
Merge pull request #315 from CGarces/kernel.6.3
Fix kernel 6.3
2023-03-13 18:12:21 +01:00
Carlos Garcés
94841bf289 Fix kernel 6.3
wifi: cfg80211: include puncturing bitmap in channel switch events
see b345f0637c
2023-03-13 17:07:40 +00:00
Carlos Garcés
9557ed2796
Merge pull request #311 from phpony/patch-1
Headers and kernel version match
2023-02-18 11:51:35 +01:00
Volkov Maksim
8e61537362
Headers and kernel version match
Small but useful note about headers and kernel version match
2023-02-17 17:49:50 +03:00
Carlos Garcés
aeed529c77
Merge pull request #305 from CGarces/fix_regresion
__nat25_add_pppoe_tag: fix regresion from #298
2022-12-25 20:29:34 +01:00
Carlos Garcés
d6e2af011d __nat25_add_pppoe_tag: fix regresion from #298 2022-12-25 19:13:28 +00:00
Carlos Garcés
f51fb0eaa8
Merge pull request #303 from edigaryev/fix-null-pointer-dereference
cfg80211_rtw_scan: fix NULL pointer dereference in Wi-Fi Direct logic
2022-12-25 20:08:26 +01:00
Nikolay Edigaryev
0043022f0c cfg80211_rtw_scan: fix NULL pointer dereference in Wi-Fi Direct logic 2022-12-09 12:03:36 +04:00
Konstantin Lebedev
a4a3f52912
fix: Waddress (#298)
* fix: Waddress
2022-11-30 11:38:53 +01:00
Carlos Garcés
f49a6c8ada
Merge pull request #296 from pterjan/realtek-4.4.x
Fix mistakes from 355a2df
2022-11-17 20:32:02 +01:00
Pascal Terjan
58b5ea9b36 Fix mistakes from 355a2df
This makes the driver work again for me
2022-11-16 11:56:52 +00:00
Carlos Garcés
23e06000d8
Merge pull request #293 from kylefmohr/realtek-4.4.x
Remove "$ " from code snippets for easier copy + pasting
2022-11-05 13:13:46 +01:00
Kyle Mohr
a79c959a11
Restore a couple of mistakenly deleted semicolons 2022-11-04 13:04:50 -05:00
Kyle Mohr
87f364be1c
Make commands copy+pastable 2022-11-04 13:02:15 -05:00
Carlos Garcés
982f7907c4
Merge pull request #291 from CGarces/update_beacon_fix
Fix update_beacon calls
2022-10-31 21:40:54 +01:00
Carlos Garcés
8051c5f3b3 Fix update_beacon calls
Error introduced at 3555bdb258
Also clean up validate_recv_ctrl_frame
Link: 797afdf248
Link aaa0bc19fa
2022-10-31 16:45:45 +00:00
Carlos Garcés
2181717490
Merge pull request #290 from CGarces/kernel_6.1
Fix kernel 6.1 compilation
2022-10-26 10:07:11 +02:00
Carlos Garcés
563780d2eb Fix kernel 6.1 compilation
wifi: cfg80211: Add link_id parameter to various key operations for MLO
wifi: cfg80211: Add link_id to cfg80211_ch_switch_started_notify()
net: drop the weight argument from netif_napi_add
random: convert get_random_int/long into get_random_u32/u64

Link: https://lore.kernel.org/r/20220722131143.3438042-1-quic_vjakkam@quicinc.com
Link: https://lore.kernel.org/r/20220722131143.3438042-2-quic_vjakkam@quicinc.com
Link: https://lore.kernel.org/r/20220730052643.1959111-4-quic_vjakkam@quicinc.com
Link: https://lore.kernel.org/r/20220927132753.750069-1-kuba@kernel.org

Link: e7a7b84e33
Link: de492c83ca
Link: c440408cf6
2022-10-25 19:15:54 +00:00
Carlos Garcés
8c722d1b95 New kernels needs GCC 12 2022-10-25 19:15:45 +00:00
Carlos Garcés
e39c4e7a66
Merge pull request #283 from CGarces/kernel_6
Fix build matrix for 5.15
2022-08-25 16:53:09 +02:00
Carlos Garcés
4dc937cb39 kernels 5.15 also need GCC 11.2
Fix error: unrecognized command-line option ‘-mharden-sls=all’
2022-08-21 11:28:43 +00:00
Carlos Garcés
28ec0cbf73 Merge branch 'igorpecovnik-realtek-4.4.x' into realtek-4.4.x 2022-08-21 11:13:12 +00:00
Igor Pecovnik
ec5c2446db Add support for Linux 5.19.2 and 6.0 2022-08-21 11:11:38 +00:00
Carlos Garcés
6ba1f32096
Merge pull request #272 from CGarces/fix_eth_hw_addr_set
eth_hw_addr_set: use memcpy
2022-05-22 13:12:51 +02:00
Carlos Garcés
b9cfa37026 eth_hw_addr_set: use memcpy
eth_hw_addr_set() replaces memcpy() calls so we can't use ether_addr_copy()
which assumes both arguments are 2-bytes aligned.

3f6cffb860
adeef3e321
2022-05-15 21:32:00 +00:00
Carlos Garcés
eeac05662a
Merge pull request #271 from CGarces/fix_ci
GCC 11.2 needed for kernel>=5.17. Updated Ubuntu
2022-05-14 15:26:32 +02:00
Carlos Garcés
f6ec28e32b GCC 11.2 needed for kernel>=5.17. Updated Ubuntu
Kernel packages are downloaded first to allow fail fast.
Removed workaround for libc6 (allready on 22.04 LTS).
Add additional code to skip executions for kernels >= 5.17 and GCC < 11.2.
2022-05-14 15:19:26 +02:00
Carlos Garcés
5484fbd00c
Merge pull request #267 from CGarces/kernel_518
Fix 5.18 compilation
2022-04-06 15:18:51 +02:00
Carlos Garcés
93e7ee5103 Remove unsused mm_segment_t structures 2022-04-06 14:14:57 +02:00
Carlos Garcés
047a8aefc4 Fix 5.18 compilation errors 2022-04-06 12:56:25 +02:00
Carlos Garcés
352330be93 Simplify 5.17 patch 2022-04-06 12:33:58 +02:00
Carlos Garcés
e0f967cea1
Merge pull request #265 from CGarces/kernel_517
Cleanup memcpy warnings from 5.17
2022-03-13 21:19:20 +01:00
Carlos Garcés
0f1952813c Cleanup memcpy warnings
Introduce eth_hw_addr_set from 5.15
Port 48eab831ae
Port 6ed178cb23
2022-03-13 13:26:14 +01:00
Carlos Garcés
73663d2bf6
Merge pull request #263 from heitbaum/517
rtl8192eu: Fix code for kernel 5.17 API change
2022-03-13 12:17:17 +01:00
heitbaum
5fb30bc593 rtl8192eu: Fix code for kernel 5.17 API change
Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
2022-02-10 07:19:24 +00:00
Carlos Garcés
744bbe5297
Merge pull request #253 from CGarces/staging_cherrypick5
Adapted commits from staging area (5)
2021-10-23 14:09:02 +02:00
Carlos Garces
97bac22d5b Remove duplicate names for rtw_read[n] and rtw_write[n]
rtw_read[n]() is redefined as _rtw_read[n]() and PlatformEFIORead[n]Byte
Same for rtw_write[n]() furntions

Link: https://lore.kernel.org/r/9880c86c2aad7d95a714d8b03b28b83634f98c1e.1621361919.git-series.hello@bryanbrattlof.com
Link: https://lore.kernel.org/r/11458342572f21d9df58b3969ad1f16fdff157f4.1621361919.git-series.hello@bryanbrattlof.com
Link: https://lore.kernel.org/r/15956707341f76de683245c392063b8121a805ea.1621361919.git-series.hello@bryanbrattlof.com
Link: https://lore.kernel.org/r/35ffc9cd5af7009b317361033a6ca5263307d61a.1621361919.git-series.hello@bryanbrattlof.com
Link: https://lore.kernel.org/r/7d53fb295f67f01c72640045afb88150391bce35.1621361919.git-series.hello@bryanbrattlof.com
Link: https://lore.kernel.org/r/43917aee34e85139e613578cf6f14938211c8835.1621361919.git-series.hello@bryanbrattlof.com

Port of
51d4aa6d6bf35d85d318831df60a34bad27cdb9e
8ff74e4307b42302c89023faf8fd37dbde4c4666
16b1b3c8221a40bf899dfeebdb3d5245ecb65515
7f06caf9a40bb3c08fe86c8355ace25b7ce69ba9
1c42d72e4747fb546eba53821ae56ecf827202a7
4d6bfc6f62705ec5baee9c572d4ca03bc9e36c00
2021-10-23 11:09:24 +02:00
Carlos Garcés
99c0f78547 replace while with shorter for loop
Simplify rtw_get_rateset_len() by replacing the while loop
with a shorter for loop. Also replace tabs with spaces in
the definition line.
2021-10-23 10:33:02 +02:00
Carlos Garcés
879f617f82 Remove extern as it is defined but never used
RTW_WPA_VERSION is removed as is declared and defined but
never used in the code.
Port 2c4b2980ae16a2d8d35f126ddb9fbcba809e2612
2021-10-23 10:33:02 +02:00
Carlos Garcés
04b4fa6f82 use the proper WLAN_OUI_TYPE_MICROSOFT_* definitions.
port 42282f4147e2bc5b89d6a050244a7c5475613d83
2021-10-23 10:32:35 +02:00
Carlos Garces
7a0d67040a remove ELEMENT_ID enum
Values are replaced with the equivalent ones from enum ieee80211_eid linux/ieee80211.h

Link: https://lore.kernel.org/r/20201208040733.379197-22-ross.schm.dev@gmail.com
2021-10-22 16:48:30 +02:00
Carlos Garces
34f947ef16 remove typedefs in ieee80211.h
This commit fixes checkpatch.pl warnings:

also port the folowing commits
5ef6c5db04ffff21006099961c3c8acc5727b2c8
74941703accd4a94e7a74c31050d7985216b7034
7d0b4f3c9300f43b65125115f5728e1a5d39e270
2021-10-22 16:47:43 +02:00
Carlos Garces
86199d0791 use native wireless IE codes from linux/ieee80211.h
IE code definitions have been replaced with native ones
to avoid code duplication.

The unobvious substitutions are:
_WPA_IE_ID_ -> WLAN_EID_VENDOR_SPECIFIC;
_WPA2_IE_ID_ -> WLAN_EID_RSN.

Link: https://lore.kernel.org/r/20201011105050.5896-1-insafonov@gmail.com
2021-10-22 16:47:14 +02:00
Carlos Garces
3f3d3a0986 remove unused macros in include/wifi.h
remove declarations of unused macros in include/wifi.h

Link: https://lore.kernel.org/r/1192085c7e891f801751f3adb7884083a2999483.1616854134.git.fabioaiuto83@gmail.com
2021-10-22 16:47:14 +02:00
Carlos Garces
81a5bb2aa2 Replace custom Information Element IDs
Use enum ieee80211_eid from linux/ieee80211.h
Fix 3555bdb258
2021-10-22 16:47:14 +02:00
Carlos Garces
4799326c6f switch to common ieee80211 headers
This patch switches to <linux/ieee80211.h> and <net/cfg80211.h> and
deletes a lot of duplicate definitions plus many unused ones.

rtw_ieee80211_hdr_3addr_qos is duplicate of ieee80211_qos_hdr.
rtw_ieee80211_spectrum_mgmt_actioncode is a duplication of ieee80211_spectrum_mgmt_actioncode
rtw_ieee80211_hdr_3addr is duplicate of ieee80211_hdr_3addr.
rtw_ieee80211_hdr is duplicate of ieee80211_hdr
rtw_ieee80211s_hdr is duplicate of ieee80211s_hdr
rtw_ieee80211_rann_ie is duplicate of ieee80211_rann_ie
from include/linux/ieee80211.h.

Link: https://lore.kernel.org/r/20200906133236.556427-1-insafonov@gmail.com
Link: https://lore.kernel.org/r/20200609194848.166130-1-pterjan@google.com
Also port
5cd8396540b5f7ef7c3ac499e967dd4deb8e9930
bbfe286b07d8282f4957dee692e85b3bd60de770
d87f574d6923c546e7d0f75ce0581436376b98a6
36eb7d108e8de3097f373eb8629d8739d4fa3e74
1b9e6df5169b36b3242e2e28c39f9bbfc01863e8
d94971aa97670d400371baef5d9d5cf6dc8ea2b5
2021-10-22 16:46:01 +02:00