2014-01-22 09:51:03

by Zhu Yanjun

[permalink] [raw]
Subject: 802.11a is supported in AP mode or not?

Hi, maintainers

I made tests on ubuntu 13.10. I followed these steps.
From the following logs, we can see 802.11a is not supported in channel
list.
I want to know whether 802.11a supports this or not? Or 802.11a is not
used in this?
Chip is 6205. lspci -vvv is as below.

Thanks a lot.
Zhu Yanjun

1. installed ubuntu 13.10 client

2. git clone
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git linux-git

3. apt-get install kernel-package

4. make-kpkg --initrd --append-to-version=-test-iwlwifi kernel_image
kernel-headers

5. dpkg -i linux-headers-
dpkg -i linux-images-

6.reboot ubuntu 13.10

7. $ vi /etc/hostapd.conf
interface=wlan0
driver=nl80211
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=test
country_code=US
hw_mode=a
channel=2
beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=2347
fragm_threshold=2346
macaddr_acl=0
auth_algs=3
ignore_broadcast_ssid=0
wmm_enabled=1
wmm_ac_bk_cwmin=4
wmm_ac_bk_cwmax=10
wmm_ac_bk_aifs=7
wmm_ac_bk_txop_limit=0
wmm_ac_bk_acm=0
wmm_ac_be_aifs=3
wmm_ac_be_cwmin=4
wmm_ac_be_cwmax=10
wmm_ac_be_txop_limit=0
wmm_ac_be_acm=0
wmm_ac_vi_aifs=2
wmm_ac_vi_cwmin=3
wmm_ac_vi_cwmax=4
wmm_ac_vi_txop_limit=94
wmm_ac_vi_acm=0
wmm_ac_vo_aifs=2
wmm_ac_vo_cwmin=2
wmm_ac_vo_cwmax=3
wmm_ac_vo_txop_limit=47
wmm_ac_vo_acm=0
eap_server=0
wpa=2
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
wpa_group_rekey=600
wpa_gmk_rekey=86400

8. hostapd -B /etc/hostapd.conf -dd
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd.conf
ctrl_interface_group=0
nl80211: interface wlan0 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=2): 04 0a
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: Create interface iftype 6 (MONITOR)
nl80211: New interface mon.wlan0 created: ifindex=4
nl80211: Add own interface ifindex 4
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz
nl80211: 2457-2482 @ 40 MHz
nl80211: 2474-2494 @ 20 MHz
nl80211: 5170-5250 @ 40 MHz
nl80211: 5735-5835 @ 40 MHz
nl80211: Added 802.11b mode based on 802.11g information
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=15 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=15 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=15 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=15 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=15 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=15 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=15 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=15 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=15 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=15 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=15 dBm
wlan0: IEEE 802.11 Configured channel (1) not found from the channel
list of current mode (2) IEEE 802.11a
wlan0: IEEE 802.11 Hardware does not support configured channel
Could not select hw_mode and channel. (-4)
wlan0: Unable to setup interface.
Flushing old station entries
Deauthenticate all stations
rmdir[ctrl_interface]: No such file or directory
nl80211: Remove interface ifindex=4
netlink: Operstate: linkmode=0, operstate=6
nl80211: Set mode ifindex 3 iftype 2 (STATION)

lspci -vvv

01:00.0 Network controller: Intel Corporation Centrino Advanced-N 6205
[Taylor Peak] (rev 34)
Subsystem: Intel Corporation Centrino Advanced-N 6205 AGN
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 45
Region 0: Memory at f7500000 (64-bit, non-prefetchable) [size=8K]
Capabilities: [c8] Power Management version 3
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA
PME(D0+,D1-,D2-,D3hot+,D3cold+)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Address: 00000000fee003d8 Data: 0000
Capabilities: [e0] Express (v1) Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s
<512ns, L1 unlimited
ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset+
DevCtl: Report errors: Correctable- Non-Fatal- Fatal-
Unsupported-
RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop+ FLReset-
MaxPayload 128 bytes, MaxReadReq 128 bytes
DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+
TransPend-
LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1,
Latency L0 <4us, L1 <32us
ClockPM+ Surprise- LLActRep- BwNot-
LnkCtl: ASPM L1 Enabled; RCB 64 bytes Disabled- Retrain-
CommClk+
ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+
DLActive- BWMgmt- ABWMgmt-
Capabilities: [100 v1] Advanced Error Reporting
UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt-
RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt-
RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UESvrt: DLP+ SDES- TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt-
RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
AERCap: First Error Pointer: 00, GenCap- CGenEn- ChkCap- ChkEn-
Capabilities: [140 v1] Device Serial Number a0-88-b4-ff-ff-70-91-20
Kernel driver in use: iwlwifi



2014-01-24 06:26:07

by Liu, Bopeng

[permalink] [raw]
Subject: RE: 802.11a is supported in AP mode or not?

I just check the chip 6205's spec. it said it supports the SoftAP with Mode A,

but why the AP in mode A can't be used?

Best Regards.
--------------------------------------
Bopeng Liu
WIND RIVER | China Development Center
Phone: 8610-6483-5012



________________________________________
From: Emmanuel Grumbach [[email protected]]
Sent: Thursday, January 23, 2014 5:27 PM
To: Liu, Bopeng
Cc: Krishna Chaitanya; zhuyj; linux-wireless
Subject: Re: 802.11a is supported in AP mode or not?

On Thu, Jan 23, 2014 at 11:21 AM, Liu, Bopeng <[email protected]> wrote:
>
>
> So,it that mean: there is no way to fix this problem by modify the kernel and driver codes?
Yes

>
> Though #iwconfig wlan0 shows there is modes a ?

In client mode - not in AP mode
>
> iwconfig wlan0
> wlan0 IEEE 802.11abgn ESSID:"IDPDK-169c"
> Mode:Managed Frequency:2.462 GHz Access Point: A0:88:B4:1E:16:9C
> Bit Rate=1 Mb/s Tx-Power=15 dBm
> Retry long limit:7 RTS thr:off Fragment thr:off
> Encryption key:off
> Power Management:off
> Link Quality=60/70 Signal level=-50 dBm
> Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
> Tx excessive retries:0 Invalid misc:14 Missed beacon:0
>
>

2014-01-22 10:47:23

by Liu, Bopeng

[permalink] [raw]
Subject: RE: 802.11a is supported in AP mode or not?

root@WR-IntelligentDevice:~# lspci -v | grep 6205
01:00.0 Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 34)
Subsystem: Intel Corporation Centrino Advanced-N 6205 AGN
root@WR-IntelligentDevice:~#


Best Regards.
--------------------------------------
Bopeng Liu
WIND RIVER | China Development Center
Phone: 8610-6483-5012



________________________________________
From: zhuyj [[email protected]]
Sent: Wednesday, January 22, 2014 6:33 PM
To: [email protected]
Cc: zhuyj; Liu, Bopeng
Subject: Re: 802.11a is supported in AP mode or not?

Hi, maintainers

The kernel version:

uname -a
Linux wind-desktop 3.13.0-test-iwlwifi #1 SMP Mon Jan 20 18:54:22 CST
2014 x86_64 x86_64 x86_64 GNU/Linux

Any reply is appreciated.

Best Regards!
Zhu Yanjun
On 01/22/2014 05:50 PM, zhuyj wrote:
> Hi, maintainers
>
> I made tests on ubuntu 13.10. I followed these steps.
> From the following logs, we can see 802.11a is not supported in
> channel list.
> I want to know whether 802.11a supports this or not? Or 802.11a is not
> used in this?
> Chip is 6205. lspci -vvv is as below.
>
> Thanks a lot.
> Zhu Yanjun
>
> 1. installed ubuntu 13.10 client
>
> 2. git clone
> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> linux-git
>
> 3. apt-get install kernel-package
>
> 4. make-kpkg --initrd --append-to-version=-test-iwlwifi kernel_image
> kernel-headers
>
> 5. dpkg -i linux-headers-
> dpkg -i linux-images-
>
> 6.reboot ubuntu 13.10
>
> 7. $ vi /etc/hostapd.conf
> interface=wlan0
> driver=nl80211
> logger_syslog=-1
> logger_syslog_level=2
> logger_stdout=-1
> logger_stdout_level=2
> dump_file=/tmp/hostapd.dump
> ctrl_interface=/var/run/hostapd
> ctrl_interface_group=0
> ssid=test
> country_code=US
> hw_mode=a
> channel=2
> beacon_int=100
> dtim_period=2
> max_num_sta=255
> rts_threshold=2347
> fragm_threshold=2346
> macaddr_acl=0
> auth_algs=3
> ignore_broadcast_ssid=0
> wmm_enabled=1
> wmm_ac_bk_cwmin=4
> wmm_ac_bk_cwmax=10
> wmm_ac_bk_aifs=7
> wmm_ac_bk_txop_limit=0
> wmm_ac_bk_acm=0
> wmm_ac_be_aifs=3
> wmm_ac_be_cwmin=4
> wmm_ac_be_cwmax=10
> wmm_ac_be_txop_limit=0
> wmm_ac_be_acm=0
> wmm_ac_vi_aifs=2
> wmm_ac_vi_cwmin=3
> wmm_ac_vi_cwmax=4
> wmm_ac_vi_txop_limit=94
> wmm_ac_vi_acm=0
> wmm_ac_vo_aifs=2
> wmm_ac_vo_cwmin=2
> wmm_ac_vo_cwmax=3
> wmm_ac_vo_txop_limit=47
> wmm_ac_vo_acm=0
> eap_server=0
> wpa=2
> wpa_passphrase=12345678
> wpa_key_mgmt=WPA-PSK
> wpa_pairwise=TKIP CCMP
> wpa_group_rekey=600
> wpa_gmk_rekey=86400
>
> 8. hostapd -B /etc/hostapd.conf -dd
> random: Trying to read entropy from /dev/random
> Configuration file: /etc/hostapd.conf
> ctrl_interface_group=0
> nl80211: interface wlan0 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=2): 04 0a
> 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: Create interface iftype 6 (MONITOR)
> nl80211: New interface mon.wlan0 created: ifindex=4
> nl80211: Add own interface ifindex 4
> BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
> nl80211: Regulatory information - country=00
> nl80211: 2402-2472 @ 40 MHz
> nl80211: 2457-2482 @ 40 MHz
> nl80211: 2474-2494 @ 20 MHz
> nl80211: 5170-5250 @ 40 MHz
> nl80211: 5735-5835 @ 40 MHz
> nl80211: Added 802.11b mode based on 802.11g information
> Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=15 dBm
> wlan0: IEEE 802.11 Configured channel (1) not found from the channel
> list of current mode (2) IEEE 802.11a
> wlan0: IEEE 802.11 Hardware does not support configured channel
> Could not select hw_mode and channel. (-4)
> wlan0: Unable to setup interface.
> Flushing old station entries
> Deauthenticate all stations
> rmdir[ctrl_interface]: No such file or directory
> nl80211: Remove interface ifindex=4
> netlink: Operstate: linkmode=0, operstate=6
> nl80211: Set mode ifindex 3 iftype 2 (STATION)
>
> lspci -vvv
>
> 01:00.0 Network controller: Intel Corporation Centrino Advanced-N 6205
> [Taylor Peak] (rev 34)
> Subsystem: Intel Corporation Centrino Advanced-N 6205 AGN
> Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B- DisINTx+
> Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
> <TAbort- <MAbort- >SERR- <PERR- INTx-
> Latency: 0, Cache Line Size: 64 bytes
> Interrupt: pin A routed to IRQ 45
> Region 0: Memory at f7500000 (64-bit, non-prefetchable) [size=8K]
> Capabilities: [c8] Power Management version 3
> Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA
> PME(D0+,D1-,D2-,D3hot+,D3cold+)
> Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
> Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
> Address: 00000000fee003d8 Data: 0000
> Capabilities: [e0] Express (v1) Endpoint, MSI 00
> DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s
> <512ns, L1 unlimited
> ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset+
> DevCtl: Report errors: Correctable- Non-Fatal- Fatal-
> Unsupported-
> RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop+ FLReset-
> MaxPayload 128 bytes, MaxReadReq 128 bytes
> DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+
> TransPend-
> LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1,
> Latency L0 <4us, L1 <32us
> ClockPM+ Surprise- LLActRep- BwNot-
> LnkCtl: ASPM L1 Enabled; RCB 64 bytes Disabled- Retrain-
> CommClk+
> ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
> LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+
> DLActive- BWMgmt- ABWMgmt-
> Capabilities: [100 v1] Advanced Error Reporting
> UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt-
> RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
> UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt-
> RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
> UESvrt: DLP+ SDES- TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt-
> RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
> CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
> CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
> AERCap: First Error Pointer: 00, GenCap- CGenEn- ChkCap-
> ChkEn-
> Capabilities: [140 v1] Device Serial Number a0-88-b4-ff-ff-70-91-20
> Kernel driver in use: iwlwifi
>
>


2014-01-23 09:20:24

by Liu, Bopeng

[permalink] [raw]
Subject: RE: 802.11a is supported in AP mode or not?

So,it that mean: there is no way to fix this problem by modify the kernel and driver codes?

Though #iwconfig wlan0 shows there is modes a ?

Best Regards.
--------------------------------------
Bopeng Liu
WIND RIVER | China Development Center
Phone: 8610-6483-5012



________________________________________
From: [email protected] [[email protected]] on behalf of Liu, Bopeng [[email protected]]
Sent: Thursday, January 23, 2014 5:07 PM
To: Krishna Chaitanya
Cc: zhuyj; Emmanuel Grumbach; linux-wireless
Subject: RE: 802.11a is supported in AP mode or not?

By using latest hostapd, version, not works as well.

Best Regards.
--------------------------------------
Bopeng Liu
WIND RIVER | China Development Center
Phone: 8610-6483-5012



________________________________________
From: Krishna Chaitanya [[email protected]]
Sent: Thursday, January 23, 2014 5:04 PM
To: Liu, Bopeng
Cc: zhuyj; Emmanuel Grumbach; linux-wireless
Subject: Re: 802.11a is supported in AP mode or not?

On Thu, Jan 23, 2014 at 2:29 PM, Liu, Bopeng <[email protected]> wrote:
> Is there any method to set the 5GHz channels be able?
>
> Please show me the command...:)
No it doesn't work that way, based on regulatory info and HW capability
the framework will decide that.

Lets give it a try with latest hostapd from git and see.

2014-01-23 08:50:37

by Zhu Yanjun

[permalink] [raw]
Subject: Re: 802.11a is supported in AP mode or not?

On 01/23/2014 04:23 PM, Emmanuel Grumbach wrote:
> On Thu, Jan 23, 2014 at 8:44 AM, zhuyj <[email protected]> wrote:
>> On 01/23/2014 02:15 PM, Krishna Chaitanya wrote:
>>> hostapd -dd -B /etc/hostapd.conf
>> root@wind-desktop:~# hostapd -dd -B /etc/hostapd.conf
>>
>> random: Trying to read entropy from /dev/random
>> Configuration file: /etc/hostapd.conf
>> ctrl_interface_group=0
>> nl80211: interface wlan0 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=2): 04 0a
>> 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: Create interface iftype 6 (MONITOR)
>> nl80211: New interface mon.wlan0 created: ifindex=4
>> nl80211: Add own interface ifindex 4
>> BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
>> nl80211: Regulatory information - country=00
>> nl80211: 2402-2472 @ 40 MHz
>> nl80211: 2457-2482 @ 40 MHz
>> nl80211: 2474-2494 @ 20 MHz
>> nl80211: 5170-5250 @ 40 MHz
>> nl80211: 5735-5835 @ 40 MHz
>> nl80211: Added 802.11b mode based on 802.11g information
>> Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=15 dBm
>> Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=15 dBm
>> Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=15 dBm
>> Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=15 dBm
>> Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=15 dBm
>> Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=15 dBm
>> Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=15 dBm
>> Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=15 dBm
>> Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=15 dBm
>> Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=15 dBm
>> Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=15 dBm
>> Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=15 dBm
>> Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=15 dBm
>> Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=15 dBm
>> Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=15 dBm
>> Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=15 dBm
>> Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=15 dBm
>> Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=15 dBm
>> Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=15 dBm
>> Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=15 dBm
>> Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=15 dBm
>> Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=15 dBm
>> wlan0: IEEE 802.11 Configured channel (1) not found from the channel list of
>> current mode (2) IEEE 802.11a
>>
>> wlan0: IEEE 802.11 Hardware does not support configured channel
>> Could not select hw_mode and channel. (-4)
>> wlan0: Unable to setup interface.
>> Flushing old station entries
>> Deauthenticate all stations
>> rmdir[ctrl_interface]: No such file or directory
>> nl80211: Remove interface ifindex=4
>> netlink: Operstate: linkmode=0, operstate=6
>> nl80211: Set mode ifindex 3 iftype 2 (STATION)
>> root@wind-desktop:~#
>>
>>
>> root@wind-desktop:~# hostapd -v
> I think you have the answer to your question, don't you?
>
Yeah, maybe the hardware can support 802.11a, but the driver does not
support 802.11a?



2014-01-22 10:33:15

by Zhu Yanjun

[permalink] [raw]
Subject: Re: 802.11a is supported in AP mode or not?

Hi, maintainers

The kernel version:

uname -a
Linux wind-desktop 3.13.0-test-iwlwifi #1 SMP Mon Jan 20 18:54:22 CST
2014 x86_64 x86_64 x86_64 GNU/Linux

Any reply is appreciated.

Best Regards!
Zhu Yanjun
On 01/22/2014 05:50 PM, zhuyj wrote:
> Hi, maintainers
>
> I made tests on ubuntu 13.10. I followed these steps.
> From the following logs, we can see 802.11a is not supported in
> channel list.
> I want to know whether 802.11a supports this or not? Or 802.11a is not
> used in this?
> Chip is 6205. lspci -vvv is as below.
>
> Thanks a lot.
> Zhu Yanjun
>
> 1. installed ubuntu 13.10 client
>
> 2. git clone
> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> linux-git
>
> 3. apt-get install kernel-package
>
> 4. make-kpkg --initrd --append-to-version=-test-iwlwifi kernel_image
> kernel-headers
>
> 5. dpkg -i linux-headers-
> dpkg -i linux-images-
>
> 6.reboot ubuntu 13.10
>
> 7. $ vi /etc/hostapd.conf
> interface=wlan0
> driver=nl80211
> logger_syslog=-1
> logger_syslog_level=2
> logger_stdout=-1
> logger_stdout_level=2
> dump_file=/tmp/hostapd.dump
> ctrl_interface=/var/run/hostapd
> ctrl_interface_group=0
> ssid=test
> country_code=US
> hw_mode=a
> channel=2
> beacon_int=100
> dtim_period=2
> max_num_sta=255
> rts_threshold=2347
> fragm_threshold=2346
> macaddr_acl=0
> auth_algs=3
> ignore_broadcast_ssid=0
> wmm_enabled=1
> wmm_ac_bk_cwmin=4
> wmm_ac_bk_cwmax=10
> wmm_ac_bk_aifs=7
> wmm_ac_bk_txop_limit=0
> wmm_ac_bk_acm=0
> wmm_ac_be_aifs=3
> wmm_ac_be_cwmin=4
> wmm_ac_be_cwmax=10
> wmm_ac_be_txop_limit=0
> wmm_ac_be_acm=0
> wmm_ac_vi_aifs=2
> wmm_ac_vi_cwmin=3
> wmm_ac_vi_cwmax=4
> wmm_ac_vi_txop_limit=94
> wmm_ac_vi_acm=0
> wmm_ac_vo_aifs=2
> wmm_ac_vo_cwmin=2
> wmm_ac_vo_cwmax=3
> wmm_ac_vo_txop_limit=47
> wmm_ac_vo_acm=0
> eap_server=0
> wpa=2
> wpa_passphrase=12345678
> wpa_key_mgmt=WPA-PSK
> wpa_pairwise=TKIP CCMP
> wpa_group_rekey=600
> wpa_gmk_rekey=86400
>
> 8. hostapd -B /etc/hostapd.conf -dd
> random: Trying to read entropy from /dev/random
> Configuration file: /etc/hostapd.conf
> ctrl_interface_group=0
> nl80211: interface wlan0 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=2): 04 0a
> 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: Create interface iftype 6 (MONITOR)
> nl80211: New interface mon.wlan0 created: ifindex=4
> nl80211: Add own interface ifindex 4
> BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
> nl80211: Regulatory information - country=00
> nl80211: 2402-2472 @ 40 MHz
> nl80211: 2457-2482 @ 40 MHz
> nl80211: 2474-2494 @ 20 MHz
> nl80211: 5170-5250 @ 40 MHz
> nl80211: 5735-5835 @ 40 MHz
> nl80211: Added 802.11b mode based on 802.11g information
> Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=15 dBm
> wlan0: IEEE 802.11 Configured channel (1) not found from the channel
> list of current mode (2) IEEE 802.11a
> wlan0: IEEE 802.11 Hardware does not support configured channel
> Could not select hw_mode and channel. (-4)
> wlan0: Unable to setup interface.
> Flushing old station entries
> Deauthenticate all stations
> rmdir[ctrl_interface]: No such file or directory
> nl80211: Remove interface ifindex=4
> netlink: Operstate: linkmode=0, operstate=6
> nl80211: Set mode ifindex 3 iftype 2 (STATION)
>
> lspci -vvv
>
> 01:00.0 Network controller: Intel Corporation Centrino Advanced-N 6205
> [Taylor Peak] (rev 34)
> Subsystem: Intel Corporation Centrino Advanced-N 6205 AGN
> Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B- DisINTx+
> Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
> <TAbort- <MAbort- >SERR- <PERR- INTx-
> Latency: 0, Cache Line Size: 64 bytes
> Interrupt: pin A routed to IRQ 45
> Region 0: Memory at f7500000 (64-bit, non-prefetchable) [size=8K]
> Capabilities: [c8] Power Management version 3
> Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA
> PME(D0+,D1-,D2-,D3hot+,D3cold+)
> Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
> Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
> Address: 00000000fee003d8 Data: 0000
> Capabilities: [e0] Express (v1) Endpoint, MSI 00
> DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s
> <512ns, L1 unlimited
> ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset+
> DevCtl: Report errors: Correctable- Non-Fatal- Fatal-
> Unsupported-
> RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop+ FLReset-
> MaxPayload 128 bytes, MaxReadReq 128 bytes
> DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+
> TransPend-
> LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1,
> Latency L0 <4us, L1 <32us
> ClockPM+ Surprise- LLActRep- BwNot-
> LnkCtl: ASPM L1 Enabled; RCB 64 bytes Disabled- Retrain-
> CommClk+
> ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
> LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+
> DLActive- BWMgmt- ABWMgmt-
> Capabilities: [100 v1] Advanced Error Reporting
> UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt-
> RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
> UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt-
> RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
> UESvrt: DLP+ SDES- TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt-
> RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
> CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
> CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
> AERCap: First Error Pointer: 00, GenCap- CGenEn- ChkCap-
> ChkEn-
> Capabilities: [140 v1] Device Serial Number a0-88-b4-ff-ff-70-91-20
> Kernel driver in use: iwlwifi
>
>


2014-01-23 08:41:22

by Liu, Bopeng

[permalink] [raw]
Subject: RE: 802.11a is supported in AP mode or not?

Thanks, but after I run the command:

iwconfig wlan0

it shows the wlan0 supports a b g n mode.

Can you give me a explanation on it?

Best Regards.
--------------------------------------
Bopeng Liu
WIND RIVER | China Development Center
Phone: 8610-6483-5012



________________________________________
From: [email protected] [[email protected]] on behalf of Liu, Bopeng [[email protected]]
Sent: Thursday, January 23, 2014 4:36 PM
To: Emmanuel Grumbach; zhuyj
Cc: Krishna Chaitanya; linux-wireless
Subject: RE: 802.11a is supported in AP mode or not?

Not yet,please tell me..... Please,thanks very much.

Best Regards.
--------------------------------------
Bopeng Liu
WIND RIVER | China Development Center
Phone: 8610-6483-5012



________________________________________
From: Emmanuel Grumbach [[email protected]]
Sent: Thursday, January 23, 2014 4:23 PM
To: zhuyj
Cc: Krishna Chaitanya; Liu, Bopeng; linux-wireless
Subject: Re: 802.11a is supported in AP mode or not?

On Thu, Jan 23, 2014 at 8:44 AM, zhuyj <[email protected]> wrote:
> On 01/23/2014 02:15 PM, Krishna Chaitanya wrote:
>>
>> hostapd -dd -B /etc/hostapd.conf
>
> root@wind-desktop:~# hostapd -dd -B /etc/hostapd.conf
>
> random: Trying to read entropy from /dev/random
> Configuration file: /etc/hostapd.conf
> ctrl_interface_group=0
> nl80211: interface wlan0 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=2): 04 0a
> 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: Create interface iftype 6 (MONITOR)
> nl80211: New interface mon.wlan0 created: ifindex=4
> nl80211: Add own interface ifindex 4
> BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
> nl80211: Regulatory information - country=00
> nl80211: 2402-2472 @ 40 MHz
> nl80211: 2457-2482 @ 40 MHz
> nl80211: 2474-2494 @ 20 MHz
> nl80211: 5170-5250 @ 40 MHz
> nl80211: 5735-5835 @ 40 MHz
> nl80211: Added 802.11b mode based on 802.11g information
> Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=15 dBm
> wlan0: IEEE 802.11 Configured channel (1) not found from the channel list of
> current mode (2) IEEE 802.11a
>
> wlan0: IEEE 802.11 Hardware does not support configured channel
> Could not select hw_mode and channel. (-4)
> wlan0: Unable to setup interface.
> Flushing old station entries
> Deauthenticate all stations
> rmdir[ctrl_interface]: No such file or directory
> nl80211: Remove interface ifindex=4
> netlink: Operstate: linkmode=0, operstate=6
> nl80211: Set mode ifindex 3 iftype 2 (STATION)
> root@wind-desktop:~#
>
>
> root@wind-desktop:~# hostapd -v

I think you have the answer to your question, don't you?

2014-01-23 09:07:38

by Liu, Bopeng

[permalink] [raw]
Subject: RE: 802.11a is supported in AP mode or not?

By using latest hostapd, version, not works as well.

Best Regards.
--------------------------------------
Bopeng Liu
WIND RIVER | China Development Center
Phone: 8610-6483-5012



________________________________________
From: Krishna Chaitanya [[email protected]]
Sent: Thursday, January 23, 2014 5:04 PM
To: Liu, Bopeng
Cc: zhuyj; Emmanuel Grumbach; linux-wireless
Subject: Re: 802.11a is supported in AP mode or not?

On Thu, Jan 23, 2014 at 2:29 PM, Liu, Bopeng <[email protected]> wrote:
> Is there any method to set the 5GHz channels be able?
>
> Please show me the command...:)
No it doesn't work that way, based on regulatory info and HW capability
the framework will decide that.

Lets give it a try with latest hostapd from git and see.

2014-01-27 21:27:10

by Anand Moon

[permalink] [raw]
Subject: Re: 802.11a is supported in AP mode or not?

Hi?All,

Prerequisite:

iw list

If there is 'AP' in the list of "Supported interface modes" your device will support the Access Point mode with hostapd.

Second if the interface is supporting 2.4 GHz then you cannot get the support for 802.11a which supports 5 GHz.
Change the hw_mode=a to hw_mode=g

To configure AP:.....
Bring the interface down
Set the interface to master mode

#ifconfig wlan0 down
#iw dev wlan0 set type managed
#ifconfig wlan0 up
# hostapd -B /tmp/hostapd.conf -dd

It worked for me, I was able to connect to this AP.

If the interface support dual band, then you need to set the freq to 5Ghz of the interface.

-Anand Moon

-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.14 (GNU/Linux)
jA0EAwMCYq3dHqTzwcVgyRxC1j+ oLxS8Yw92EIeKln+x3eAWzd7mM/ pUluRo
=0RYk
-----END PGP MESSAGE-----



On Friday, January 24, 2014 1:35 PM, "Liu, Bopeng" <[email protected]> wrote:
I just check the chip 6205's spec. it said it supports the SoftAP with Mode A, who can tell me what is the soft AP?


Best Regards.
--------------------------------------
Bopeng Liu
WIND RIVER | China Development Center
Phone: 8610-6483-5012



________________________________________

From: Emmanuel Grumbach [[email protected]]
Sent: Thursday, January 23, 2014 5:49 PM
To: Liu, Bopeng
Cc: Krishna Chaitanya; zhuyj; linux-wireless
Subject: Re: 802.11a is supported in AP mode or not?

On Thu, Jan 23, 2014 at 11:34 AM, Liu, Bopeng <[email protected]> wrote:
> But very pity, when running on the AP mode:wlan0? ? IEEE 802.11abgn? is the same....
>
> ~# iwconfig wlan0
> wlan0? ? IEEE 802.11abgn? Mode:Master? Frequency:2.412 GHz? Tx-Power=15 dBm
>? ? ? ? ? Retry? long limit:7? RTS thr:off? Fragment thr:off
>? ? ? ? ? Power Management:off
>

cool - just send a patch to fix iwconfig, but this tool is ancient and
I doubt anybody even cares.

2014-01-23 06:15:44

by Krishna Chaitanya

[permalink] [raw]
Subject: Re: 802.11a is supported in AP mode or not?

On Thu, Jan 23, 2014 at 7:30 AM, Liu, Bopeng <[email protected]> wrote:
> Thanks for your mail, but very pity, after checking, it doesn't as well. May you test it on your board?
>
>
> # iw reg get
> country US:
> (2402 - 2472 @ 40), (30, 0)
> (5170 - 5250 @ 80), (17, 0)
> (5250 - 5330 @ 80), (23, 0)
> (5735 - 5835 @ 80), (30, 0)
> (57240 - 63720 @ 2160), (40, 0)
>
> country_code=US
> hw_mode=a
> channel=149
>
> #hostapd -B /etc/hostapd.conf
> Configuration file: /etc/hostapd.conf
> channel [19] (149) is disabled for use in AP mode, flags: 0x7
> wlan0: IEEE 802.11 Configured channel (149) not found from the channel list of current mode (2) IEEE 802.11a
> wlan0: IEEE 802.11 Hardware does not support configured channel
> Could not select hw_mode and channel. (-4)
> wlan0: Unable to setup interface.
> rmdir[ctrl_interface]: No such file or directory
>
Can you use "hostapd -dd -B /etc/hostapd.conf"and send the output?
Also "hostapd -v" and "iw phy" as well.

2014-01-23 09:04:39

by Krishna Chaitanya

[permalink] [raw]
Subject: Re: 802.11a is supported in AP mode or not?

On Thu, Jan 23, 2014 at 2:29 PM, Liu, Bopeng <[email protected]> wrote:
> Is there any method to set the 5GHz channels be able?
>
> Please show me the command...:)
No it doesn't work that way, based on regulatory info and HW capability
the framework will decide that.

Lets give it a try with latest hostapd from git and see.

2014-01-23 06:37:53

by Liu, Bopeng

[permalink] [raw]
Subject: RE: 802.11a is supported in AP mode or not?

root@WR-IntelligentDevice:/etc# hostapd -dd -B /etc/hostapd.conf
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd.conf
ctrl_interface_group=0
nl80211: interface wlan0 in phy phy0
nl80211: Using driver-based off-channel TX
nl80211: Use separate P2P group interface (driver advertised support)
nl80211: Add own interface ifindex 15
nl80211: Set mode ifindex 15 iftype 3 (AP)
nl80211: Create interface iftype 6 (MONITOR)
nl80211: New interface mon.wlan0 created: ifindex=16
nl80211: Add own interface ifindex 16
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 @ 80 MHz
nl80211: 5250-5330 @ 80 MHz
nl80211: 5735-5835 @ 80 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=0 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=0 dBm
channel [19] (149) is disabled for use in AP mode, flags: 0x7
wlan0: IEEE 802.11 Configured channel (149) not found from the channel list of current mode (2) IEEE 802.11a
wlan0: IEEE 802.11 Hardware does not support configured channel
Could not select hw_mode and channel. (-4)
wlan0: Unable to setup interface.
Flushing old station entries
Deauthenticate all stations
rmdir[ctrl_interface]: No such file or directory
nl80211: Remove interface ifindex=16
netlink: Operstate: linkmode=0, operstate=6
nl80211: Set mode ifindex 15 iftype 2 (STATION)
root@WR-IntelligentDevice:/etc#


root@WR-IntelligentDevice:/etc# hostapd -v
hostapd v1.0
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2012, Jouni Malinen <[email protected]> and contributors
root@WR-IntelligentDevice:/etc#


root@WR-IntelligentDevice:/etc# iw phy
Wiphy phy0
Band 1:
Frequencies:
* 2412 MHz [1] (0.0 dBm)
* 2417 MHz [2] (0.0 dBm)
* 2422 MHz [3] (0.0 dBm)
* 2427 MHz [4] (0.0 dBm)
* 2432 MHz [5] (0.0 dBm)
* 2437 MHz [6] (0.0 dBm)
* 2442 MHz [7] (0.0 dBm)
* 2447 MHz [8] (0.0 dBm)
* 2452 MHz [9] (0.0 dBm)
* 2457 MHz [10] (0.0 dBm)
* 2462 MHz [11] (0.0 dBm)
* 2467 MHz [12] (disabled)
* 2472 MHz [13] (disabled)
Bitrates (non-HT):
* 1.0 Mbps
* 2.0 Mbps (short preamble supported)
* 5.5 Mbps (short preamble supported)
* 11.0 Mbps (short preamble supported)
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Band 2:
Frequencies:
* 5180 MHz [36] (0.0 dBm) (passive scanning, no IBSS)
* 5200 MHz [40] (0.0 dBm) (passive scanning, no IBSS)
* 5220 MHz [44] (0.0 dBm) (passive scanning, no IBSS)
* 5240 MHz [48] (0.0 dBm) (passive scanning, no IBSS)
* 5260 MHz [52] (0.0 dBm) (passive scanning, no IBSS, radar detection)
* 5280 MHz [56] (0.0 dBm) (passive scanning, no IBSS, radar detection)
* 5300 MHz [60] (0.0 dBm) (passive scanning, no IBSS, radar detection)
* 5320 MHz [64] (0.0 dBm) (passive scanning, no IBSS, radar detection)
* 5500 MHz [100] (disabled)
* 5520 MHz [104] (disabled)
* 5540 MHz [108] (disabled)
* 5560 MHz [112] (disabled)
* 5580 MHz [116] (disabled)
* 5600 MHz [120] (disabled)
* 5620 MHz [124] (disabled)
* 5640 MHz [128] (disabled)
* 5660 MHz [132] (disabled)
* 5680 MHz [136] (disabled)
* 5700 MHz [140] (disabled)
* 5745 MHz [149] (0.0 dBm) (passive scanning, no IBSS)
* 5765 MHz [153] (0.0 dBm) (passive scanning, no IBSS)
* 5785 MHz [157] (0.0 dBm) (passive scanning, no IBSS)
* 5805 MHz [161] (0.0 dBm) (passive scanning, no IBSS)
* 5825 MHz [165] (0.0 dBm) (passive scanning, no IBSS)
Bitrates (non-HT):
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
max # scan SSIDs: 20
max scan IEs length: 255 bytes
Coverage class: 0 (up to 0m)
Supported Ciphers:
* WEP40 (00-0f-ac:1)
* WEP104 (00-0f-ac:5)
* TKIP (00-0f-ac:2)
* CCMP (00-0f-ac:4)
* CMAC (00-0f-ac:6)
Available Antennas: TX 0 RX 0
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* monitor
* P2P-client
* P2P-GO
software interface modes (can always be added):
* AP/VLAN
* monitor
valid interface combinations:
* #{ managed } <= 1, #{ AP, P2P-GO } <= 1,
total <= 2, #channels <= 1, STA/AP BI must match
* #{ managed } <= 2, #{ P2P-client } <= 1,
total <= 2, #channels <= 1
Supported commands:
* new_interface
* set_interface
* new_key
* start_ap
* new_station
* new_mpath
* set_mesh_config
* set_bss
* authenticate
* associate
* deauthenticate
* disassociate
* join_ibss
* join_mesh
* remain_on_channel
* set_tx_bitrate_mask
* frame
* frame_wait_cancel
* set_wiphy_netns
* set_channel
* set_wds_peer
* probe_client
* set_noack_map
* register_beacons
* testmode
* connect
* disconnect
Supported TX frame types:
* IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
Supported RX frame types:
* IBSS: 0xd0
* managed: 0x40 0xd0
* AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* mesh point: 0xb0 0xc0 0xd0
* P2P-client: 0x40 0xd0
* P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
Device supports RSN-IBSS.
WoWLAN support:
* wake up on disconnect
* wake up on magic packet
* wake up on pattern match, up to 20 patterns of 16-128 bytes
* can do GTK rekeying
* wake up on GTK rekey failure
* wake up on EAP identity request
* wake up on rfkill release
HT Capability overrides:
* MCS: ff ff ff ff ff ff ff ff ff ff
* maximum A-MSDU length
* supported channel width
* short GI for 40 MHz
* max A-MPDU length exponent
* min MPDU start spacing
Device supports TX status socket option.
Device supports HT-IBSS.
root@WR-IntelligentDevice:/etc#




Best Regards.
--------------------------------------
Bopeng Liu
WIND RIVER | China Development Center
Phone: 8610-6483-5012



________________________________________
From: Krishna Chaitanya [[email protected]]
Sent: Thursday, January 23, 2014 2:15 PM
To: Liu, Bopeng
Cc: zhuyj; linux-wireless
Subject: Re: 802.11a is supported in AP mode or not?

On Thu, Jan 23, 2014 at 7:30 AM, Liu, Bopeng <[email protected]> wrote:
> Thanks for your mail, but very pity, after checking, it doesn't as well. May you test it on your board?
>
>
> # iw reg get
> country US:
> (2402 - 2472 @ 40), (30, 0)
> (5170 - 5250 @ 80), (17, 0)
> (5250 - 5330 @ 80), (23, 0)
> (5735 - 5835 @ 80), (30, 0)
> (57240 - 63720 @ 2160), (40, 0)
>
> country_code=US
> hw_mode=a
> channel=149
>
> #hostapd -B /etc/hostapd.conf
> Configuration file: /etc/hostapd.conf
> channel [19] (149) is disabled for use in AP mode, flags: 0x7
> wlan0: IEEE 802.11 Configured channel (149) not found from the channel list of current mode (2) IEEE 802.11a
> wlan0: IEEE 802.11 Hardware does not support configured channel
> Could not select hw_mode and channel. (-4)
> wlan0: Unable to setup interface.
> rmdir[ctrl_interface]: No such file or directory
>
Can you use "hostapd -dd -B /etc/hostapd.conf"and send the output?
Also "hostapd -v" and "iw phy" as well.

2014-01-22 14:58:42

by Pat Erley

[permalink] [raw]
Subject: Re: 802.11a is supported in AP mode or not?

On 01/22/2014 03:50 AM, zhuyj wrote:
> Hi, maintainers
>
> I made tests on ubuntu 13.10. I followed these steps.
> From the following logs, we can see 802.11a is not supported in channel
> list.
> I want to know whether 802.11a supports this or not? Or 802.11a is not
> used in this?
> Chip is 6205. lspci -vvv is as below.
>
> Thanks a lot.
> Zhu Yanjun
>
> 1. installed ubuntu 13.10 client
>
> 2. git clone
> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git linux-git
>
> 3. apt-get install kernel-package
>
> 4. make-kpkg --initrd --append-to-version=-test-iwlwifi kernel_image
> kernel-headers
>
> 5. dpkg -i linux-headers-
> dpkg -i linux-images-
>
> 6.reboot ubuntu 13.10
>
> 7. $ vi /etc/hostapd.conf
> interface=wlan0
> driver=nl80211
> logger_syslog=-1
> logger_syslog_level=2
> logger_stdout=-1
> logger_stdout_level=2
> dump_file=/tmp/hostapd.dump
> ctrl_interface=/var/run/hostapd
> ctrl_interface_group=0
> ssid=test
> country_code=US
> hw_mode=a
> channel=2

Channel 2 is in the 2.4ghz band (B/G) not 5ghz (A)

> beacon_int=100
> dtim_period=2
> max_num_sta=255
> rts_threshold=2347
> fragm_threshold=2346
> macaddr_acl=0
> auth_algs=3
> ignore_broadcast_ssid=0
> wmm_enabled=1
> wmm_ac_bk_cwmin=4
> wmm_ac_bk_cwmax=10
> wmm_ac_bk_aifs=7
> wmm_ac_bk_txop_limit=0
> wmm_ac_bk_acm=0
> wmm_ac_be_aifs=3
> wmm_ac_be_cwmin=4
> wmm_ac_be_cwmax=10
> wmm_ac_be_txop_limit=0
> wmm_ac_be_acm=0
> wmm_ac_vi_aifs=2
> wmm_ac_vi_cwmin=3
> wmm_ac_vi_cwmax=4
> wmm_ac_vi_txop_limit=94
> wmm_ac_vi_acm=0
> wmm_ac_vo_aifs=2
> wmm_ac_vo_cwmin=2
> wmm_ac_vo_cwmax=3
> wmm_ac_vo_txop_limit=47
> wmm_ac_vo_acm=0
> eap_server=0
> wpa=2
> wpa_passphrase=12345678
> wpa_key_mgmt=WPA-PSK
> wpa_pairwise=TKIP CCMP
> wpa_group_rekey=600
> wpa_gmk_rekey=86400
>



2014-01-23 09:35:02

by Liu, Bopeng

[permalink] [raw]
Subject: RE: 802.11a is supported in AP mode or not?

But very pity, when running on the AP mode:wlan0 IEEE 802.11abgn is the same....

~# iwconfig wlan0
wlan0 IEEE 802.11abgn Mode:Master Frequency:2.412 GHz Tx-Power=15 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off

Best Regards.
--------------------------------------
Bopeng Liu
WIND RIVER | China Development Center
Phone: 8610-6483-5012



________________________________________
From: Krishna Chaitanya [[email protected]]
Sent: Thursday, January 23, 2014 5:29 PM
To: Emmanuel Grumbach
Cc: Liu, Bopeng; zhuyj; linux-wireless
Subject: Re: 802.11a is supported in AP mode or not?

On Thu, Jan 23, 2014 at 2:57 PM, Emmanuel Grumbach <[email protected]> wrote:
> On Thu, Jan 23, 2014 at 11:21 AM, Liu, Bopeng <[email protected]> wrote:
>>
>>
>> So,it that mean: there is no way to fix this problem by modify the kernel and driver codes?
> Yes
>
>>
>> Though #iwconfig wlan0 shows there is modes a ?
>
> In client mode - not in AP mode
>>
Well in Us channel 149/36 is a valid channel for AP operation. So ideally
it should work? Is there any specific feature blocking such in iwlwifi?

can you try building iwlwifi with CONFIG_IWLWIFI_DEBUG from make menuconfig?
It prints out the reg rules it read from eeprom? Also please post the
full dmesg.

>> iwconfig wlan0
>> wlan0 IEEE 802.11abgn ESSID:"IDPDK-169c"
>> Mode:Managed Frequency:2.462 GHz Access Point: A0:88:B4:1E:16:9C
>> Bit Rate=1 Mb/s Tx-Power=15 dBm
>> Retry long limit:7 RTS thr:off Fragment thr:off
>> Encryption key:off
>> Power Management:off
>> Link Quality=60/70 Signal level=-50 dBm
>> Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
>> Tx excessive retries:0 Invalid misc:14 Missed beacon:0
>>

2014-01-23 08:57:22

by Krishna Chaitanya

[permalink] [raw]
Subject: Re: 802.11a is supported in AP mode or not?

On Thu, Jan 23, 2014 at 2:20 PM, zhuyj <[email protected]> wrote:
> On 01/23/2014 04:23 PM, Emmanuel Grumbach wrote:
>>
>> On Thu, Jan 23, 2014 at 8:44 AM, zhuyj <[email protected]> wrote:
>>>
>>> On 01/23/2014 02:15 PM, Krishna Chaitanya wrote:
>>>>
>>>> hostapd -dd -B /etc/hostapd.conf
>>>
>>> root@wind-desktop:~# hostapd -dd -B /etc/hostapd.conf
>>>
>>> random: Trying to read entropy from /dev/random
>>> Configuration file: /etc/hostapd.conf
>>> ctrl_interface_group=0
>>> nl80211: interface wlan0 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=2): 04 0a
>>> 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: Create interface iftype 6 (MONITOR)
>>> nl80211: New interface mon.wlan0 created: ifindex=4
>>> nl80211: Add own interface ifindex 4
>>> BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
>>> nl80211: Regulatory information - country=00
>>> nl80211: 2402-2472 @ 40 MHz
>>> nl80211: 2457-2482 @ 40 MHz
>>> nl80211: 2474-2494 @ 20 MHz
>>> nl80211: 5170-5250 @ 40 MHz
>>> nl80211: 5735-5835 @ 40 MHz
>>> nl80211: Added 802.11b mode based on 802.11g information
>>> Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=15 dBm
>>> wlan0: IEEE 802.11 Configured channel (1) not found from the channel list
>>> of
>>> current mode (2) IEEE 802.11a
>>>
>>> wlan0: IEEE 802.11 Hardware does not support configured channel
>>> Could not select hw_mode and channel. (-4)
>>> wlan0: Unable to setup interface.
>>> Flushing old station entries
>>> Deauthenticate all stations
>>> rmdir[ctrl_interface]: No such file or directory
>>> nl80211: Remove interface ifindex=4
>>> netlink: Operstate: linkmode=0, operstate=6
>>> nl80211: Set mode ifindex 3 iftype 2 (STATION)
>>> root@wind-desktop:~#
>>>
>>>
>>> root@wind-desktop:~# hostapd -v
>>
>> I think you have the answer to your question, don't you?
>>
> Yeah, maybe the hardware can support 802.11a, but the driver does not
> support 802.11a?

All the 5GHz channels are either disabled (or) passive-scan, so AP operation
will not work. (from iw phy)

Why don't you try with hostapd from git (1.0 is old)? It has changes to
handle regulatory and channel list update properly.

2014-01-23 09:49:16

by Emmanuel Grumbach

[permalink] [raw]
Subject: Re: 802.11a is supported in AP mode or not?

On Thu, Jan 23, 2014 at 11:34 AM, Liu, Bopeng <[email protected]> wrote:
> But very pity, when running on the AP mode:wlan0 IEEE 802.11abgn is the same....
>
> ~# iwconfig wlan0
> wlan0 IEEE 802.11abgn Mode:Master Frequency:2.412 GHz Tx-Power=15 dBm
> Retry long limit:7 RTS thr:off Fragment thr:off
> Power Management:off
>

cool - just send a patch to fix iwconfig, but this tool is ancient and
I doubt anybody even cares.

2014-01-22 21:21:14

by Krishna Chaitanya

[permalink] [raw]
Subject: Re: 802.11a is supported in AP mode or not?

On Wed, Jan 22, 2014 at 3:20 PM, zhuyj <[email protected]> wrote:
> Hi, maintainers
>
> I made tests on ubuntu 13.10. I followed these steps.
> From the following logs, we can see 802.11a is not supported in channel
> list.
> I want to know whether 802.11a supports this or not? Or 802.11a is not used
> in this?
> Chip is 6205. lspci -vvv is as below.

Its a AGN card, so it supports 5GHz.

Also From the other Thread:

On Wed, Jan 22, 2014 at 4:27 PM, Liu, Bopeng <[email protected]> wrote:
>
> AP Mode:
>
> hw_mode can't be supported, have you ever met such problem?
>
>
> hostapd -B /etc/hostapd.conf
> Configuration file: /etc/hostapd.conf
> channel [9] (104) is disabled for use in AP mode, flags: 0x1
> wlan0: IEEE 802.11 Configured channel (104) not found from the channel list of current mode (2) IEEE 802.11a
> wlan0: IEEE 802.11 Hardware does not support configured channel
> Could not select hw_mode and channel. (-4)
> wlan0: Unable to setup interface.
>
Channel 104 is a DFS channel which is not allowed in country US.
Please use a non-DFS channel like 36/40/149 and then try (or)
change the country_code which has 104 allowed :-).

You can also use "iw reg get" to get list of bands allowed, all the bands
marked with passive-scan are not allowed in AP mode unless we implement
full DFS functionality (CAC) and make the channel usable.

Also use a separate thread, dont post in other threads.

2014-01-23 02:00:28

by Liu, Bopeng

[permalink] [raw]
Subject: RE: 802.11a is supported in AP mode or not?

Thanks for your mail, but very pity, after checking, it doesn't as well. May you test it on your board?


# iw reg get
country US:
(2402 - 2472 @ 40), (30, 0)
(5170 - 5250 @ 80), (17, 0)
(5250 - 5330 @ 80), (23, 0)
(5735 - 5835 @ 80), (30, 0)
(57240 - 63720 @ 2160), (40, 0)

country_code=US
hw_mode=a
channel=149

#hostapd -B /etc/hostapd.conf
Configuration file: /etc/hostapd.conf
channel [19] (149) is disabled for use in AP mode, flags: 0x7
wlan0: IEEE 802.11 Configured channel (149) not found from the channel list of current mode (2) IEEE 802.11a
wlan0: IEEE 802.11 Hardware does not support configured channel
Could not select hw_mode and channel. (-4)
wlan0: Unable to setup interface.
rmdir[ctrl_interface]: No such file or directory




Best Regards.
--------------------------------------
Bopeng Liu
WIND RIVER | China Development Center
Phone: 8610-6483-5012



________________________________________
From: [email protected] [[email protected]] on behalf of Krishna Chaitanya [[email protected]]
Sent: Thursday, January 23, 2014 5:20 AM
To: zhuyj
Cc: linux-wireless; Liu, Bopeng
Subject: Re: 802.11a is supported in AP mode or not?

On Wed, Jan 22, 2014 at 3:20 PM, zhuyj <[email protected]> wrote:
> Hi, maintainers
>
> I made tests on ubuntu 13.10. I followed these steps.
> From the following logs, we can see 802.11a is not supported in channel
> list.
> I want to know whether 802.11a supports this or not? Or 802.11a is not used
> in this?
> Chip is 6205. lspci -vvv is as below.

Its a AGN card, so it supports 5GHz.

Also From the other Thread:

On Wed, Jan 22, 2014 at 4:27 PM, Liu, Bopeng <[email protected]> wrote:
>
> AP Mode:
>
> hw_mode can't be supported, have you ever met such problem?
>
>
> hostapd -B /etc/hostapd.conf
> Configuration file: /etc/hostapd.conf
> channel [9] (104) is disabled for use in AP mode, flags: 0x1
> wlan0: IEEE 802.11 Configured channel (104) not found from the channel list of current mode (2) IEEE 802.11a
> wlan0: IEEE 802.11 Hardware does not support configured channel
> Could not select hw_mode and channel. (-4)
> wlan0: Unable to setup interface.
>
Channel 104 is a DFS channel which is not allowed in country US.
Please use a non-DFS channel like 36/40/149 and then try (or)
change the country_code which has 104 allowed :-).

You can also use "iw reg get" to get list of bands allowed, all the bands
marked with passive-scan are not allowed in AP mode unless we implement
full DFS functionality (CAC) and make the channel usable.

Also use a separate thread, dont post in other threads.

2014-01-23 09:36:26

by Liu, Bopeng

[permalink] [raw]
Subject: RE: 802.11a is supported in AP mode or not?

Well in Us channel 149/36 is a valid channel for AP operation.

Doesn't work as well, we are in Main land China.....

Best Regards.
--------------------------------------
Bopeng Liu
WIND RIVER | China Development Center
Phone: 8610-6483-5012



________________________________________
From: [email protected] [[email protected]] on behalf of Liu, Bopeng [[email protected]]
Sent: Thursday, January 23, 2014 5:34 PM
To: Krishna Chaitanya; Emmanuel Grumbach
Cc: zhuyj; linux-wireless
Subject: RE: 802.11a is supported in AP mode or not?

But very pity, when running on the AP mode:wlan0 IEEE 802.11abgn is the same....

~# iwconfig wlan0
wlan0 IEEE 802.11abgn Mode:Master Frequency:2.412 GHz Tx-Power=15 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off

Best Regards.
--------------------------------------
Bopeng Liu
WIND RIVER | China Development Center
Phone: 8610-6483-5012



________________________________________
From: Krishna Chaitanya [[email protected]]
Sent: Thursday, January 23, 2014 5:29 PM
To: Emmanuel Grumbach
Cc: Liu, Bopeng; zhuyj; linux-wireless
Subject: Re: 802.11a is supported in AP mode or not?

On Thu, Jan 23, 2014 at 2:57 PM, Emmanuel Grumbach <[email protected]> wrote:
> On Thu, Jan 23, 2014 at 11:21 AM, Liu, Bopeng <[email protected]> wrote:
>>
>>
>> So,it that mean: there is no way to fix this problem by modify the kernel and driver codes?
> Yes
>
>>
>> Though #iwconfig wlan0 shows there is modes a ?
>
> In client mode - not in AP mode
>>
Well in Us channel 149/36 is a valid channel for AP operation. So ideally
it should work? Is there any specific feature blocking such in iwlwifi?

can you try building iwlwifi with CONFIG_IWLWIFI_DEBUG from make menuconfig?
It prints out the reg rules it read from eeprom? Also please post the
full dmesg.

>> iwconfig wlan0
>> wlan0 IEEE 802.11abgn ESSID:"IDPDK-169c"
>> Mode:Managed Frequency:2.462 GHz Access Point: A0:88:B4:1E:16:9C
>> Bit Rate=1 Mb/s Tx-Power=15 dBm
>> Retry long limit:7 RTS thr:off Fragment thr:off
>> Encryption key:off
>> Power Management:off
>> Link Quality=60/70 Signal level=-50 dBm
>> Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
>> Tx excessive retries:0 Invalid misc:14 Missed beacon:0
>>

2014-01-23 09:30:19

by Krishna Chaitanya

[permalink] [raw]
Subject: Re: 802.11a is supported in AP mode or not?

On Thu, Jan 23, 2014 at 2:57 PM, Emmanuel Grumbach <[email protected]> wrote:
> On Thu, Jan 23, 2014 at 11:21 AM, Liu, Bopeng <[email protected]> wrote:
>>
>>
>> So,it that mean: there is no way to fix this problem by modify the kernel and driver codes?
> Yes
>
>>
>> Though #iwconfig wlan0 shows there is modes a ?
>
> In client mode - not in AP mode
>>
Well in Us channel 149/36 is a valid channel for AP operation. So ideally
it should work? Is there any specific feature blocking such in iwlwifi?

can you try building iwlwifi with CONFIG_IWLWIFI_DEBUG from make menuconfig?
It prints out the reg rules it read from eeprom? Also please post the
full dmesg.

>> iwconfig wlan0
>> wlan0 IEEE 802.11abgn ESSID:"IDPDK-169c"
>> Mode:Managed Frequency:2.462 GHz Access Point: A0:88:B4:1E:16:9C
>> Bit Rate=1 Mb/s Tx-Power=15 dBm
>> Retry long limit:7 RTS thr:off Fragment thr:off
>> Encryption key:off
>> Power Management:off
>> Link Quality=60/70 Signal level=-50 dBm
>> Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
>> Tx excessive retries:0 Invalid misc:14 Missed beacon:0
>>

2014-01-23 08:59:44

by Liu, Bopeng

[permalink] [raw]
Subject: RE: 802.11a is supported in AP mode or not?

Is there any method to set the 5GHz channels be able?

Please show me the command...:)

Best Regards.
--------------------------------------
Bopeng Liu
WIND RIVER | China Development Center
Phone: 8610-6483-5012



________________________________________
From: Krishna Chaitanya [[email protected]]
Sent: Thursday, January 23, 2014 4:57 PM
To: zhuyj
Cc: Emmanuel Grumbach; Liu, Bopeng; linux-wireless
Subject: Re: 802.11a is supported in AP mode or not?

On Thu, Jan 23, 2014 at 2:20 PM, zhuyj <[email protected]> wrote:
> On 01/23/2014 04:23 PM, Emmanuel Grumbach wrote:
>>
>> On Thu, Jan 23, 2014 at 8:44 AM, zhuyj <[email protected]> wrote:
>>>
>>> On 01/23/2014 02:15 PM, Krishna Chaitanya wrote:
>>>>
>>>> hostapd -dd -B /etc/hostapd.conf
>>>
>>> root@wind-desktop:~# hostapd -dd -B /etc/hostapd.conf
>>>
>>> random: Trying to read entropy from /dev/random
>>> Configuration file: /etc/hostapd.conf
>>> ctrl_interface_group=0
>>> nl80211: interface wlan0 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=2): 04 0a
>>> 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: Create interface iftype 6 (MONITOR)
>>> nl80211: New interface mon.wlan0 created: ifindex=4
>>> nl80211: Add own interface ifindex 4
>>> BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
>>> nl80211: Regulatory information - country=00
>>> nl80211: 2402-2472 @ 40 MHz
>>> nl80211: 2457-2482 @ 40 MHz
>>> nl80211: 2474-2494 @ 20 MHz
>>> nl80211: 5170-5250 @ 40 MHz
>>> nl80211: 5735-5835 @ 40 MHz
>>> nl80211: Added 802.11b mode based on 802.11g information
>>> Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=15 dBm
>>> Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=15 dBm
>>> wlan0: IEEE 802.11 Configured channel (1) not found from the channel list
>>> of
>>> current mode (2) IEEE 802.11a
>>>
>>> wlan0: IEEE 802.11 Hardware does not support configured channel
>>> Could not select hw_mode and channel. (-4)
>>> wlan0: Unable to setup interface.
>>> Flushing old station entries
>>> Deauthenticate all stations
>>> rmdir[ctrl_interface]: No such file or directory
>>> nl80211: Remove interface ifindex=4
>>> netlink: Operstate: linkmode=0, operstate=6
>>> nl80211: Set mode ifindex 3 iftype 2 (STATION)
>>> root@wind-desktop:~#
>>>
>>>
>>> root@wind-desktop:~# hostapd -v
>>
>> I think you have the answer to your question, don't you?
>>
> Yeah, maybe the hardware can support 802.11a, but the driver does not
> support 802.11a?

All the 5GHz channels are either disabled (or) passive-scan, so AP operation
will not work. (from iw phy)

Why don't you try with hostapd from git (1.0 is old)? It has changes to
handle regulatory and channel list update properly.

2014-01-27 21:59:34

by Anand Moon

[permalink] [raw]
Subject: Re: 802.11a is supported in AP mode or not?

Hi All,

If you change the frequency of the interface it should work

root@moon-ubuntu:~# ifconfig wlan0 down
root@moon-ubuntu:~# iw dev wlan0 set freq 5180 HT20
root@moon-ubuntu:~# iwconfig wlan0
wlan0???? IEEE 802.11abgn? ESSID:off/any
????????? Mode:Managed? Frequency:5.18 GHz? Access Point: Not-Associated
????????? Tx-Power=27 dBm
????????? Retry? long limit:7?? RTS thr:off?? Fragment thr:off
????????? Encryption key:off
????????? Power Management:on
root@moon-ubuntu:~# ifconfig wlan0 up

Now I?modified the hostapd.conf

hw_mode=a
channel=36

It worked for me.

-Anand Moon

-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.14 (GNU/Linux)
jA0EAwMCYq3dHqTzwcVgyRxC1j+ oLxS8Yw92EIeKln+x3eAWzd7mM/ pUluRo
=0RYk
-----END PGP MESSAGE-----

2014-01-23 06:44:25

by Zhu Yanjun

[permalink] [raw]
Subject: Re: 802.11a is supported in AP mode or not?

On 01/23/2014 02:15 PM, Krishna Chaitanya wrote:
> hostapd -dd -B /etc/hostapd.conf
root@wind-desktop:~# hostapd -dd -B /etc/hostapd.conf
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd.conf
ctrl_interface_group=0
nl80211: interface wlan0 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=2): 04 0a
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: Create interface iftype 6 (MONITOR)
nl80211: New interface mon.wlan0 created: ifindex=4
nl80211: Add own interface ifindex 4
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz
nl80211: 2457-2482 @ 40 MHz
nl80211: 2474-2494 @ 20 MHz
nl80211: 5170-5250 @ 40 MHz
nl80211: 5735-5835 @ 40 MHz
nl80211: Added 802.11b mode based on 802.11g information
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=15 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=15 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=15 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=15 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=15 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=15 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=15 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=15 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=15 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=15 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=15 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=15 dBm
wlan0: IEEE 802.11 Configured channel (1) not found from the channel
list of current mode (2) IEEE 802.11a
wlan0: IEEE 802.11 Hardware does not support configured channel
Could not select hw_mode and channel. (-4)
wlan0: Unable to setup interface.
Flushing old station entries
Deauthenticate all stations
rmdir[ctrl_interface]: No such file or directory
nl80211: Remove interface ifindex=4
netlink: Operstate: linkmode=0, operstate=6
nl80211: Set mode ifindex 3 iftype 2 (STATION)
root@wind-desktop:~#


root@wind-desktop:~# hostapd -v
hostapd v1.0
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2012, Jouni Malinen <[email protected]> and contributors


2014-01-23 09:27:38

by Emmanuel Grumbach

[permalink] [raw]
Subject: Re: 802.11a is supported in AP mode or not?

On Thu, Jan 23, 2014 at 11:21 AM, Liu, Bopeng <[email protected]> wrote:
>
>
> So,it that mean: there is no way to fix this problem by modify the kernel and driver codes?
Yes

>
> Though #iwconfig wlan0 shows there is modes a ?

In client mode - not in AP mode
>
> iwconfig wlan0
> wlan0 IEEE 802.11abgn ESSID:"IDPDK-169c"
> Mode:Managed Frequency:2.462 GHz Access Point: A0:88:B4:1E:16:9C
> Bit Rate=1 Mb/s Tx-Power=15 dBm
> Retry long limit:7 RTS thr:off Fragment thr:off
> Encryption key:off
> Power Management:off
> Link Quality=60/70 Signal level=-50 dBm
> Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
> Tx excessive retries:0 Invalid misc:14 Missed beacon:0
>
>

2014-01-23 08:36:14

by Liu, Bopeng

[permalink] [raw]
Subject: RE: 802.11a is supported in AP mode or not?

Not yet,please tell me..... Please,thanks very much.

Best Regards.
--------------------------------------
Bopeng Liu
WIND RIVER | China Development Center
Phone: 8610-6483-5012



________________________________________
From: Emmanuel Grumbach [[email protected]]
Sent: Thursday, January 23, 2014 4:23 PM
To: zhuyj
Cc: Krishna Chaitanya; Liu, Bopeng; linux-wireless
Subject: Re: 802.11a is supported in AP mode or not?

On Thu, Jan 23, 2014 at 8:44 AM, zhuyj <[email protected]> wrote:
> On 01/23/2014 02:15 PM, Krishna Chaitanya wrote:
>>
>> hostapd -dd -B /etc/hostapd.conf
>
> root@wind-desktop:~# hostapd -dd -B /etc/hostapd.conf
>
> random: Trying to read entropy from /dev/random
> Configuration file: /etc/hostapd.conf
> ctrl_interface_group=0
> nl80211: interface wlan0 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=2): 04 0a
> 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: Create interface iftype 6 (MONITOR)
> nl80211: New interface mon.wlan0 created: ifindex=4
> nl80211: Add own interface ifindex 4
> BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
> nl80211: Regulatory information - country=00
> nl80211: 2402-2472 @ 40 MHz
> nl80211: 2457-2482 @ 40 MHz
> nl80211: 2474-2494 @ 20 MHz
> nl80211: 5170-5250 @ 40 MHz
> nl80211: 5735-5835 @ 40 MHz
> nl80211: Added 802.11b mode based on 802.11g information
> Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=15 dBm
> wlan0: IEEE 802.11 Configured channel (1) not found from the channel list of
> current mode (2) IEEE 802.11a
>
> wlan0: IEEE 802.11 Hardware does not support configured channel
> Could not select hw_mode and channel. (-4)
> wlan0: Unable to setup interface.
> Flushing old station entries
> Deauthenticate all stations
> rmdir[ctrl_interface]: No such file or directory
> nl80211: Remove interface ifindex=4
> netlink: Operstate: linkmode=0, operstate=6
> nl80211: Set mode ifindex 3 iftype 2 (STATION)
> root@wind-desktop:~#
>
>
> root@wind-desktop:~# hostapd -v

I think you have the answer to your question, don't you?

2014-01-23 08:23:54

by Emmanuel Grumbach

[permalink] [raw]
Subject: Re: 802.11a is supported in AP mode or not?

On Thu, Jan 23, 2014 at 8:44 AM, zhuyj <[email protected]> wrote:
> On 01/23/2014 02:15 PM, Krishna Chaitanya wrote:
>>
>> hostapd -dd -B /etc/hostapd.conf
>
> root@wind-desktop:~# hostapd -dd -B /etc/hostapd.conf
>
> random: Trying to read entropy from /dev/random
> Configuration file: /etc/hostapd.conf
> ctrl_interface_group=0
> nl80211: interface wlan0 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=2): 04 0a
> 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: Create interface iftype 6 (MONITOR)
> nl80211: New interface mon.wlan0 created: ifindex=4
> nl80211: Add own interface ifindex 4
> BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
> nl80211: Regulatory information - country=00
> nl80211: 2402-2472 @ 40 MHz
> nl80211: 2457-2482 @ 40 MHz
> nl80211: 2474-2494 @ 20 MHz
> nl80211: 5170-5250 @ 40 MHz
> nl80211: 5735-5835 @ 40 MHz
> nl80211: Added 802.11b mode based on 802.11g information
> Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=15 dBm
> Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=15 dBm
> Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=15 dBm
> wlan0: IEEE 802.11 Configured channel (1) not found from the channel list of
> current mode (2) IEEE 802.11a
>
> wlan0: IEEE 802.11 Hardware does not support configured channel
> Could not select hw_mode and channel. (-4)
> wlan0: Unable to setup interface.
> Flushing old station entries
> Deauthenticate all stations
> rmdir[ctrl_interface]: No such file or directory
> nl80211: Remove interface ifindex=4
> netlink: Operstate: linkmode=0, operstate=6
> nl80211: Set mode ifindex 3 iftype 2 (STATION)
> root@wind-desktop:~#
>
>
> root@wind-desktop:~# hostapd -v

I think you have the answer to your question, don't you?

2014-01-24 08:04:31

by Liu, Bopeng

[permalink] [raw]
Subject: RE: 802.11a is supported in AP mode or not?

I just check the chip 6205's spec. it said it supports the SoftAP with Mode A, who can tell me what is the soft AP?


Best Regards.
--------------------------------------
Bopeng Liu
WIND RIVER | China Development Center
Phone: 8610-6483-5012



________________________________________
From: Emmanuel Grumbach [[email protected]]
Sent: Thursday, January 23, 2014 5:49 PM
To: Liu, Bopeng
Cc: Krishna Chaitanya; zhuyj; linux-wireless
Subject: Re: 802.11a is supported in AP mode or not?

On Thu, Jan 23, 2014 at 11:34 AM, Liu, Bopeng <[email protected]> wrote:
> But very pity, when running on the AP mode:wlan0 IEEE 802.11abgn is the same....
>
> ~# iwconfig wlan0
> wlan0 IEEE 802.11abgn Mode:Master Frequency:2.412 GHz Tx-Power=15 dBm
> Retry long limit:7 RTS thr:off Fragment thr:off
> Power Management:off
>

cool - just send a patch to fix iwconfig, but this tool is ancient and
I doubt anybody even cares.

2014-01-23 09:21:26

by Liu, Bopeng

[permalink] [raw]
Subject: RE: 802.11a is supported in AP mode or not?



So,it that mean: there is no way to fix this problem by modify the kernel and driver codes?

Though #iwconfig wlan0 shows there is modes a ?

iwconfig wlan0
wlan0 IEEE 802.11abgn ESSID:"IDPDK-169c"
Mode:Managed Frequency:2.462 GHz Access Point: A0:88:B4:1E:16:9C
Bit Rate=1 Mb/s Tx-Power=15 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=60/70 Signal level=-50 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:14 Missed beacon:0


Best Regards.
--------------------------------------
Bopeng Liu
WIND RIVER | China Development Center
Phone: 8610-6483-5012



________________________________________
From: [email protected] [[email protected]] on behalf of Liu, Bopeng [[email protected]]
Sent: Thursday, January 23, 2014 5:07 PM
To: Krishna Chaitanya
Cc: zhuyj; Emmanuel Grumbach; linux-wireless
Subject: RE: 802.11a is supported in AP mode or not?

By using latest hostapd, version, not works as well.

Best Regards.
--------------------------------------
Bopeng Liu
WIND RIVER | China Development Center
Phone: 8610-6483-5012



________________________________________
From: Krishna Chaitanya [[email protected]]
Sent: Thursday, January 23, 2014 5:04 PM
To: Liu, Bopeng
Cc: zhuyj; Emmanuel Grumbach; linux-wireless
Subject: Re: 802.11a is supported in AP mode or not?

On Thu, Jan 23, 2014 at 2:29 PM, Liu, Bopeng <[email protected]> wrote:
> Is there any method to set the 5GHz channels be able?
>
> Please show me the command...:)
No it doesn't work that way, based on regulatory info and HW capability
the framework will decide that.

Lets give it a try with latest hostapd from git and see.