Commit Graph

19 Commits

Author SHA1 Message Date
jiabin.chen 8e8c643ce3 wifi: add wifi random api [1/1]
PD#SWPL-176186

Problem:
rand mac and emmc share a common interface

Solution:
add random api

Verify:
ohm

Change-Id: I6593e8669881e7b018b49481368997c02b3839d0
Signed-off-by: jiabin.chen <jiabin.chen@amlogic.com>
2024-07-07 20:13:10 -07:00
lei.chen 02f424bef5 S6: wifi/bt bringup to pcie [1/1]
PD#SWPL-173979

Problem:
S6 wifi/bt bringup

Solution:
S6 wifi/bt bringup

Verify:
BL201

Change-Id: I965eac759859eff5ec216024c9ed68facb16d976
Signed-off-by: lei.chen <lei.chen@amlogic.com>
2024-07-05 10:44:46 +08:00
Zhu Lv af9a4dcafe bt: fix bt open fail when wifi off [1/1]
PD#SWPL-166010

Problem:
bt open fail when wifi off

Solution:
bt default power on

Verify:
soddy

Change-Id: I253a4568360ff839c23480d73d725b83d5f3ec35
Signed-off-by: Zhu Lv <zhu.lv@amlogic.com>
2024-04-30 02:35:26 -07:00
Jun Zhang 140e717a53 BT-RFKILL: fix the duplicated power action on yocto platform [1/1]
PD#SWPL-166565

Problem:
multiple state setting by systemd-rfkill will trigger the
duplicated-power-on action in bluetooth kernel driver, and cause the
WiFi firmware loading failure when the power pin is shared by WiFi
and bluetooth device.

Solution:
add static device blocking state to prevent the duplicated power action

Verify:
t5w/s4/sc2/s7

Change-Id: I37081caed3f59af39b97449113027d22f9740696
Signed-off-by: Jun Zhang <jun.zhang@amlogic.com>
2024-04-29 23:53:21 -07:00
lei.chen f55ebe1c57 wifi: fix kasan read cross the border [1/1]
PD#SWPL-165731

Problem:
kasan read cross the border

Solution:
Copy specified length

Verify:
s7d

Change-Id: Iebf96b41aba493241b6dd20b5f756a4fa1b6adbf
Signed-off-by: lei.chen <lei.chen@amlogic.com>
2024-04-21 22:34:48 -07:00
jiabin.chen 5957bceeee wifi: del some print [1/1]
PD#SWPL-161547

Problem:
print some information use too much memory

Solution:
del some print

Verify:
t950s_be311

Change-Id: I3f37aaebd70a2b9ebff08ba79e33cfed76a05638
Signed-off-by: jiabin.chen <jiabin.chen@amlogic.com>
2024-03-21 05:43:23 -07:00
Jiacai.Liu b8e7921369 BT: add config to define the init state of rfkill sw block [1/1]
PD#SWPL-154847

Problem:
the init state of rfkill sw block is set to true which will cause the
power of bt device not applicable.

Solution:
add CONFIG_AMLOGIC_RFKILL_INIT_SW_UNBLOCK to set the init state of sw
block as false if the config is defined.
cherry-pick from: https://scgit.amlogic.com/#/c/391514/

Verify:
local sc2

Change-Id: I4f23651b1066146066e434a0869c94c625c8d3a9
Signed-off-by: Jiacai.Liu <jiacai.liu@amlogic.com>
2024-02-27 01:59:49 -08:00
Zhu Lv 78add0a045 bt: optimize aml_bt driver loading time [1/1]
PD#SWPL-155688

Problem:
aml_bt driver loading time too long

Solution:
optimize aml_bt driver loading time

Verify:
calla

Change-Id: I3b9f8dbd9e2b5f278a4d1c0d01f64c1172693f85
Signed-off-by: Zhu Lv <zhu.lv@amlogic.com>
2024-02-22 01:53:57 -07:00
jiabin.chen 7748acdd43 bt: Optimize the power on [1/1]
PD#SWPL-153207

Problem:
power on delay more 200ms

Solution:
On the Android platform calling wifi API can save 200ms time
Linux platform unchanged

Verify:
ohm

Change-Id: I1dbf3f1681e2281336e810e4b726ca8d72c6ef5f
Signed-off-by: jiabin.chen <jiabin.chen@amlogic.com>
2024-01-23 06:38:16 -07:00
Zhu Lv 859db62629 bt: abnormal wakeup [1/2]
PD#SWPL-149222

Problem:
bt abnormal wakeup

Solution:
improve  str standby process of qca6174

Verify:
ohm

Change-Id: I099da28cb0d1e84abd2f9d82b5457ab71c84918e
Signed-off-by: Zhu Lv <zhu.lv@amlogic.com>
2023-12-20 20:51:41 -07:00
Kuibao Zhang 47bca1e0f0 BT: bt state is abnormal when rtc [1/1]
PD#SWPL-142862

Problem:
1.bt open fail when rtc wakeup;

Solution:
1.reset this state when rtc wakeup;

Verify:
ohm.

Change-Id: If86fd7eef5926ee44a6740ba229ee040759389a4
Signed-off-by: Kuibao Zhang <kuibao.zhang@amlogic.com>
2023-11-20 00:35:06 -07:00
Long 482b6555d3 G12a: sdio and sdcard use time-sharing multiplexing. [1/1]
PD#SWPL-133324

Problem:
not support time-sharing multiplexing function.

Solution:
enable time-sharing multiplexing function.

Verify:
g12a_u212

Change-Id: I78392775c01b6b58aaf224b47537669bfe7737e1
Signed-off-by: Long <long.yu@amlogic.com>
2023-11-01 20:38:03 -07:00
jiabin.chen 08b5f30ce6 wifi: kernel 5.15 add wifi comm API [4/4]
PD#SWPL-141905

Problem:
kernel 5.15 have no wifi comm API

Solution:
kernel 5.15 add wifi comm API

Verify:
ohm

Change-Id: I14b3443d7ce7894c019cd76f0891f157f15f1f5d
Signed-off-by: jiabin.chen <jiabin.chen@amlogic.com>
2023-10-11 00:27:17 -07:00
rongjun.chen b75d56f672 WiFi: Connect wifi, enter deep standby, cast cannot wake up [1/1]
PD#SWPL-136835

Problem:
1.After WiFi wakes up, there is no delay waiting,
resulting in the cast standby before receiving the packet
2.pm_wakeup_event in wifi resume has not taken effect

Solution:
1.Delay after WiFi wake-up
2.Register WiFi wake-up source

Verify:
sc2

Change-Id: I27387b0f540a71581ec00377ce42bb0884a19a0a
Signed-off-by: rongjun.chen <rongjun.chen@amlogic.com>
2023-09-06 00:13:51 -07:00
jiabin.chen 65686d80e6 wifi: add wifi mac node [2/3]
PD#SWPL-130488

Problem:
platform need rand wifi mac

Solution:
create a wifi mac node

Verify:
ohm

Change-Id: I236555b45a162585bc09cd981cb92b3a151dc8f0
Signed-off-by: jiabin.chen <jiabin.chen@amlogic.com>
2023-07-14 05:25:24 -07:00
Dezhen Wang 72111cf847 Configs: delete the config which default to y [1/1]
PD#SWPL-121364

Problem:
some configs are set to y by default

Solution:
change to n by default in Kconfig files

Verify:
local

Change-Id: I36edad847fa0767d75202be89e749149761d44dc
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-05-23 01:42:16 -07:00
bo.li 871db3ff72 wifi: alloc memory failed when download fw [1/1]
PD#SWPL-106037

Problem:
alloc memory failed when download fw

Solution:
pre alloc a large buffer for download fw

Verify:
t210(s905x4+w2 Revb)

Change-Id: Ibf325de545dc4612089a714fd44b3f99178a6578
Signed-off-by: bo.li <bo.li@amlogic.com>
2023-01-04 06:15:58 -08:00
libo 2ac415fbea wifi: update bcm wifi driver. [1/1]
PD#SWPL-101693

Problem:
update bcm wifi driver

Solution:
update bcm wifi driver

Verify:
s905x4

Change-Id: I639a6befda490b1f5aa2a8563de1465c7eb0c34f
Signed-off-by: libo <bo.li@amlogic.com>
2022-11-17 21:17:28 -07:00
qinglin.li 55312c58ed wireless: combine wifi and bluetooth modules [1/1]
PD#SWPL-95684

Problem:
combine wifi and bluetooth modules

Solution:
result: amlogic-wireless.ko
original: amlogic-wifi.ko bt_device.ko

Verify:
sc2

Change-Id: I2b8ff4c2471407e419772e22920434c5c74b843e
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-11-05 12:30:53 +08:00