init-ifupdown: virtwlans: specify type of wlan1

virtwlans script creates an additional interface on startup for QCA6564 chip.
The created interface purpose is for ap mode, so specify its type on creation.

https://jira.digi.com/browse/DEL-5290

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
Isaac Hermida 2017-11-15 08:48:26 +01:00
parent 74c10edc2b
commit 2d0af46bee
2 changed files with 2 additions and 2 deletions

View File

@ -26,5 +26,5 @@ fi
if [ ! -d "/sys/class/net/wlan1" ]; then
# This will create a second wireless network device
iw dev wlan0 interface add wlan1 type managed
iw dev wlan0 interface add wlan1 type __ap
fi

View File

@ -26,5 +26,5 @@ fi
if [ ! -d "/sys/class/net/wlan1" ]; then
# This will create a second wireless network device
iw dev wlan0 interface add wlan1 type managed
iw dev wlan0 interface add wlan1 type __ap
fi