Expand variables which may contain "user input" in the second pass
(production data is not likely to contain anything unsafe but it is
better to be on the safe side). In addition use "$@" instead of
hardcoded parameters and handle json_select failure. Use OpenWrt
get_mac_label instead of legacy methods to obtain MAC address.
OpenWrt enables setting default Wi-Fi settings in board.json using
board.d scripts. Read from board.json for each band or all bands,
otherwise fall back to the old method of generating the SSID and key.
The following can be specified:
* WiFI SSID
* encryption mode
* key
* number of MAC addresses (not implemented in this commit)
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>