GitHub/LineageOS/G12/android_hardware_amlogic_kernel-modules_dhd-driver.git
4 months agodhd-driver: Strip modules_install rules lineage-20
Bruno Martins [Sun, 7 Jul 2024 21:24:59 +0000 (22:24 +0100)]
dhd-driver: Strip modules_install rules

There's no point in doing this.

Change-Id: I01d7963f3dfd8933c240e7c6b00c3c1e22d402f7

4 months agofirmware: Update paths and delete main makefile
Bruno Martins [Sun, 7 Jul 2024 17:26:36 +0000 (18:26 +0100)]
firmware: Update paths and delete main makefile

Change-Id: I7dff5c25ca870c9441cd8eada46dcf51d60c5776

4 months agodhd-driver: Remove Android makefile with old-style build rules
Bruno Martins [Sat, 16 Dec 2023 22:51:32 +0000 (22:51 +0000)]
dhd-driver: Remove Android makefile with old-style build rules

These build rules are no longer needed, devices now build the module
as a real external kernel module.

Change-Id: I11546f3dbfe40e8cbcf0653b0a7274a81a7ad328

4 months agodhd-driver: Strip modules_install rules lineage-21 lineage-22.0
Bruno Martins [Sun, 7 Jul 2024 21:24:59 +0000 (22:24 +0100)]
dhd-driver: Strip modules_install rules

There's no point in doing this.

Change-Id: I01d7963f3dfd8933c240e7c6b00c3c1e22d402f7

4 months agofirmware: Update paths and delete main makefile
Bruno Martins [Sun, 7 Jul 2024 17:26:36 +0000 (18:26 +0100)]
firmware: Update paths and delete main makefile

Change-Id: I7dff5c25ca870c9441cd8eada46dcf51d60c5776

4 months agodhd-driver: Remove Android makefile with old-style build rules
Bruno Martins [Sat, 16 Dec 2023 22:51:32 +0000 (22:51 +0000)]
dhd-driver: Remove Android makefile with old-style build rules

These build rules are no longer needed, devices now build the module
as a real external kernel module.

Change-Id: I11546f3dbfe40e8cbcf0653b0a7274a81a7ad328

5 months agosabrina_fw: Fix check
Nolen Johnson [Mon, 17 Jun 2024 02:15:48 +0000 (22:15 -0400)]
sabrina_fw: Fix check

Change-Id: Iee2063f15d32f47ca5bad448bae035cec8f3b30b
(cherry picked from commit 0a9d0aff69a3379be412ed04779d554e4038abe6)

5 months agosabrina_fw: Fix check
Nolen Johnson [Mon, 17 Jun 2024 02:15:48 +0000 (22:15 -0400)]
sabrina_fw: Fix check

Change-Id: Iee2063f15d32f47ca5bad448bae035cec8f3b30b

5 months agofixup! sabrina-fw: sabrina_prod_stable-user 12 STTL.231114.004 11218674 release-keys
Nolen Johnson [Fri, 7 Jun 2024 04:02:29 +0000 (00:02 -0400)]
fixup! sabrina-fw: sabrina_prod_stable-user 12 STTL.231114.004 11218674 release-keys

Change-Id: I25a72f923f2842f3e76bd7f355c41b63b922c57e

5 months agodhd: Don't check DHD_INFO size
Nolen Johnson [Thu, 6 Jun 2024 23:07:25 +0000 (19:07 -0400)]
dhd: Don't check DHD_INFO size

* sabrina's firmware puts this over the limit,
  and in reality, this chunk of code is only important
  if the value is insanely higher than expected, in this
  case it is 46 higher lol.

* deadpool/wade are still fine after this.

Change-Id: I76c9ad7f6ce7a87a3446ea6fd603f857bb848dfb
(cherry picked from commit b28eb22a7c3f1575618e31a5656d05d5f1ef69d3)

5 months agodhd: Don't check DHD_INFO size
Nolen Johnson [Thu, 6 Jun 2024 23:07:25 +0000 (19:07 -0400)]
dhd: Don't check DHD_INFO size

* sabrina's firmware puts this over the limit,
  and in reality, this chunk of code is only important
  if the value is insanely higher than expected, in this
  case it is 46 higher lol.

* deadpool/wade are still fine after this.

Change-Id: I76c9ad7f6ce7a87a3446ea6fd603f857bb848dfb

5 months agosabrina-fw: sabrina_prod_stable-user 12 STTL.231114.004 11218674 release-keys
Nolen Johnson [Fri, 2 Feb 2024 06:58:22 +0000 (01:58 -0500)]
sabrina-fw: sabrina_prod_stable-user 12 STTL.231114.004 11218674 release-keys

Change-Id: I3c2fd9be32ec8c266559a5883b57251fd005db9b

6 months agobcmdhd.101.10.361.x: Align link layer stats with AOSP HAL code
Tim Zimmermann [Sun, 3 Mar 2024 12:29:22 +0000 (13:29 +0100)]
bcmdhd.101.10.361.x: Align link layer stats with AOSP HAL code

Fixes:
02-25 07:14:06.397  6516  6707 E WifiStaIfaceAidlImpl: getLinkLayerStats failed with service-specific exception: android.os.ServiceSpecificException:  (code 9)

Change-Id: I451941bbdac98c1a208bce9ee54d1760259f65c9

6 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

6 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

6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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

6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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>
6 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

6 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

6 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

6 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>
8 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>
8 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>
9 months agosabrina-fw: sabrina_prod_stable-user 12 STTL.231114.004 11218674 release-keys
Nolen Johnson [Fri, 2 Feb 2024 06:58:22 +0000 (01:58 -0500)]
sabrina-fw: sabrina_prod_stable-user 12 STTL.231114.004 11218674 release-keys

Change-Id: I3c2fd9be32ec8c266559a5883b57251fd005db9b

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

19 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

23 months 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

23 months 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

23 months 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

23 months 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

2 years agofirmware: Update to adt3-user-12-STT1.211025.001.Z4-7928920-release-keys lineage-19.1 staging/lineage-20
Nolen Johnson [Mon, 20 Dec 2021 21:44:51 +0000 (16:44 -0500)]
firmware: Update to adt3-user-12-STT1.211025.001.Z4-7928920-release-keys

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

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

Change-Id: I0132b1f9bd92ed997f1a4654237f39ce150e23c4

3 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

3 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

3 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

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

4 years agowifi: add feature to support android r [1/2]
rongjun.chen [Tue, 11 Aug 2020 12:22:07 +0000 (20:22 +0800)]
wifi: add feature to support android r [1/2]

SWPL-29444

Problem:
1.VtsHalWifiV1_3TargetTest test fail

Solution:
1. add new feature to fix vts test fail issue

Verify:
deadpoo

Change-Id: I726e27a50b55adbd6de391234c2befd252481212

4 years agowifi: update bcm driver to fix testWifiUsabilityStatsEntry fail [2/2]
rongjun.chen [Tue, 11 Aug 2020 01:38:13 +0000 (09:38 +0800)]
wifi: update bcm driver to fix testWifiUsabilityStatsEntry fail [2/2]

PD#SWPL-29961

Problem:
1.cts testWifiUsabilityStatsEntry test fail

Solution:
1. update driver to push some data to fix cts test fail issue

Verify:
deadpool

Change-Id: I75ed1f74a9f5088f2c5e68ece06f7378d425247e

4 years agowifi: Wifi Setting for deadpool project only
Liang Ji [Wed, 15 Jul 2020 12:54:44 +0000 (20:54 +0800)]
wifi: Wifi Setting for deadpool project only

SWPL-8244

Problem:
Add Wi-fi Setting
Memory_Leak & WifiChannelbyunifykey

Solutioni:
Pre-initialize Wi-Fi settings for cspec.country_abbrev, cspec.ccode
Add unifykeys wifi_disable_5g_band for setting disable_5g_band.
Fix memory lead.
Check the value of unifykes "usid" to determine what values should
be used to pre-initialize cspec
Add More country for wifi channel

Verity:
deadpool

Signed-off-by: Liang Ji <liang.ji@amlogic.com>
Change-Id: If6c1a5e35d4033daaf49c55141832199b3135e8e

4 years agowifi: update bcm driver to 101.10.240 to support android r [1/2]
Liang Ji [Wed, 15 Jul 2020 12:34:27 +0000 (20:34 +0800)]
wifi: update bcm driver to 101.10.240 to support android r [1/2]

PD#SWPL-28939

Problem:
1.sta setMac let connect key fail
2.wlan1 setMac error let softap open fail

Solution:
1. update to new driver to support MAC Randomization feature

Verify:
deadpool

Signed-off-by: Liang Ji <liang.ji@amlogic.com>
Change-Id: I42b5b31f84b35cbe5261bec03a24740d7113769e

4 years agowifi: Wifi Setting for deadpool project only
Liang Ji [Wed, 10 Apr 2019 02:45:08 +0000 (10:45 +0800)]
wifi: Wifi Setting for deadpool project only

PD#SWPL-8244

Problem:
Add Wi-fi Setting
Memory_Leak & WifiChannelbyunifykey

Solutioni:
Pre-initialize Wi-Fi settings for cspec.country_abbrev, cspec.ccode
Add unifykeys wifi_disable_5g_band for setting disable_5g_band.
Fix memory lead.
Check the value of unifykes "usid" to determine what values should
be used to pre-initialize cspec
Add More country for wifi channel

Verity:
deadpool

Change-Id: I12f764507c8281eb2b80ee2211a7e142d5075714
Signed-off-by: Liang Ji <liang.ji@amlogic.com>
4 years agoupdate dhd to 100.10.545.11 [1/1]
Liang Ji [Tue, 30 Jun 2020 13:07:22 +0000 (21:07 +0800)]
update dhd to 100.10.545.11 [1/1]

PD#SWPL-28928

Problem:
cmd:
 iw --debug phy0 interface add test type managed
failed on adt3

Solution:
update dhd
Driver: 100.10.545.11 (r826445-20200610-1)

Verify:
deadpool + R

Signed-off-by: Liang Ji <liang.ji@amlogic.com>
Change-Id: I0073b34edacdb0fe69a6a0517b9be7e782afa572

4 years agokernel_build: support standalone build for 4.9 + R [4/9]
Xindong Xu [Fri, 24 Apr 2020 08:30:28 +0000 (16:30 +0800)]
kernel_build: support standalone build for 4.9 + R [4/9]

PD#SWPL-23333

Problem:
need to support standalone build for 4.9 + R

Solution:
support standalone build for 4.9 + R

Verify:
deadpool

Change-Id: I141c898ec9eb2aed097caf78ff025d5888cc4866

5 years agodhd: fix wifi driver caused selinux denied issue [1/1]
Shuide Chen [Tue, 22 Oct 2019 07:20:32 +0000 (15:20 +0800)]
dhd: fix wifi driver caused selinux denied issue [1/1]

PD#SWPL-15494

Problem:
type=1400 audit(1571727793.256:4): avc: denied { search } for comm=
"init" name="wifi" dev="mmcblk0p17" ino=153543 scontext=u:r:vendor_
init:s0 tcontext=u:object_r:wifi_data_file:s0 tclass=dir permissive=0

when insmod dhd driver, trigger avc denied

Solution:
from android O, wifi related path changed from /data/misc/wifi
to /data/vendor/misc/wifi

Verify:
Locally

Change-Id: I69255412f9b666fd66981e7adc358132abcb43f6
Signed-off-by: Shuide Chen <shuide.chen@amlogic.com>
5 years agowifi: update driver to fix vts crash issue [1/1]
Rongjun Chen [Tue, 17 Sep 2019 02:44:18 +0000 (10:44 +0800)]
wifi: update driver to fix vts crash issue [1/1]

PD#SWPL-13921

Problem:
vts test crash

Solution:
update driver to fix it

Verify:
ampere

Change-Id: I2049e3ccc950126f1b5f921ee0927029c3198070

5 years agowifi: update driver to 100.10.545.2 to support STA/AP concurrent [1/2]
Rongjun Chen [Fri, 9 Aug 2019 08:54:05 +0000 (16:54 +0800)]
wifi: update driver to 100.10.545.2 to support STA/AP concurrent [1/2]

PD#SWPL-12561

Problem:
STA/AP concurrent support

Solution:
update driver to fix it

Verify:
ampere

Change-Id: I47f18a31e4e8d1049497b252ad8ecc04c27d7a0d
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
5 years agoInitial empty repository
Inna Palant [Fri, 21 Jun 2019 20:49:59 +0000 (13:49 -0700)]
Initial empty repository

5 years agowifi: fix selinux error [1/1]
libo [Fri, 12 Apr 2019 02:33:16 +0000 (10:33 +0800)]
wifi: fix selinux error [1/1]

PD#SWPL-5893

Problem:
selinux error

Solution:
fix it

Verify:
test pass on x301

Change-Id: Ib943b51a340f066b53032c2129e442de39110cea
Signed-off-by: libo <bo.li@amlogic.com>
5 years agowifi: fix wifi panic issue [1/1]
Rongjun Chen [Tue, 19 Feb 2019 06:47:17 +0000 (14:47 +0800)]
wifi: fix wifi panic issue [1/1]

PD#SWPL-4229

Problem:
autoreboot test wifi will panic

Solution:
fix wifi panic issue

Verify:
ampere

Change-Id: I9dcb81fb0f07c0fade264bf23f335c46a8fc4e4f

5 years agowifi: delete the invalid prints [1/1]
Rongjun Chen [Wed, 13 Feb 2019 02:30:40 +0000 (10:30 +0800)]
wifi: delete the invalid prints [1/1]

PD#SWPL-4729

Problem:
invalid prints

Solution:
delete the invalid prints

Verify:
ampere

Change-Id: I4314d77afb680657d0211ac9094601319c06ee82

5 years agowifi: debug wifi auto close issue [1/1]
Rongjun Chen [Mon, 14 Jan 2019 07:28:11 +0000 (15:28 +0800)]
wifi: debug wifi auto close issue [1/1]

PD#SWPL-4058

Problem:
wifi auto close

Solution:
add debug for wifi close

Verify:
franklin

Change-Id: Ie0b547f0e79949303ec323ef972a860e2694e64c

5 years agoWIFI: fix wifi connect fail issue [1/1]
Rongjun Chen [Wed, 9 Jan 2019 02:19:35 +0000 (10:19 +0800)]
WIFI: fix wifi connect fail issue [1/1]

PD#SWPL-1958

Problem:
connect 5G wifi fail

Solution:
set assoc_rety_max=30

Verify:
p215

Change-Id: I56f12f4dd07712b2840cda0a3fd4a3eeb84720e5
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
5 years agoWIFI: fix ap62x8 cts test fail issue [1/5]
Rongjun Chen [Fri, 4 Jan 2019 02:00:48 +0000 (10:00 +0800)]
WIFI: fix ap62x8 cts test fail issue [1/5]

PD#SWPL-3773

Problem:
CtsNetTestCases Module 3 Fails

Solution:
update driver to fix cts test fail issue

Verify:
r311

Change-Id: Ibea9da241061f1ce2771ba2c39f78952bd201976
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
5 years agowifi: change usb wifi fw load [1/1]
Rongjun Chen [Thu, 20 Dec 2018 08:21:30 +0000 (16:21 +0800)]
wifi: change usb wifi fw load [1/1]

PD#SWPL-3082

Problem:
dumpsys usb fail with ap62x8

Solution:
change the usb fw load

Verify:
verify by r311

Change-Id: I36785ea060ec0e4abcc9e19fc58796188760b906
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
5 years agowifi: optimize fix r311 wifi panic issue [1/1]
Rongjun Chen [Fri, 14 Dec 2018 08:04:27 +0000 (16:04 +0800)]
wifi: optimize fix r311 wifi panic issue [1/1]

PD#SWPL-3107

Problem:
r311 autoreboot wifi panic

Solution:
fix the null pointer issue

Verify:
r311

Change-Id: I9f15fe6badb709448c53731fc97d74364a13bd03
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
5 years agowifi: fix r311 wifi panic issue [1/1]
Rongjun Chen [Thu, 13 Dec 2018 02:05:27 +0000 (10:05 +0800)]
wifi: fix r311 wifi panic issue [1/1]

PD#SWPL-3107

Problem:
r311 autoreboot wifi panic

Solution:
fix the null pointer issue

Verify:
r311

Change-Id: Ia2d1f402ffa5a46e2bfb5367ba79890f8b8d3cc8

5 years agowifi: fix bcmdhd.100.10.31 make fail issue [1/2]
Rongjun Chen [Thu, 29 Nov 2018 11:11:45 +0000 (19:11 +0800)]
wifi: fix bcmdhd.100.10.31 make fail issue [1/2]

PD#SWPL-2210

Problem:
bcmdhd.100.10.31 driver make fail

Solution:
fix driver make fail issue

Verify:
ampere

Change-Id: Idf451428580966c78c58e040c7a5f7d3d78b0d86
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
6 years agowifi: add bcmdhd.100.10.315.x driver to support ap6271S [2/3]
Rongjun Chen [Fri, 23 Nov 2018 05:36:06 +0000 (13:36 +0800)]
wifi: add bcmdhd.100.10.315.x driver to support ap6271S  [2/3]

PD# OTT-766

Problem:
AP6271S wifi not support

Solution:
add AP6271S support

Verify:
test pass on u221

Change-Id: I79e864b584a6baa955db9b9b152f9b4fbd237970
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
6 years agowifi: fix wifi close issue and ap62x8 open fail issue
Rongjun Chen [Mon, 8 Oct 2018 11:47:16 +0000 (19:47 +0800)]
wifi: fix wifi close issue and ap62x8 open fail issue

PD# 174173

root cause: interrupt not enabled when ctrl cmd comming in some conner case
solution: enable the interrupt when ctrl command is comming

Change-Id: Ief804d124150cbfe9ec1134c527bdb536b8375a0
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>