In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 4:
. /lib/functions.sh
  ^---------------^ SC1091 (info): Not following: /lib/functions.sh was not specified as input (see shellcheck -x).


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 5:
. /usr/share/libubox/jshn.sh
  ^------------------------^ SC1091 (info): Not following: /usr/share/libubox/jshn.sh was not specified as input (see shellcheck -x).


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 16:
	local cmd="$1"
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 17:
	local dev="$2"
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
              ^-^ SC2034 (warning): dev appears unused. Verify use (or export if used externally).


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 25:
	local vif="$1"
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 26:
	local cfg
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 27:
	local ifname
        ^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 45:
	local cfg="$1"
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 53:
		[ "$iftype" = bridge ] && config_get "$cfg" ifname
                   ^-----^ SC2154 (warning): iftype is referenced but not assigned.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 60:
	local key="$1"
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 61:
	local hex=1
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 63:
	echo -n "$key" | grep -qE "[^a-fA-F0-9]" && hex=0
             ^-- SC3037 (warning): In POSIX sh, echo flags are undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 64:
	[ "${#key}" -eq 10 -a $hex -eq 1 ] || \
                           ^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 65:
	[ "${#key}" -eq 26 -a $hex -eq 1 ] || {
                           ^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 66:
		[ "${key:0:2}" = "s:" ] && key="${key#s:}"
                   ^--------^ SC3057 (warning): In POSIX sh, string indexing is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 67:
		key="$(echo -n "$key" | hexdump -ve '1/1 "%02x" ""')"
                            ^-- SC3037 (warning): In POSIX sh, echo flags are undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 73:
	local device="$1"
        ^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 74:
	local default="$2"
        ^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 75:
	local hwmode hwmode_11n
        ^---------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 80:
		11bg) hwmode=bg;
                      ^----^ SC2209 (warning): Use var=$(command) to assign output (or quote to assign string).


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 111:
		[ "$disabled" = "1" ] && {
                   ^-------^ SC2154 (warning): disabled is referenced but not assigned.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 119:
		elif [ ! -f /lib/netifd/wireless/$iftype.sh ]; then
                                                 ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		elif [ ! -f /lib/netifd/wireless/"$iftype".sh ]; then


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 130:
		scan_wifi
                ^-------^ SC2119 (info): Use scan_wifi "$@" if function's $1 should mean script's $1.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 139:
	scan_wifi
        ^-------^ SC2119 (info): Use scan_wifi "$@" if function's $1 should mean script's $1.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 167:
	local iface="$1"
        ^---------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 168:
	local config="$2"
        ^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 169:
	local vifmac="$3"
        ^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 171:
	[ -f "/var/run/$iface.pid" ] && kill "$(cat /var/run/${iface}.pid)" 2>/dev/null
                                                             ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	[ -f "/var/run/$iface.pid" ] && kill "$(cat /var/run/"${iface}".pid)" 2>/dev/null


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 182:
	local cfg="$1"
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 183:
	local ifname="$2"
        ^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 189:
	local cfg="$1"
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 190:
	local vifs vif vifstr
        ^-------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
                       ^----^ SC2034 (warning): vifstr appears unused. Verify use (or export if used externally).


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 201:
scan_wifi() {
^-- SC2120 (warning): scan_wifi references arguments, but none are ever passed.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 202:
	local cfgfile="$1"
        ^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 205:
		local type="$1"
                ^--------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 206:
		local section="$2"
                ^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 219:
		case "$TYPE" in
                      ^---^ SC2153 (info): Possible misspelling: TYPE may not be assigned. Did you mean type?


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 234:
scan_wifi
^-------^ SC2119 (info): Use scan_wifi "$@" if function's $1 should mean script's $1.


In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/sbin/wifi line 245:
	*) usage; exit 1;
                  ^----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).

For more information:
  https://www.shellcheck.net/wiki/SC2034 -- dev appears unused. Verify use (o...
  https://www.shellcheck.net/wiki/SC2120 -- scan_wifi references arguments, b...
  https://www.shellcheck.net/wiki/SC2154 -- disabled is referenced but not as...