I want to use STA / AP mode in parallel.
How do I activate the ap0 interface?
qubo@QUBO-200D:~$ sudo wifi-ap.config get
debug: true
dhcp.lease-time: 12h
dhcp.range-start: 10.0.60.2
dhcp.range-stop: 10.0.60.199
disabled: false
share.disabled: false
share.network-interface: wlp0s20f3
wifi.address: 10.0.60.1
wifi.channel: 1
wifi.country-code:
wifi.hostapd-driver: nl80211
wifi.interface: wlp0s20f3
wifi.interface-mode: virtual
wifi.netmask: 255.255.255.0
wifi.operation-mode: g
wifi.security: wpa2
wifi.security-passphrase: dhkdldhs
wifi.ssid: Quribo_shyoon_test
qubo@QUBO-200D:~$ sudo wifi-ap.status
ap.active: false
qubo@QUBO-200D:~$ journalctl --no-pager -u snap.wifi-ap.management-service
-- Logs begin at 금 2019-11-01 18:05:32 KST, end at 금 2019-11-01 18:08:31 KST. --
11월 01 18:05:34 QUBO-200D systemd[1]: Started Service for snap application wifi-ap.managemen-service.
11월 01 18:05:34 QUBO-200D wifi-ap.management-service[1027]: 2019/11/01 18:05:34 Adding routefor /v1/configuration
11월 01 18:05:34 QUBO-200D wifi-ap.management-service[1027]: 2019/11/01 18:05:34 Adding routefor /v1/status
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + . /snap/wifi-ap/355/bin/helpersh
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + '[' false = true ']'
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + DEFAULT_ACCESS_POINT_INTERFACEap0
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + ip link show wlp0s20f3
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: 3: wlp0s20f3: <NO-CARRIER,BROADCST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: link/ether 98:2c:bc:bf:0d:0bbrd ff:ff:ff:ff:ff:ff
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + trap do_cleanup TERM
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + do_cleanup
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + '[' -f /var/snap/wifi-ap/355/hstapd.pid ']'
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + '[' -f /var/snap/wifi-ap/355/dsmasq.pid ']'
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + iface=wlp0s20f3
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + '[' virtual = virtual ']'
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + iface=ap0
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + '[' false = false ']'
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + iptables --table nat --delete OSTROUTING --out-interface wlp0s20f3 -j MASQUERADE
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: iptables: No chain/target/match y that name.
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + true
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + iptables --delete FORWARD --ininterface ap0 -j ACCEPT
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: iptables: Bad rule (does a matchng rule exist in that chain?).
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + true
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + sysctl -w net.ipv4.ip_forward=
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: net.ipv4.ip_forward = 0
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + ip address flush ap0
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: Device "ap0" does not exist.
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + '[' virtual = virtual ']'
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + /snap/wifi-ap/355/bin/iw dev a0 del
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: command failed: No such device (19)
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + iface=wlp0s20f3
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + '[' virtual = virtual ']'
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + iface=ap0
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: ++ /snap/wifi-ap/355/bin/iw dev lp0s20f3 info
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: ++ awk '/channel/{print$2}'
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + channel_in_use=
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + '[' -z '' ']'
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + echo 'WARNING: WiFi is currenty not connected so we can'\''t determine'
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: WARNING: WiFi is currently not cnnected so we can't determine
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + echo ' which channel w can use for the AP. This will most'
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: which channel we can us for the AP. This will most
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + echo ' likely lead to ailed connections when the STA gets'
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: likely lead to failed cnnections when the STA gets
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + echo ' connected.'
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: connected.
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + '[' virtual = virtual ']'
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + iface=ap0
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + /snap/wifi-ap/355/bin/iw dev wp0s20f3 interface add ap0 type __ap
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + wait_until_interface_is_availale ap0
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + does_interface_exist ap0
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + '[' -d /sys/class/net/ap0 ']'
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + '[' virtual = direct ']'
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + is_nm_running
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: ++ /snap/wifi-ap/355/bin/nmcli - -f RUNNING general
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + nm_status=running
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + '[' running = running ']'
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + /snap/wifi-ap/355/bin/nmcli d et ap0 managed no
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + ip link set dev ap0 up
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: RTNETLINK answers: Device or resurce busy
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + echo 'ERROR: Failed to enable iFi network interface '\''ap0'\'''
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: ERROR: Failed to enable WiFi netork interface 'ap0'
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + '[' virtual = virtual ']'
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + /snap/wifi-ap/355/bin/iw dev a0 del
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + is_nm_running
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: ++ /snap/wifi-ap/355/bin/nmcli - -f RUNNING general
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + nm_status=running
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + '[' running = running ']'
11월 01 18:05:35 QUBO-200D wifi-ap.management-service[1027]: + /snap/wifi-ap/355/bin/nmcli d et ap0 managed yes
11월 01 18:05:36 QUBO-200D wifi-ap.management-service[1027]: Error: Device 'ap0' not found.
11월 01 18:05:36 QUBO-200D wifi-ap.management-service[1027]: + exit 1
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + . /snap/wifi-ap/355/bin/helpersh
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + '[' false = true ']'
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + DEFAULT_ACCESS_POINT_INTERFACEap0
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + ip link show wlp0s20f3
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: 3: wlp0s20f3: <BROADCAST,MULTICAT,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: link/ether 98:2c:bc:bf:0d:0bbrd ff:ff:ff:ff:ff:ff
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + trap do_cleanup TERM
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + do_cleanup
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + '[' -f /var/snap/wifi-ap/355/hstapd.pid ']'
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + '[' -f /var/snap/wifi-ap/355/dsmasq.pid ']'
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + iface=wlp0s20f3
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + '[' virtual = virtual ']'
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + iface=ap0
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + '[' false = false ']'
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + iptables --table nat --delete OSTROUTING --out-interface wlp0s20f3 -j MASQUERADE
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: iptables: No chain/target/match y that name.
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + true
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + iptables --delete FORWARD --ininterface ap0 -j ACCEPT
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: iptables: Bad rule (does a matchng rule exist in that chain?).
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + true
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + sysctl -w net.ipv4.ip_forward=
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: net.ipv4.ip_forward = 0
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + ip address flush ap0
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: Device "ap0" does not exist.
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + '[' virtual = virtual ']'
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + /snap/wifi-ap/355/bin/iw dev a0 del
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: command failed: No such device (19)
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + iface=wlp0s20f3
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + '[' virtual = virtual ']'
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + iface=ap0
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: ++ /snap/wifi-ap/355/bin/iw dev lp0s20f3 info
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: ++ awk '/channel/{print$2}'
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + channel_in_use=1
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + '[' -z 1 ']'
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + '[' 1 '!=' 1 ']'
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + '[' virtual = virtual ']'
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + iface=ap0
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + /snap/wifi-ap/355/bin/iw dev wp0s20f3 interface add ap0 type __ap
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + wait_until_interface_is_availale ap0
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + does_interface_exist ap0
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + '[' -d /sys/class/net/ap0 ']'
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + '[' virtual = direct ']'
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + is_nm_running
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: ++ /snap/wifi-ap/355/bin/nmcli - -f RUNNING general
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + nm_status=running
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + '[' running = running ']'
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + /snap/wifi-ap/355/bin/nmcli d et ap0 managed no
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + ip link set dev ap0 up
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: RTNETLINK answers: Device or resurce busy
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + echo 'ERROR: Failed to enable iFi network interface '\''ap0'\'''
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: ERROR: Failed to enable WiFi netork interface 'ap0'
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + '[' virtual = virtual ']'
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + /snap/wifi-ap/355/bin/iw dev a0 del
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + is_nm_running
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: ++ /snap/wifi-ap/355/bin/nmcli - -f RUNNING general
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + nm_status=running
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + '[' running = running ']'
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + /snap/wifi-ap/355/bin/nmcli d et ap0 managed yes
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: Error: Device 'ap0' not found.
11월 01 18:07:15 QUBO-200D wifi-ap.management-service[1027]: + exit 1