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>
This commit is contained in:
parent
02c961eb3f
commit
fc959bd23f
|
|
@ -58,11 +58,13 @@ JP_CODE="0x2"
|
|||
# Check if the DTB_REGION_CODE is in the list of valid codes,
|
||||
# if not use the OTP programmed value.
|
||||
case "${DTB_REGION_CODE}" in
|
||||
${US_CODE}|${WW_CODE}|${JP_CODE})
|
||||
REGULATORY_DOMAIN=${DTB_REGION_CODE};;
|
||||
*)
|
||||
logger -t qca6564 "[ERROR] Invalid region code in device tree, using OTP value"
|
||||
REGULATORY_DOMAIN=${OTP_REGION_CODE};;
|
||||
${US_CODE}|${WW_CODE}|${JP_CODE})
|
||||
REGULATORY_DOMAIN=${DTB_REGION_CODE};;
|
||||
*)
|
||||
if [ -n "${DTB_REGION_CODE}" ]; then
|
||||
logger -t qca6564 "[ERROR] Invalid region code in device tree, using OTP value"
|
||||
fi
|
||||
REGULATORY_DOMAIN=${OTP_REGION_CODE};;
|
||||
esac
|
||||
|
||||
BDATA_LINK="${FIRMWARE_DIR}/bdwlan30.bin"
|
||||
|
|
|
|||
Loading…
Reference in New Issue