Nl80211 Could Not Configure Driver Mode

Active2 years, 7 months ago

GOAL: To create an AP on one interface and allow another interface to act as a station.

SETUP:

Device(s):

  1. Raspberry Pi 3 (on board chip = AP)

  2. TL-WN725N (station)

Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Encryption key:off. Nl80211: Could not configure driver mode nl80211: deinit ifname=wlan1 disabled11brates=0 wlan1: Failed to initialize driver interface. Dec 02, 2014  Hello, Using builtin wlan0 and an external Alfa NHA as wlan1, starting up shows the following errors:- nl80211: could not configure driver mode nl80211: driver initialisation failed hostapdfreehapddata: interface wlan1 wasn't started.

HostAPD will not start.

cmd: sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf

Configure

output:

cmd: hostapd -dd /etc/hostapd/hostapd.conf

output:

cmd: iw list

output:

FILE: /etc/hostapd/hostapd.conf

FILE: /etc/network/interfaces

FILE: /etc/wpa_supplicant/wpa_supplicant.conf

iptables Configuration(s):

Nicholas Adamou
Nicholas AdamouNicholas Adamou

1 Answer

Download and run the following script as sudo:

pifi.sh : https://github.com/NicholasAdamou/PiFi/raw/master/pifi.sh

It's a script that I made to fix the above issue.

How did I fix it?

The HostAPD binary didn't have the correct firmware for the wireless adapter I was using.

The above script will allow you to setup a a Raspberry Pi as a PiFi Wireless Repeater.

Nicholas AdamouNicholas Adamou

Not the answer you're looking for? Browse other questions tagged linuxnetworkingwireless-networkingrouterraspberry-pi or ask your own question.

Active2 years, 11 months ago

I would configure my Rapsberry Pi B to create a WiFi network in bridge mode (without DHCP daemon on raspberry).

I followed this Guide Use Your Raspberry Pi as WiFi Bridge.

My wlan adtpater is Alpa AWUS036H and this is lsusb output:

I configured Hostapd ( /etc/hostapd/hostapd.conf) with this settings:

When i run $ hostapd -dd /etc/hostapd/hostapd.conf this is the output:

Why my Wlan adapter can't start in master mode? Is the driver correct?

Any suggestions?

Thanks!

FedericoFederico

2 Answers

Why my Wlan adapter can't start in master mode?

Not all wifi adapters are built for this purpose, and 'Operation not supported' implies this is one of them.

This archived post from the linux wireless mail list a few years supports that:

Nl80211 could not configure driver mode openwrt

I own an Alfa AWUS036H network adapter using the rtl8187 driver [...] which apparently requires master mode to be enabled in the driver. The page http://linuxwireless.org/en/users/Drivers/rtl8187 states: not working yet: AP/Master mode
What means yet? Is it planned to add master mode support in the near future?

In the case of the RTL8187L, which is the chip in your Alfa device, it means never. That chip only has a single hardware transmit queue and the work of getting the high-priority traffic, such as beacons, transmitted at the correct time would be much more than it would be worth.

To summarize: You are out of luck, that device cannot be used as an access point.

goldilocksgoldilocks
46.9k11 gold badges68 silver badges184 bronze badges

goldilocks is right, your chipset is not supported. If you decide to obtain a new wireless adapter, I invite you to check this wiki page listing essential options provided by various WIFI chipsets. The capability required by hostapd is called AP (short for Access Point). For example, take a look at your current chipset, RTL8187:

Personally, I use adapters with Ralink chipset, as you can see almost all chipsets from them support AP mode.

Nl80211 Could Not Configure Driver Mode Rpi

Dmitry GrigoryevDmitry Grigoryev

Arch Linux Nl80211 Could Not Configure Driver Mode

9,0583 gold badges21 silver badges62 bronze badges

Hostapd.conf Nl80211 Could Not Configure Driver Mode

Not the answer you're looking for? Browse other questions tagged raspbianwifihotspotrealtek or ask your own question.