Commit Graph

53 Commits

Author SHA1 Message Date
Gabriel Valcazar a3c190dfff meta-digi: revert revisions to AUTOREV
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-04-16 17:45:26 +02:00
Gabriel Valcazar 0078da95cb meta-digi: update revisions for dey-2.6-r1.3
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-04-16 17:44:36 +02:00
Gabriel Valcazar fce0809b47 meta-digi: revert revisions to AUTOREV
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-04-15 17:56:55 +02:00
Hector Palacios 7c6871bf07 meta-digi: update revisions for dey-2.6-r1.2
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-04-15 17:55:17 +02:00
Gabriel Valcazar 3bc0da87b0 meta-digi: revert revisions to AUTOREV
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-04-02 09:42:47 +02:00
Gabriel Valcazar 9fae56c116 meta-digi: update revisions for dey-2.6-r1.1
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-04-02 09:42:47 +02:00
Hector Palacios 47f88d1d24 switch to building from maintenance branches for dey-2.6
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-03-27 17:47:32 +01:00
Gabriel Valcazar 9f76a50e57 Revert "kernel-module-qualcomm: create wlan virtual interface"
Don't create the wlan1 interface automatically to improve the general
performance of the wireless interface.

This reverts commit a5ae6a5b3c.

https://jira.digi.com/browse/DEL-6353
2019-03-22 09:46:51 +01:00
Arturo Buzarra 05c9cd566d qualcomm: add enable_p2p parameter to driver initialization
Add kernel module parameter to enable/disable the p2p interface.
By default p2p interface is disabled.

https://jira.digi.com/browse/DEL-6503

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-03-19 18:15:42 +01:00
Alex Gonzalez 54abbc80a7 meta-digi-arm: kernel-module-qualcomm: Use new branch names
The naming of branches in the qcacld repository is now in the qca65x4
namespace.

Also, the qca6564/master branch now does not hardcode the TX MCS to 0 as
this change should only apply to the CC6UL and not other platforms like
the CC6+.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2019-03-11 12:27:43 +01:00
Arturo Buzarra 5eb88b8c5d sumo migration: meta-digi: replace the deprecated base_conditional function
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-01-11 13:26:44 +01:00
Gabriel Valcazar afae4f6bfd kernel-module-qualcomm: add a new udev rule to load the module on the cc8x
The module was being loaded by the default udev rules. With this new rule, the
module will be loaded with our custom qualcomm.sh script.

https://jira.digi.com/browse/DEL-6067

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2018-08-24 12:19:05 +02:00
Hector Palacios c1868d7892 kernel-module-qualcomm: add support for QCA6574 on ConnectCore 8X
A new variable QUALCOMM_WIFI_INTERFACE allows to select between 'sdio'
(default) and 'pcie'.
Compilation flags and source files differ between the two.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-06-13 16:28:22 +02:00
Hector Palacios ed38c47005 kernel-module-qualcomm: build from dey-2.4/master
This update was missing from DEY-2.4 (although there haven't been changes
in the repo).

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-06-12 18:22:09 +02:00
Arturo Buzarra 314d4c82d6 meta-digi: fix scripts to remove undesired warning ignoring null bytes
Bash v4.4 or higher warns when discarding NULL bytes in command substitution
output. Remove these bytes to avoid the undesired warnings.

https://jira.digi.com/browse/DEL-5588

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2018-01-24 17:59:14 +01:00
Arturo Buzarra 8c14ae877f meta-digi recipes: adjust machine overrides for new platform
This commit modifies different recipes to support the new platform
ccimx6qpsbc and adapt it to maintain the support to ccimx6sbc.

https://jira.digi.com/browse/DEL-5082

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-10-18 09:20:11 +02:00
Javier Viguera fe39b6675c Merge tag 'dey-2.2-r2.2' into dey-2.2/master
Tweaked to maintain some recipes' revisions to AUTOREV instead of the
fixed SHA1s from the tag.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-01 17:30:04 +02:00
Javier Viguera 2c4c4dff4a meta-digi: update revisions for dey-2.2-r2.2
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-27 18:10:28 +02:00
Javier Viguera b421fb7995 qualcomm: generalize log function to pass the log level
We need to pass different log levels depending on the message, so they
appear in the console, so generalize the 'log' function.

https://jira.digi.com/browse/DEL-4682

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-27 14:05:29 +02:00
Arturo Buzarra 6f0b8a7356 kernel-module-qualcomm: reduce console log level to load wireless module
At the point this script is running from udev (the system log is not yet
available), so to avoid debug messages from qualcomm wireless module
reduce the console log level.

https://jira.digi.com/browse/DEL-4570

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-07-19 17:06:16 +02:00
Arturo Buzarra 2064525ede meta-digi: revert revisions to AUTOREV
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-07-11 18:06:32 +02:00
Arturo Buzarra b5ab28b4b4 meta-digi: update revisions for dey-2.2-r2.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-07-11 17:47:06 +02:00
Javier Viguera 594e7fbf55 Merge branch 'dey-2.2/master' into dey-2.2/maint
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-07 18:34:56 +02:00
Javier Viguera 6ffd69da82 kernel-module-qualcomm: use kernel log buffer for logging
At the point this script is run (from udev) the system log is not yet
available, so use the kernel log buffer instead.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-07 17:02:45 +02:00
Javier Viguera a5ae6a5b3c kernel-module-qualcomm: create wlan virtual interface
Use the same udev script that loads the qualcomm wireless module to
create the 'wlan1' virtual interface.

https://jira.digi.com/browse/DEL-4453

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-07 17:02:45 +02:00
Javier Viguera 9329e5681b kernel-module-qualcomm: fix two udev rules managing qcom wireless driver
Udev comes with a bunch of generic rules for the hardware. One of them:

/lib/udev/rules.d/80-drivers.rules

is able to load the qualcomm wireless module.

At the same time our new rule is needed, so it prepares the firmware
before the module is loaded.

Both rules running collide with following error message:

udevd[181]: '/etc/udev/scripts/qualcomm.sh' [184] terminated by signal 1 (Hangup)

So to fix this, we rename the specific rule so it's parsed later, and
then we use the hard assignation '=' instead of '+=' to override the
values that come from the previous parsed rule.

Also clean-up a bit the 'qualcomm.sh' script and the modprobe file,
given that now we know the standard drivers rule won't run for this
interface.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-07 17:02:45 +02:00
Mike Engel 27138c9838 kernel-module-qualcomm: let udev load wireless module
NetworkManager is not able to detect and manage the wireless interface
until is actually created, so let udev load the kernel module and create
the interface on boot.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-07-07 17:02:45 +02:00
Alex Gonzalez 14a7d127f0 meta-digi-arm: Remove worldwide board data file.
https://jira.digi.com/browse/DEL-4291

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-06-21 12:30:08 +02:00
Diaz de Grenu, Jose f9acd0af7c kernel-module-qualcomm: remove patches
Since 30c253e108 the module is compiled from a repository which already
includes the patches, so we can remove them from DEY.

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-05-22 17:47:41 +02:00
Javier Viguera 3fa939fdc3 Merge tag 'dey-2.2-r1.4' into dey-2.2/master
Tweaked to maintain some recipes' revisions to AUTOREV instead of the
fixed SHA1s from the tag.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-05-04 13:58:33 +02:00
Alex Gonzalez 5d2d0011d0 meta-digi-arm: qualcomm: Move cfg.dat and qcom_cfg.ini to module recipe
The firmware configuration and the driver configuration are part of the
driver repository. Stop duplicating the content in meta-digi so they
are updated with the driver itself.

https://jira.digi.com/browse/DEL-4021

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-03-31 18:29:00 +02:00
Tatiana Leon 432844a3a8 meta-digi: configure recipes to use maintenance branches
Updated recipes for linux, u-boot, trustfence-sign-tools, and
kernel-module-qualcomm.

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-03-28 11:30:06 +02:00
Alex Gonzalez 4b5fe291f0 meta-digi-arm: kernel-module-qualcomm: Use single SRCREV for both external
and internal compilation.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-03-24 09:45:52 +01:00
Alex Gonzalez 30c253e108 meta-digi-arm: kernel-module-qualcomm: Build from Digi source repositories
The amount of patches to this driver maintained in meta-digi is
substantial, so we are moving to a git repository release model.

https://jira.digi.com/browse/DEL-3710

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-03-20 10:43:24 +01:00
Pedro Perez de Heredia e7f590350c kernel-module-qualcomm: fix issue with _scan_callback at module unload
Protect the invocation of the _scan_done() callback function with the
global lock to avoid that it is called while the module is being unloaded
and the data structures have been freed.

Additionally, the commit also adds a patch to reduce the log level of the
driver that is logging some annoying messages.

https://jira.digi.com/browse/DEL-3607
https://jira.digi.com/browse/DEL-3393

Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2017-02-13 11:59:45 +01:00
Alex Gonzalez 98808b5938 kernel-module-qualcomm: Initialize auxiliary p2p0 interface at boot
Remove the commit that removes the p2p0 interface at boot. This interface
is the one used to establish p2p connections. Configuring the wlan0 command
for p2p does not work.

https://jira.digi.com/browse/DEL-3390

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-23 15:45:20 +01:00
Alex Gonzalez e55d83ba14 kernel-module-qualcomm: Bring the module up with the p2p0 interface too
The qualcomm wlan driver creates two interfaces at load time, wlan0 and
p2p0. Both of them should load the module if not already loaded.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-23 15:45:20 +01:00
Javier Viguera 6269b20c9c kernel-module-qualcomm: cosmetic, no functional change
According to openembedded coding style.

Signen-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-17 18:24:05 +01:00
Javier Viguera 29af4bb088 kernel-module-qualcomm: remove virtual/kernel dependence
The dependence on virtual/kernel is added implicitly through the module
class, so there is no need to add it explicitly.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-17 18:23:33 +01:00
Alex Gonzalez 21209d4f36 meta-digi-arm: kernel-module-qualcomm: Pass BUILD_DEBUG_VERSION to kbuild.
Otherwise the module is built with debug as that is the Makefile's
default.

https://jira.digi.com/browse/DEL-3392

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-12 11:30:48 +01:00
Alex Gonzalez f5dac18ae5 meta-digi-arm: firmware-qualcomm: Match board file and UTF board file.
As discovered during certifications preparation work, calibration changes
applied only on the bdwlan30.bin file do not take effect.

Per QCA guidelines, the bdwlan30.bin and utfbd30.bin files should be the
same for the calibration changes to work.

This commit removes the current utfbd30.bin file, with an md5sum that
matches the original bdwlan30.bin file in QCA's chipcode
qca6564-le-1-0-3_qca_device repository, and creates a symbolic link to the
actual bdwlan30.bin board file used to certify Digi's module internal
antenna.

https://jira.digi.com/browse/DEL-3454

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-05 14:58:31 +01:00
Alex Gonzalez 9a5372bcc9 meta-digi-arm: kernel-module-qualcomm: Print connection mode.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-12-15 13:39:10 +01:00
Alex Gonzalez dd7dcc597d meta-digi-arm:kernel-module-qualcomm:Pass disconnect event to upper layers.
https://jira.digi.com/browse/DEL-3365

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-12-12 17:36:40 +01:00
Alex Gonzalez 3016520e4f meta-digi-arm: kernel-module-qualcomm: Update to v4.2.79.63
This brings several upstream bugfixes.

https://jira.digi.com/browse/DEL-2573

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-12-12 17:36:40 +01:00
Isaac Hermida f8c901b376 kernel-module-qualcomm: fix concurrency and p2p support
Fix support for concurrency and some P2P modes by initializing the interface
with all the adapter completion variables.

https://jira.digi.com/browse/DEL-3072
https://jira.digi.com/browse/DEL-3037

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-10-19 18:23:51 +02:00
Isaac Hermida fc959bd23f kernel-module-qualcomm: do not log any error if dtb regdomain is not set
Do not add a log error if there is not defined a device tree entry for the
regulatory domain.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-28 13:03:03 +02:00
Isaac Hermida 46c7508ee3 kernel-module-qualcomm: add support to override the region code
The region code is programmed in the OTP bits. We want to allow to be able to
override this behavior by setting the new value as a property in the device
tree called "regulatory-domain".
This can be done by setting the variable "regdomain=<code>" in uboot or well
by defining that entry in the device tree.

https://jira.digi.com/browse/DEL-2799

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-21 18:32:07 +02:00
Isaac Hermida cd253b370b kernel-module-qualcomm: load specific firmware file per region
The country region is programmed in the OTP bits. Based on that value we need
to load the firmware file for the specific country region.

https://jira.digi.com/browse/DEL-2774

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-21 18:29:34 +02:00
Isaac Hermida cf7c6b0af8 kernel-module-qualcomm: compile the driver without debug messages
By default the driver was being compiled with debug messages. Disabled it
but leave the option there so it can be enabled by user.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-06 08:43:13 +02:00
Isaac Hermida 7a95663c5e kernel-module-qualcomm: do not create an auxiliar p2p interface on init
https://jira.digi.com/browse/DEL-2656

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-06-28 11:06:18 +02:00