Hotspot Setup Issue

Hi,

I am using RPi 3 model B+, and I successfully got both ppp and qmi worked.

However, I cannot set up the wifi hotspot by following this instruction.

Here are the configuration and the error that I kept getting:

pi@raspberrypi:~ $ sudo hostapd -d /etc/hostapd/hostapd.conf
Output:
random: getrandom() support available
Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=0
nl80211: Using driver-based roaming
nl80211: TDLS supported
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:6
nl80211: Using driver-based off-channel TX
nl80211: Supported vendor command: vendor_id=0x1018 subcmd=1
nl80211: Use separate P2P group interface (driver advertised support)
nl80211: Enable multi-channel concurrent (driver advertised support)
nl80211: use P2P_DEVICE support
nl80211: interface wwan0 in phy phy0
nl80211: Set mode ifindex 4 iftype 3 (AP)
nl80211: Failed to set interface 4 to mode 3: -19 (No such device)
nl80211: Could not configure driver mode
nl80211: deinit ifname=wwan0 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=4 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 4 iftype 2 (STATION)
nl80211: Failed to set interface 4 to mode 2: -19 (No such device)
nl80211 driver initialization failed.
hostapd_interface_deinit_free(0x1332020)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x1332020)
wwan0: interface state UNINITIALIZED->DISABLED
hostapd_bss_deinit: deinit bss wwan0
wwan0: AP-DISABLED
hostapd_cleanup(hapd=0x1334768 (wwan0))
wwan0: CTRL-EVENT-TERMINATING
hostapd_free_hapd_data: Interface wwan0 wasn’t started
hostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) -> hapd_deinit
hostapd_interface_free(0x1332020)
hostapd_interface_free: free hapd 0x1334768
hostapd_cleanup_iface(0x1332020)
hostapd_cleanup_iface_partial(0x1332020)
hostapd_cleanup_iface: free iface=0x1332020

pi@raspberrypi:~ $ cat /etc/hostapd/hostapd.conf
Output:
driver=nl80211
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
auth_algs=1
wpa_key_mgmt=WPA-PSK
beacon_int=100
ssid=raspi-webgui
channel=1
hw_mode=g
ieee80211n=0
wpa_passphrase=ChangeMe
interface=wwan0
wpa=2
wpa_pairwise=CCMP
country_code=CA
ignore_broadcast_ssid=0

pi@raspberrypi:~ $ sudo systemctl status hostapd.service
Output

  • hostapd.service - Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
    Loaded: loaded (/lib/systemd/system/hostapd.service; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Thu 2020-07-30 17:46:15 CDT; 4min 36s ago
    Process: 14137 ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid -B $DAEMON_OPTS ${DAEMON_CONF} (code=exited, status=1/FAILURE)

Jul 30 17:46:15 raspberrypi systemd[1]: hostapd.service: Service RestartSec=2s expired, scheduling restart.
Jul 30 17:46:15 raspberrypi systemd[1]: hostapd.service: Scheduled restart job, restart counter is at 260.
Jul 30 17:46:15 raspberrypi systemd[1]: Stopped Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator.
Jul 30 17:46:15 raspberrypi systemd[1]: hostapd.service: Start request repeated too quickly.
Jul 30 17:46:15 raspberrypi systemd[1]: hostapd.service: Failed with result ‘exit-code’.
Jul 30 17:46:15 raspberrypi systemd[1]: Failed to start Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator.

pi@raspberrypi:~ $ cat /etc/default/hostapd
Output:
#Location of hostapd configuration file
DAEMON_CONF="/etc/hostapd/hostapd.conf"

#Additional daemon options to be appended to hostapd command:-
#-d show more debug messages (-dd for even more)
#-K include key data in debug messages
#-t include timestamps in some debug messages
#Note that -B (daemon mode) and -P (pidfile) options are automatically
#configured by the init.d script and must not be added to DAEMON_OPTS.
DAEMON_OPTS=" -f /tmp/hostapd.log"

pi@raspberrypi:~ $ cat /etc/dhcpcd.conf
Output:
#RaspAP wwan0 configuration
hostname
clientid
persistent
option rapid_commit
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
option ntp_servers
require dhcp_server_identifier
slaac private
nohook lookup-hostname
interface wwan0
static ip_address=10.3.141.1/24
static domain_name_server=1.1.1.1 8.8.8.8

pi@raspberrypi:~ $ cat /etc/network/interfaces
Output:
#interfaces(5) file used by ifup(8) and ifdown(8)
#Please note that this file is written to be used with dhcpcd
#For static IP, consult /etc/dhcpcd.conf and ‘man dhcpcd.conf’
#Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

Any helps?
Thanks in advance!