GitHub/LineageOS/G12/android_hardware_amlogic_kernel-modules_dhd-driver.git
7 months agofirmware: wifi: Install all files onto /vendor/firmware/wifi/
Bruno Martins [Thu, 25 Apr 2024 16:07:53 +0000 (17:07 +0100)]
firmware: wifi: Install all files onto /vendor/firmware/wifi/

BCMDHD driver has been updated in order to use Linux firmware
loading API. Move the files to a subdir within the default firmware
class path.

Change-Id: I7f757043ea1f55b7d5897921124231c135ca4782

7 months agowifi: update bcmdhd.101.10.361.x version to 34. [1/1]
lei.chen [Thu, 14 Sep 2023 06:59:55 +0000 (14:59 +0800)]
wifi: update bcmdhd.101.10.361.x version to 34. [1/1]

PD#SWPL-139664

Problem:
Connecting to web-64bits encrypted AP, connection failed

Solution:
fix it

Verify:
TL1

Change-Id: Ic8025f2e69b012de3203db7a8826c1f47979f863
Signed-off-by: lei.chen <lei.chen@amlogic.com>
7 months agowifi: fix build error
bo.li [Thu, 27 Jul 2023 07:15:03 +0000 (15:15 +0800)]
wifi: fix build error

PD#SWPL-133503

Problem:
build error

Solution:
fix build error

Verify:
local build

Change-Id: I3bf142a28633da46b2a0952ac43c64cc1f36fa12
Signed-off-by: bo.li <bo.li@amlogic.com>
7 months agowifi: update driver for 62x8 not use bcmdl tool [1/2]
jiabin.chen [Tue, 9 May 2023 05:17:21 +0000 (13:17 +0800)]
wifi: update driver for 62x8 not use bcmdl tool [1/2]

PD#SWPL-122237

Problem:
need del bcmdl and then 62x8 not work

Solution:
update driver and open CONFIG_BCMDHD_NO_POWER_OFF := y

Verify:
sc2-ah212

Change-Id: Ic3110283b0738a9c4627f3ea5172b2420959baf4
Signed-off-by: jiabin.chen <jiabin.chen@amlogic.com>
7 months agowifi: fix KASCAN err [1/1]
chengshuo.wang [Wed, 12 Apr 2023 11:18:55 +0000 (19:18 +0800)]
wifi: fix KASCAN err [1/1]

PD#SWPL-118411

Problem:
BUG: KASAN: vmalloc-out-of-bounds in dhdsdio_download_firmware

Solution:
fix KASCAN err

Verify:
t7_an400

Change-Id: I50a4895e5f727115693a4290209f3b737fb22be7
Signed-off-by: chengshuo.wang <chengshuo.wang@amlogic.com>
7 months agowifi: fix VtsHalWifiSupplicantP2pIfaceTargetTest fail [2/2]
lei.chen [Fri, 17 Mar 2023 01:48:00 +0000 (09:48 +0800)]
wifi: fix VtsHalWifiSupplicantP2pIfaceTargetTest fail [2/2]

PD#SWPL-109621

Problem:
ap6398s driver EnableMacRandomization Vts case fail

Solution:
fix it

Verify:
A311D2-AN400 trunk

Change-Id: I0956530ef17b4d16502b549543ab066716b75880
Signed-off-by: lei.chen <lei.chen@amlogic.com>
7 months agowifi: fix compilation error [1/1]
lei.chen [Fri, 17 Feb 2023 06:00:52 +0000 (14:00 +0800)]
wifi: fix compilation error [1/1]

PD#SWPL-111987

Problem:
Close CONFIG_PRINTK cause compilation failure

Solution:
fix it

Verify:
C3

Change-Id: I44389b3c26d7008e20fa6945732be56cdc7dc6ac
Signed-off-by: lei.chen <lei.chen@amlogic.com>
7 months agowifi_bt: Support AP6201BM driver in buildroot [3/6]
lei.chen [Tue, 13 Dec 2022 09:13:20 +0000 (17:13 +0800)]
wifi_bt: Support AP6201BM driver in buildroot [3/6]

PD#SWPL-97158

Problem:
Need support AP6201BM

Solution:
support AP6201BM driver

Verify:
C3 AW409

Change-Id: I0bb81f4c14f202dc98054af61c0c4e54dce36c0c
Signed-off-by: lei.chen <lei.chen@amlogic.com>
7 months agowifi: update drive to load fw relative path [2/2]
jiabin.chen [Tue, 6 Dec 2022 06:10:10 +0000 (14:10 +0800)]
wifi: update drive to load fw relative path [2/2]

PD#SWPL-101570

Problem:
dhd dirve load fw path is driver write to death

Solution:
update driver firmware path is insmod specified
the path is relative path

Verify:
t7

Change-Id: I51392f3df4236342889235cb9a3153771af7a373
Signed-off-by: jiabin.chen <jiabin.chen@amlogic.com>
7 months agowifi: update bcm wifi driver. [1/1]
libo [Thu, 17 Nov 2022 10:04:37 +0000 (18:04 +0800)]
wifi: update bcm wifi driver. [1/1]

PD#SWPL-101693

Problem:
update bcm wifi driver

Solution:
update bcm wifi driver

Verify:
s905x4

Change-Id: Ibdcdb475e1b17a566f6db0707ae83d22c0232b9e
Signed-off-by: libo <bo.li@amlogic.com>
7 months agowifi: dhd load fw change to request firmware [2/3]
jiabin.chen [Sun, 11 Sep 2022 03:26:33 +0000 (11:26 +0800)]
wifi: dhd load fw change to request firmware [2/3]

PD#SWPL-95664

Problem:
dhd 515 driver is not ok

Solution:
update driver and change request firmware

Verify:
t7

Change-Id: I05f7a7856e4b0832ebcc6bff0b4523eb49d124e1
Signed-off-by: jiabin.chen <jiabin.chen@amlogic.com>
7 months agowifi: no need to trigger WiFi disconnection event repeatedly [1/1]
libo [Wed, 6 Jul 2022 03:06:47 +0000 (11:06 +0800)]
wifi: no need to trigger WiFi disconnection event repeatedly [1/1]

PD#SWPL-87270

Problem:
Trigger WiFi disconnection event repeatedly

Solution:
When the upper layer triggers the disconnection of WiFi,
do not send WiFi disconnection to the upper layer.

Verify:
ohm

Signed-off-by: libo <bo.li@amlogic.com>
Change-Id: I6f1a46036c34d725fc2efaab5744114918129a11

7 months agobcmdhd: Do not override CONFIG_BCMDHD_ANDROID_VERSION
Bruno Martins [Thu, 25 Apr 2024 00:31:25 +0000 (01:31 +0100)]
bcmdhd: Do not override CONFIG_BCMDHD_ANDROID_VERSION

Change-Id: I8850db06ceec6cd8261620608edbf1a99a994bd0

7 months agobcmsdh: correctly free resources
Peter Vicman [Sun, 24 Oct 2021 13:05:17 +0000 (15:05 +0200)]
bcmsdh: correctly free resources

when wifi adapter is disabled and immediately enabled back kernel bug happens

[36116.055584@2] Kernel BUG at ffffff800920cae8 [verbose debug info unavailable]
[36116.055587@2] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
[36116.055620@2] Modules linked in: 8021q fuse ir_rc6_decoder ir_nec_decoder ir_lirc_codec lirc_dev meson_ir rc_core hci_uart btqca btbcm btintel bluetooth dhd(O) joydev mali_kbase(O) xpad wireguard ip6_udp_tunnel udp_tunnel overlay wifi_dummy(O) amvdec_vp9(O) amvdec_vc1(O) amvdec_real(O) amvdec_ports(O) v4l2_common videobuf2_dma_contig videobuf2_memops v4l2_mem2mem videobuf2_v4l2 videobuf2_core amvdec_mpeg4(O) amvdec_mpeg12(O) amvdec_mmpeg4(O) amvdec_mmpeg12(O) amvdec_mmjpeg(O) amvdec_mjpeg(O) amvdec_mh264(O) amvdec_h265(O) amvdec_h264mvc(O) amvdec_h264(O) amvdec_mavs(O) amvdec_avs(O) amvdec_avs2(O) stream_input(O) decoder_common(O) firmware(O) media_clock(O) amlvideodri videobuf_res videobuf_core videodev media fbcon bitblit softcursor font
[36116.120953@2] CPU: 2 PID: 4132 Comm: connmand Tainted: G           O    4.9.113 #1
[36116.128490@2] Hardware name: Beelink (DT)
[36116.132477@2] task: ffffffc0cc7a1c00 task.stack: ffffffc0c4524000
[36116.138549@2] PC is at kfree+0x260/0x2b8
[36116.142623@2] LR is at dhd_conf_free_chip_nv_path_list+0x38/0xa8 [dhd]
......................

Change-Id: I860e44805a7ad90720957676076c9a13d5014e96

7 months agobcmdhd: if driver is not yet initialized, wait and retry
kszaq [Thu, 5 Oct 2017 20:04:11 +0000 (22:04 +0200)]
bcmdhd: if driver is not yet initialized, wait and retry

Change-Id: Ic2970c5f34d2b3e351919db206c7beac31731b08

7 months agowifi: optimize the output level of some prints [1/1]
libo [Mon, 6 Dec 2021 07:27:18 +0000 (15:27 +0800)]
wifi: optimize the output level of some prints [1/1]

PD#SWPL-65784

Problem:
optimize the code

Solution:
optimize the code

Verify:
local

Signed-off-by: libo <bo.li@amlogic.com>
Change-Id: Ib26506471955017e589228e72b3dee032b57b9ba

7 months agowifi: optimize the code [1/1]
libo [Thu, 2 Dec 2021 03:14:35 +0000 (11:14 +0800)]
wifi: optimize the code [1/1]

PD#SWPL-65570

Problem:
optimize the code

Solution:
optimize the code

Verify:
local

Signed-off-by: libo <bo.li@amlogic.com>
Change-Id: I4de5b003e61702b77dde1cbed8e044b9454e921a

7 months agowifi: after suspend wifi can`t open [1/1]
jiabin.chen [Mon, 23 Aug 2021 06:30:17 +0000 (14:30 +0800)]
wifi: after suspend wifi can`t open [1/1]

PD#OTT-20600

Problem:
close wifi and suspend system then can`t open wifi again

Solution:
fiter PCIE download FW flag

Verify:
ohm

Change-Id: I00863d5505c883555cf6ccbb0bb597a5bdde0d1c
Signed-off-by: jiabin.chen <jiabin.chen@amlogic.com>
9 months agowifi_bt: update firmware of AP6256
Goenjoy Huang [Fri, 14 Oct 2022 02:20:52 +0000 (10:20 +0800)]
wifi_bt: update firmware of AP6256

Change-Id: I5952ec1d8fb71d7290295d767c10ed588473f39b
Signed-off-by: Goenjoy Huang <goenjoy@khadas.com>
13 months agobcmdhd: Add void argument to old-style zero prototype functions
Bruno Martins [Fri, 20 Oct 2023 22:55:45 +0000 (23:55 +0100)]
bcmdhd: Add void argument to old-style zero prototype functions

Make clang-17 happy just by adding the `void` argument.

Change-Id: I15619a55c479d392adf7da344bb3d09a1db0e8ec

13 months agodhd-driver: Strip modules using llvm-strip
Bruno Martins [Fri, 20 Oct 2023 23:16:58 +0000 (00:16 +0100)]
dhd-driver: Strip modules using llvm-strip

With this, the GCC dependency is gone for good.

Change-Id: I61acca2e1fb91353154567b9bff340cf5ca99119

13 months agobcmdhd: Ignore unused-but-set-variable compilation errors
Bruno Martins [Fri, 20 Oct 2023 14:15:33 +0000 (15:15 +0100)]
bcmdhd: Ignore unused-but-set-variable compilation errors

Change-Id: I7aad8530bad769b0283981ccb94e24c30740b750

20 months agofixup! amlogic: Compile kernel modules with clang
Nolen Johnson [Sun, 26 Mar 2023 23:07:26 +0000 (19:07 -0400)]
fixup! amlogic: Compile kernel modules with clang

* -Wno-maybe-uninitialized isn't a thing on clang, just
  use -Wno-uninitialized.

Change-Id: If28347a26de835d4e7f2f416e44762aa8156af31

21 months agoamlogic: Compile kernel modules with clang
Christian Hoffmann [Sat, 11 Feb 2023 10:55:00 +0000 (11:55 +0100)]
amlogic: Compile kernel modules with clang

Change-Id: Iedd2f240f01e25d240aeb41e7a8694c2ee29142b

23 months agodhd: Uprev to .361
Nolen Johnson [Fri, 2 Dec 2022 23:03:52 +0000 (18:03 -0500)]
dhd: Uprev to .361

* Reflects deadpool TTT1.220909.001.B7-9305992 release.

Change-Id: I2e63ec9a1acfdd783b8d954f5b85b02c89580861

23 months agodhd: Update firmware to TTT1.220909.001.B7-9305992
Nolen Johnson [Fri, 2 Dec 2022 23:05:38 +0000 (18:05 -0500)]
dhd: Update firmware to TTT1.220909.001.B7-9305992

Change-Id: I7b28f135e21e3c2781905854cd9eccd2b1e65440

23 months agodhd: firmware: Update to STT1.211025.001.Z4-7928920
Nolen Johnson [Mon, 20 Dec 2021 21:44:51 +0000 (16:44 -0500)]
dhd: firmware: Update to STT1.211025.001.Z4-7928920

Change-Id: I718a9265c06753faf59d69849b0a7a7ba88ba3f1

2 years agodhd: import wifi and bluetooth firmware
Jan Altensen [Wed, 15 Sep 2021 10:05:39 +0000 (12:05 +0200)]
dhd: import wifi and bluetooth firmware

Change-Id: I0132b1f9bd92ed997f1a4654237f39ce150e23c4

2 years agodhd: rename 100.10.315.x to 100.10.545.x
Jan Altensen [Tue, 14 Sep 2021 18:39:30 +0000 (20:39 +0200)]
dhd: rename 100.10.315.x to 100.10.545.x

 * in include/epivers.h its clearly version 100.10.545.x and history shows it got updated

Change-Id: Ie26b14f16d1caa92e5a65c8d69e3ce7f9f613e15

2 years agodhd: make driver version configurable
Jan Altensen [Tue, 3 Aug 2021 09:39:43 +0000 (11:39 +0200)]
dhd: make driver version configurable

Change-Id: Ib7a9932601fdd1aba4fc1eef42ba6247203372ee

2 years agoAdd makefile to build bcmdhd.101.10.240.x inline
Aaron Kling [Thu, 24 Jun 2021 17:38:00 +0000 (12:38 -0500)]
Add makefile to build bcmdhd.101.10.240.x inline

Change-Id: Ic93a8a22d9455c0235601baa122afbbbe9bae4eb

2 years agowifi: update ap6356 driver to bcmdhd.101.10.361.x [1/1]
libo [Thu, 2 Jun 2022 12:42:03 +0000 (20:42 +0800)]
wifi: update ap6356 driver to bcmdhd.101.10.361.x [1/1]

PD#SWPL-81801
BUG=232494797

Problem:
update ap6356 driver to bcmdhd.101.10.361.x

Solution:
update ap6356 driver to bcmdhd.101.10.361.x

Verify:
adt3

Signed-off-by: libo <bo.li@amlogic.com>
Change-Id: I61f0851c85fc9bd8ae5802d2811cfb0a5d4bce05

2 years agoFix private modules installing path
Hongguang [Tue, 24 May 2022 02:17:51 +0000 (19:17 -0700)]
Fix private modules installing path

Bug: 220644706
Test: make and find the private modules in dist.
Change-Id: I83004e21f5d2a4f80256f2c660b4dd15fcaa6dc6

2 years agoPrivate modules should be installed into private
Hongguang [Mon, 23 May 2022 23:15:47 +0000 (16:15 -0700)]
Private modules should be installed into private

Bug: 220644706
Test: make and find the private modules in dist.
Change-Id: I920715ccdb4d39c11a9ca74e2d97096babbc7ffe

3 years agoadt3-S dhd_driver source code [1/1]
Liang Ji [Tue, 15 Jun 2021 04:44:21 +0000 (12:44 +0800)]
adt3-S dhd_driver source code [1/1]

internal tot CL:
wifi: bcm4356 wifi not support WPA3 [1/1]

SWPL-39141

Problem:
bcm4356 not support WPA3

Solution:
update driver bcm4356 not support sae feature

Verify:
franklin

Change-Id(I6633f4f952c56c6057762f08a7de904ab35f37ed)
Signed-off-by: rongjun.chen <rongjun.chen@amlogic.com>
Signed-off-by: Liang Ji <liang.ji@amlogic.com>
Change-Id: I5a81519a20d33403a4ea107ce6b260c32cd3a8b6

5 years agoInitial empty repository
Inna Palant [Fri, 21 Jun 2019 20:49:59 +0000 (13:49 -0700)]
Initial empty repository