Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DietPi-Software | WiFi Hostspot fails with Netgear WPN111 #2869

Closed
leealder opened this issue May 29, 2019 · 12 comments
Closed

DietPi-Software | WiFi Hostspot fails with Netgear WPN111 #2869

leealder opened this issue May 29, 2019 · 12 comments

Comments

@leealder
Copy link

leealder commented May 29, 2019



Details:

  • Date | Wed 29 May 15:31:13 BST 2019
  • Bug report | N/A
  • DietPi version | v6.24.1 (MichaIng/master)
  • Img creator | DietPi Core Team
  • Pre-image | Raspbian Lite
  • SBC device | RPi 3 Model B (armv7l) (index=3)
  • Kernel version | General | Update VM images to Stretch #1219 SMP Tue May 14 21:20:58 BST 2019
  • Distro | buster (index=5)
  • Command | systemctl start hostapd
  • Exit code | 1
  • Software title | DietPi-Config

Steps to reproduce:

  1. ...Install item v86 #60 "WiFi HostSpot"
  2. ...

Expected behaviour:

  • ... become HotSpot

Actual behaviour:

  • ... hostapd.service ends in error

Extra details:

  • ...

Additional logs:

Log file contents:
Job for hostapd.service failed because the control process exited with error code.
See "systemctl status hostapd.service" and "journalctl -xe" for details.
root@DietPi:~# systemctl status hostapd.service
● 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: activating (auto-restart) (Result: exit-code) since Wed 2019-05-29 15:59:20 BST; 1s ago
  Process: 2204 ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid -B $DAEMON_OPTS ${DAEMON_CONF} (code=exited, status=1/FAILURE)
root@DietPi:~# 
@MichaIng
Copy link
Owner

@leealder
Many thanks for your report.

Please try it with the Raspberry Pi repo binary: apt install --reinstall hostapd

@MichaIng MichaIng added this to the v6.25 milestone May 29, 2019
@MichaIng
Copy link
Owner

I will change this to be the default on RPis, especially since this package/driver seems to support even RTL8188CU* WiFi chips.

@leealder
Copy link
Author

leealder commented May 29, 2019 via email

@MichaIng
Copy link
Owner

@leealder
Jep, no worries. Simply copy paste the apt command I posted above. Afterwards you should be able to enable the WiFi Hotspot.

@Fray2000
Copy link

Hi, the command apt install --reinstall hostapd does not work properly for me.
I am using a Netgear, Inc WPN111 RangeMax(TM) Wireless USB 2.0 Adapter with the same chip.

@MichaIng
Copy link
Owner

MichaIng commented Jun 11, 2019

@Fray2000
This is on Raspberry Pi as well? Which model? echo $G_HW_MODEL

Please paste the output of: hostapd /etc/hostapd/hostapd.conf and apt policy hostapd

@Fray2000
Copy link

Fray2000 commented Jun 12, 2019

Here is the output :

root@DietPi:~# echo $G_HW_MODEL
2
root@DietPi:~# hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
nl80211: Could not configure driver mode
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211 driver initialization failed.
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED
hostapd_free_hapd_data: Interface wlan0 wasn't started
root@DietPi:~# apt policy hostapd
hostapd:
  Installed: 2:2.6-21~bpo9~rpt1
  Candidate: 2:2.6-21~bpo9~rpt1
  Version table:
 *** 2:2.6-21~bpo9~rpt1 500
        500 https://archive.raspberrypi.org/debian stretch/main armhf Packages
        100 /var/lib/dpkg/status
     2:2.4-1+deb9u4 500
        500 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages
root@DietPi:~#

@MichaIng
Copy link
Owner

@Fray2000
Please paste lsusb to check WiFi chip. I could not reliable get it from web search.

nl80211: Could not configure driver mode
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211 driver initialization failed.

  • Hmm at least worth to try to use the default "hostap" driver:
sed -i '/^driver=/d' /etc/hostapd/hostapd.conf
hostapd /etc/hostapd/hostapd.conf

@MichaIng MichaIng changed the title Dietpi Software: Wifi Hostspot DietPi-Software | WiFi Hostspot fails with Netgear WPN111 Jun 16, 2019
@Fray2000
Copy link

Fray2000 commented Jun 21, 2019

Sorry for the massive delay but i was having exams.
Here is the output :

root@DietPi:~# lsusb
Bus 001 Device 004: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 006: ID 1385:5f00 Netgear, Inc WPN111 RangeMax(TM) Wireless USB 2.0 Adapter
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Same Netgear product, the WPN111. It is an old wifi usb key and maybe have trouble with old drivers no more supported?

@MichaIng
Copy link
Owner

@Fray2000

Sorry for the massive delay but i was having exams.

I hope everything went satisfying 😃.

Hmm no hint about RTL8188CU* chip.
Did you try:

sed -i '/^driver=/d' /etc/hostapd/hostapd.conf
hostapd /etc/hostapd/hostapd.conf

Last test with the very latest binaries:
hostapd.zip

cd /tmp
wget https://github.com/MichaIng/DietPi/files/3316797/hostapd.zip
unzip https://github.com/MichaIng/DietPi/files/3316797/hostapd.zip
rm hostapd.zip
mv hostapd $(which hostapd)
mv hostapt_cli $(which hostapd_cli)
G_CONFIG_INJECT 'driver=' 'driver=nl80211' /etc/hostapd/hostapd.conf
hostapd /etc/hostapd/hostapd.conf

If this does not work then yeah, I am afraid either this dongle does not support AP mode or at least the hostapd drivers do not support it.

@MichaIng MichaIng modified the milestones: v6.25, v6.26 Jun 24, 2019
@MichaIng MichaIng removed this from the v6.26 milestone Sep 3, 2019
@MichaIng
Copy link
Owner

MichaIng commented Oct 18, 2019

@Fray2000
If this is still an issue, since some time has passed, please retry with latest RPi firmware and latest hostapd package from RPi repo.

Else, as said above, hostapd simply does not support all WiFi adapters, respectively not all WiFi adapters support AP mode at all. Probably contacting Netgear support about it would be an idea.

@MichaIng
Copy link
Owner

I mark this issue as closed due to missing user reply. It could be resolved meanwhile kernel-wise, otherwise this WiFi adapter might simply not support AP/hotspot mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants