libwifi: intel: fix chrCmd call to match function signature, fixes build on Norrland
When building easy-soc-libs
on Norrland (ED500), the following error occurs:
ccache_cc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -g3 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft
-float -iremap/home/dev/iopsyswrt/build_dir/target-mips_24kc+nomips16_musl/easy-soc-libs-4.7.4:easy-soc-libs-4.7.4 -Wformat -Werror=format-security -fstack-protector -D_FORT
IFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DIOPSYS_INTEL -I/home/dev/iopsyswrt/staging_dir/target-mips_24kc+nomips16_musl/usr/include -I/home/dev/iopsyswrt/staging_dir/target-mips_24kc+nomips16_musl/usr/include/openssl -I/home/dev/iopsyswrt/staging_dir/target-mips_24kc+nomips16_musl/usr/include/libnl3 -Wall -I./ -I. -I../libeasy -DLIBWIFI_MAJOR=3 -DLIBWIFI_MINOR=0 -DLIBWIFI_REV=4-23a25a28-dirty -fPIC -c -o modules/intel.o modules/intel.c
modules/intel.c: In function 'intel_disconnect_sta':
modules/intel.c:739:2: error: too few arguments to function 'chrCmd'
chrCmd(buf);
^~~~~~
In file included from ../libeasy/easy.h:11:0,
from ./util.h:25,
from modules/intel.c:39:
../libeasy/utils.h:143:14: note: declared here
extern char *chrCmd(char *output, size_t output_size, const char *format, ...);
^~~~~~
Makefile:33: recipe for target 'modules/intel.o' failed
make[5]: *** [modules/intel.o] Error 1
It is due to an incorrect function call to chrCmd
, which requires at least three arguments.
This commit fixes the call to match the one used in intel_monitor_sta
function.