Open SohamMalakar opened 2 years ago
It seems that your hardware doesn't support this.
Ahhh it sucks but I was confused because I can enable the hotspot and the wifi at the same time in windows. I thought it could be a driver issue.
Its very probable that the wifi driver situation is better on windows
You can test if the script can get further but removing this if condition https://github.com/lakinduakash/linux-wifi-hotspot/blob/177c36c9e09409c58b6019b6ea80fe9edb5eb879/src/scripts/create_ap#L1379
Its very probable that the wifi driver situation is better on windows
You can test if the script can get further but removing this if condition
Still no progress... I've commented out the if condition but now it's giving me the following error:
Config dir: /tmp/create_ap.wlp4s0.conf.VTritXhY
PID: 34186
Network Manager found, set ap0 as unmanaged device... DONE
wlp4s0 is already associated with channel 40 (5200 MHz)
multiple channels not supported,
fallback to channel 40
Creating a virtual WiFi interface... ap0 created.
RTNETLINK answers: Device or resource busy
ERROR: Maybe your WiFi adapter does not fully support virtual interfaces.
Try again with --no-virt.
Doing cleanup.. done
Sorry for the late reply btw.
It also doesn't work with intel wireless 3160 (ubuntu mate 22.04.1). It stays forever create hotspot
cat /etc/create_ap.conf
CHANNEL=default
GATEWAY=192.168.12.1
WPA_VERSION=2
ETC_HOSTS=0
DHCP_DNS=gateway
NO_DNS=0
NO_DNSMASQ=0
HIDDEN=0
MAC_FILTER=0
MAC_FILTER_ACCEPT=/etc/hostapd/hostapd.accept
ISOLATE_CLIENTS=0
SHARE_METHOD=nat
IEEE80211N=0
IEEE80211AC=0
HT_CAPAB=[HT40+]
VHT_CAPAB=
DRIVER=nl80211
NO_VIRT=0
COUNTRY=
FREQ_BAND=2.4
NEW_MACADDR=
DAEMONIZE=0
DAEMON_PIDFILE=
DAEMON_LOGFILE=/dev/null
NO_HAVEGED=0
WIFI_IFACE=wlp1s0
INTERNET_IFACE=wlp1s0
SSID=MyAccessPoint
PASSPHRASE=12345678
USE_PSK=0
and...
sudo systemctl status hostapd.service
hostapd.service - Access point and authentication server for Wi-Fi and Ethernet
Loaded: loaded (/lib/systemd/system/hostapd.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2023-05-30 15:47:59 -05; 905ms ago
Docs: man:hostapd(8)
Process: 1248376 ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid $DAEMON_OPTS ${DAEMON_CONF} (code=exited, status=1/FAILURE)
CPU: 4ms
Describe the bug
wihotspot
doesn't let me simultaneously enable the wifi and the hotspot. But instead, it shows me this-ERROR: Your adapter can not be a station (i.e. be connected) and an AP at the same time.
To Reproduce Steps to reproduce the behaviour:
wihotspot
command on the terminal to see the error logs.Create hotspot
button while setting both theWifi interface
and theInternet interface
to a wireless network adapter (e.g.wlp4s0
) will log an error message to the terminal.Network Adapters:
Desktop:
Updates: