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