2013-11-30 17:26:13

by devendra.aaru

[permalink] [raw]
Subject: unable to set iwlwifi master mode

Hello,

I was trying to use my intel wireless device as an AP. I used hostapd (1.1).

It seem to be that i couldn't able to get it working.

My hostapd config:

interface=wlp3s0
driver=nl80211
country_code=US
ieee80211d=1
ssid=testhostapd
channel=1
hw_mode=g
auth_algs=1
wpa=3
wpa_passphrase=mypassword
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
rsn_pairwise=CCMP

I have got the following output when i run hostapd -ddd hostapd.conf

random: Trying to read entropy from /dev/random
Configuration file: 1
nl80211: interface wlp3s0 in phy phy0
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
nl80211: Using driver-based off-channel TX
nl80211: Register frame command failed (type=208): ret=-114 (Operation
already in progress)
nl80211: Register frame match - hexdump(len=1): 06
nl80211: Failed to register Action frame processing - ignore for now
nl80211: Add own interface ifindex 3
nl80211: Set mode ifindex 3 iftype 3 (AP)
nl80211: Failed to set interface 3 to mode 3: -95 (Operation not supported)
nl80211: Interface already in requested mode - ignore error
nl80211: Create interface iftype 6 (MONITOR)
nl80211: New interface mon.wlp3s0 created: ifindex=15
nl80211: Add own interface ifindex 15
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
nl80211: Regulatory information - country=US
nl80211: 2402-2472 @ 40 MHz
nl80211: 5170-5250 @ 40 MHz
nl80211: 5250-5330 @ 40 MHz
nl80211: 5490-5600 @ 40 MHz
nl80211: 5650-5710 @ 40 MHz
nl80211: 5735-5835 @ 40 MHz
nl80211: 57240-63720 @ 2160 MHz
nl80211: Added 802.11b mode based on 802.11g information
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=14 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=14 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=14 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=14 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=14 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=14 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=14 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=14 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=14 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=14 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=14 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=14 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=14 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=14 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=14 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=14 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=14 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=14 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=14 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=14 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=14 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=14 dBm
Completing interface initialization
Mode: IEEE 802.11g Channel: 1 Frequency: 2412 MHz
nl80211: Set freq 2412 (ht_enabled=0 sec_channel_offset=0)
nl80211: Failed to set channel (freq=2412): -16 (Device or resource busy)
Could not set channel for kernel driver
wlp3s0: Unable to setup interface.
Flushing old station entries
Could not connect to kernel driver.
Deauthenticate all stations
nl80211: Remove interface ifindex=15
netlink: Operstate: linkmode=0, operstate=6
nl80211: Set mode ifindex 3 iftype 2 (STATION)

-------------------------------------------x------------------------------------
Seems that the setting of channel is failing

and i tried with iwconfig wlp3s0 channel 6. It says

Error for wireless request "Set Frequency" (8B04) :
SET failed on device wlp3s0 ; Device or resource busy.

What could be the possible mistake?

in case:

lspci -v output:

03:00.0 Network controller: Intel Corporation Centrino Wireless-N 1000
[Condor Peak]
Subsystem: Intel Corporation Centrino Wireless-N 1000 BGN
Flags: bus master, fast devsel, latency 0, IRQ 45
Memory at f2400000 (64-bit, non-prefetchable) [size=8K]
Capabilities: [c8] Power Management version 3
Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [e0] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number 00-26-c7-ff-ff-51-11-1a
Kernel driver in use: iwlwifi

Thanks


2013-11-30 18:24:11

by devendra.aaru

[permalink] [raw]
Subject: Re: unable to set iwlwifi master mode

On Sat, Nov 30, 2013 at 1:20 PM, Christian Lamparter
<[email protected]> wrote:
> Hi,
>
> On Saturday 30 November 2013 12:26:11 devendra.aaru wrote:
>> I was trying to use my intel wireless device as an AP.
>>
>> It seem to be that i couldn't able to get it working.
>>
>> in case:
>>
>> 03:00.0 Network controller: Intel Corporation Centrino Wireless-N 1000
>
>
>> What could be the possible mistake?
> Well, The latest version I found for the IWL 1000 was/is v39.31.5.1 Build
> 35138. It looks like this version doesn't "support" AP or P2P mode... and
> it looks like it won't be coming.
>
> You probably want to look for a replacement card. However, if you are using
> a laptop, this might be difficult. Some vendor bios' have a wifi whitelist
> and you have to ask your laptop vendor for the list first or "get creative".
>
> Regards,
>
> Christian

I am using a laptop, so it won't work out for me. Does this version
you are talking
is about the firmware? If so changing it might help out?

2013-11-30 19:07:57

by Christian Lamparter

[permalink] [raw]
Subject: Re: unable to set iwlwifi master mode

On Saturday 30 November 2013 13:24:10 devendra.aaru wrote:
> On Sat, Nov 30, 2013 at 1:20 PM, Christian Lamparter
> <[email protected]> wrote:
> > Hi,
> >
> > On Saturday 30 November 2013 12:26:11 devendra.aaru wrote:
> >> I was trying to use my intel wireless device as an AP.
> >>
> >> It seem to be that i couldn't able to get it working.
> >>
> >> in case:
> >>
> >> 03:00.0 Network controller: Intel Corporation Centrino Wireless-N 1000
> >
> >
> >> What could be the possible mistake?
> > Well, The latest version I found for the IWL 1000 was/is v39.31.5.1 Build
> > 35138. It looks like this version doesn't "support" AP or P2P mode... and
> > it looks like it won't be coming.
> >
> > You probably want to look for a replacement card. However, if you are using
> > a laptop, this might be difficult. Some vendor bios' have a wifi whitelist
> > and you have to ask your laptop vendor for the list first or "get creative".
> >
> > Regards,
> >
> > Christian
>
> I am using a laptop, so it won't work out for me.
Think about it. I can tell you from my experience: This is less of a hassle.

> Does this version you are talking is about the firmware?
Oh yes. Sorry. I must have dropped the "firmware" while editing.
It should have said: "Well, the latest firmware version I found..."

> If so changing it might help out?
If you can find/get a firmware version for the device which supports it:
"probably yes". You can check if a firmware supports the mode by loading
iwlwifi/iwldvm driver and use the iw tool [0].

# iw list

This will produce a list of all capabilities of each (available) wifi
device in the system. Among the print out there's an entry called
"Supported interface modes". It should look something like this:

Supported interface modes:
* managed
* AP <---
* AP/VLAN <---
* ...

(This is from a IWL 7260).

Good luck while scanning through intel's firmware repository
(sorry, can't help you there).

Regards,

Christian

[0] <http://wireless.kernel.org/en/users/Documentation/iw>

2013-11-30 17:48:53

by Larry Finger

[permalink] [raw]
Subject: Re: unable to set iwlwifi master mode

On 11/30/2013 11:26 AM, devendra.aaru wrote:
> Hello,
>
> I was trying to use my intel wireless device as an AP. I used hostapd (1.1).
>
> It seem to be that i couldn't able to get it working.
>
> My hostapd config:
>
> interface=wlp3s0
> driver=nl80211
> country_code=US
> ieee80211d=1
> ssid=testhostapd
> channel=1
> hw_mode=g
> auth_algs=1
> wpa=3
> wpa_passphrase=mypassword
> wpa_key_mgmt=WPA-PSK
> wpa_pairwise=TKIP CCMP
> rsn_pairwise=CCMP
>
> I have got the following output when i run hostapd -ddd hostapd.conf
>
> random: Trying to read entropy from /dev/random
> Configuration file: 1
> nl80211: interface wlp3s0 in phy phy0
> rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
> nl80211: Using driver-based off-channel TX
> nl80211: Register frame command failed (type=208): ret=-114 (Operation
> already in progress)
> nl80211: Register frame match - hexdump(len=1): 06
> nl80211: Failed to register Action frame processing - ignore for now
> nl80211: Add own interface ifindex 3
> nl80211: Set mode ifindex 3 iftype 3 (AP)
> nl80211: Failed to set interface 3 to mode 3: -95 (Operation not supported)
> nl80211: Interface already in requested mode - ignore error
> nl80211: Create interface iftype 6 (MONITOR)
> nl80211: New interface mon.wlp3s0 created: ifindex=15
> nl80211: Add own interface ifindex 15
> BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
> nl80211: Regulatory information - country=US
> nl80211: 2402-2472 @ 40 MHz
> nl80211: 5170-5250 @ 40 MHz
> nl80211: 5250-5330 @ 40 MHz
> nl80211: 5490-5600 @ 40 MHz
> nl80211: 5650-5710 @ 40 MHz
> nl80211: 5735-5835 @ 40 MHz
> nl80211: 57240-63720 @ 2160 MHz
> nl80211: Added 802.11b mode based on 802.11g information
> Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=14 dBm
> Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=14 dBm
> Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=14 dBm
> Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=14 dBm
> Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=14 dBm
> Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=14 dBm
> Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=14 dBm
> Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=14 dBm
> Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=14 dBm
> Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=14 dBm
> Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=14 dBm
> Completing interface initialization
> Mode: IEEE 802.11g Channel: 1 Frequency: 2412 MHz
> nl80211: Set freq 2412 (ht_enabled=0 sec_channel_offset=0)
> nl80211: Failed to set channel (freq=2412): -16 (Device or resource busy)
> Could not set channel for kernel driver
> wlp3s0: Unable to setup interface.
> Flushing old station entries
> Could not connect to kernel driver.
> Deauthenticate all stations
> nl80211: Remove interface ifindex=15
> netlink: Operstate: linkmode=0, operstate=6
> nl80211: Set mode ifindex 3 iftype 2 (STATION)
>
> -------------------------------------------x------------------------------------
> Seems that the setting of channel is failing
>
> and i tried with iwconfig wlp3s0 channel 6. It says
>
> Error for wireless request "Set Frequency" (8B04) :
> SET failed on device wlp3s0 ; Device or resource busy.
>
> What could be the possible mistake?
>
> in case:
>
> lspci -v output:
>
> 03:00.0 Network controller: Intel Corporation Centrino Wireless-N 1000
> [Condor Peak]
> Subsystem: Intel Corporation Centrino Wireless-N 1000 BGN
> Flags: bus master, fast devsel, latency 0, IRQ 45
> Memory at f2400000 (64-bit, non-prefetchable) [size=8K]
> Capabilities: [c8] Power Management version 3
> Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
> Capabilities: [e0] Express Endpoint, MSI 00
> Capabilities: [100] Advanced Error Reporting
> Capabilities: [140] Device Serial Number 00-26-c7-ff-ff-51-11-1a
> Kernel driver in use: iwlwifi

Are you using hostapd v2.0? If so, there seems to be a bug that breaks *ALL*
nl80211 configurations. I reported it, but so far there is no response.

Switching back to v1.1 of hostapd worked for me.

Larry


2013-11-30 18:20:26

by Christian Lamparter

[permalink] [raw]
Subject: Re: unable to set iwlwifi master mode

Hi,

On Saturday 30 November 2013 12:26:11 devendra.aaru wrote:
> I was trying to use my intel wireless device as an AP.
>
> It seem to be that i couldn't able to get it working.
>
> in case:
>
> 03:00.0 Network controller: Intel Corporation Centrino Wireless-N 1000


> What could be the possible mistake?
Well, The latest version I found for the IWL 1000 was/is v39.31.5.1 Build
35138. It looks like this version doesn't "support" AP or P2P mode... and
it looks like it won't be coming.

You probably want to look for a replacement card. However, if you are using
a laptop, this might be difficult. Some vendor bios' have a wifi whitelist
and you have to ask your laptop vendor for the list first or "get creative".

Regards,

Christian

2013-11-30 23:37:48

by Naughtboy

[permalink] [raw]
Subject: Re: unable to set iwlwifi master mode

you shoud set frepue in the hostapd.conf
just add channel=6 ok
and lost of things can immplient in the hostapd.conf


if you keep on use iwconfig command to set frequecny
the above all things should complited by iwconfrig ,or when you run
hostapd and the hostapd will choose the default channel (channel 1)for
the wireless driver

2013/12/1 devendra.aaru <[email protected]>:
> Hello,
>
> I was trying to use my intel wireless device as an AP. I used hostapd (1.1).
>
> It seem to be that i couldn't able to get it working.
>
> My hostapd config:
>
> interface=wlp3s0
> driver=nl80211
> country_code=US
> ieee80211d=1
> ssid=testhostapd
> channel=1
> hw_mode=g
> auth_algs=1
> wpa=3
> wpa_passphrase=mypassword
> wpa_key_mgmt=WPA-PSK
> wpa_pairwise=TKIP CCMP
> rsn_pairwise=CCMP
>
> I have got the following output when i run hostapd -ddd hostapd.conf
>
> random: Trying to read entropy from /dev/random
> Configuration file: 1
> nl80211: interface wlp3s0 in phy phy0
> rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
> nl80211: Using driver-based off-channel TX
> nl80211: Register frame command failed (type=208): ret=-114 (Operation
> already in progress)
> nl80211: Register frame match - hexdump(len=1): 06
> nl80211: Failed to register Action frame processing - ignore for now
> nl80211: Add own interface ifindex 3
> nl80211: Set mode ifindex 3 iftype 3 (AP)
> nl80211: Failed to set interface 3 to mode 3: -95 (Operation not supported)
> nl80211: Interface already in requested mode - ignore error
> nl80211: Create interface iftype 6 (MONITOR)
> nl80211: New interface mon.wlp3s0 created: ifindex=15
> nl80211: Add own interface ifindex 15
> BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
> nl80211: Regulatory information - country=US
> nl80211: 2402-2472 @ 40 MHz
> nl80211: 5170-5250 @ 40 MHz
> nl80211: 5250-5330 @ 40 MHz
> nl80211: 5490-5600 @ 40 MHz
> nl80211: 5650-5710 @ 40 MHz
> nl80211: 5735-5835 @ 40 MHz
> nl80211: 57240-63720 @ 2160 MHz
> nl80211: Added 802.11b mode based on 802.11g information
> Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=14 dBm
> Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=14 dBm
> Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=14 dBm
> Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=14 dBm
> Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=14 dBm
> Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=14 dBm
> Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=14 dBm
> Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=14 dBm
> Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=14 dBm
> Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=14 dBm
> Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=14 dBm
> Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=14 dBm
> Completing interface initialization
> Mode: IEEE 802.11g Channel: 1 Frequency: 2412 MHz
> nl80211: Set freq 2412 (ht_enabled=0 sec_channel_offset=0)
> nl80211: Failed to set channel (freq=2412): -16 (Device or resource busy)
> Could not set channel for kernel driver
> wlp3s0: Unable to setup interface.
> Flushing old station entries
> Could not connect to kernel driver.
> Deauthenticate all stations
> nl80211: Remove interface ifindex=15
> netlink: Operstate: linkmode=0, operstate=6
> nl80211: Set mode ifindex 3 iftype 2 (STATION)
>
> -------------------------------------------x------------------------------------
> Seems that the setting of channel is failing
>
> and i tried with iwconfig wlp3s0 channel 6. It says
>
> Error for wireless request "Set Frequency" (8B04) :
> SET failed on device wlp3s0 ; Device or resource busy.
>
> What could be the possible mistake?
>
> in case:
>
> lspci -v output:
>
> 03:00.0 Network controller: Intel Corporation Centrino Wireless-N 1000
> [Condor Peak]
> Subsystem: Intel Corporation Centrino Wireless-N 1000 BGN
> Flags: bus master, fast devsel, latency 0, IRQ 45
> Memory at f2400000 (64-bit, non-prefetchable) [size=8K]
> Capabilities: [c8] Power Management version 3
> Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
> Capabilities: [e0] Express Endpoint, MSI 00
> Capabilities: [100] Advanced Error Reporting
> Capabilities: [140] Device Serial Number 00-26-c7-ff-ff-51-11-1a
> Kernel driver in use: iwlwifi
>
> Thanks
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html