View previous topic :: View next topic |
Author |
Message |
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Wed May 11, 2022 7:00 am Post subject: unable to create a 5ghz AP using hostapd[solved] |
|
|
hostapd.conf:
Code: | interface=wlp2s0
ssid=pi-5G
macaddr_acl=0
ignore_broadcast_ssid=0
## 5G
hw_mode=a
channel=36
country_code=US
ieee80211d=1
ieee80211n=1
ieee80211ac=1
wmm_enabled=1
## wpa auth
auth_algs=1
wpa=2
wpa_passphrase=11111111
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP |
Code: | systemctl status hostapd
Loaded: loaded (/lib/systemd/system/hostapd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2021-08-24 13:24:07 EET; 8s ago
Process: 1621 ExecStart=/usr/sbin/hostapd /etc/hostapd/hostapd.conf (code=exited, status=1/FAILURE)
Main PID: 1621 (code=exited, status=1/FAILURE)
CPU: 66ms
Aug 24 13:24:06 samsung hostapd[1621]: wlp2s0: Unable to setup interface.
Aug 24 13:24:06 samsung hostapd[1621]: wlp2s0: interface state DISABLED->DISABLED
Aug 24 13:24:06 samsung hostapd[1621]: wlp2s0: AP-DISABLED
Aug 24 13:24:06 samsung hostapd[1621]: wlp2s0: CTRL-EVENT-TERMINATING
Aug 24 13:24:06 samsung hostapd[1621]: hostapd_free_hapd_data: Interface wlp2s0 wasn't started
Aug 24 13:24:06 samsung hostapd[1621]: nl80211: deinit ifname=wlp2s0 disabled_11b_rates=0
Aug 24 13:24:06 samsung hostapd[1621]: wlp2s0: IEEE 802.11 Configured channel (36) not found from the channel list of current mode (2) IEEE 802.11a
Aug 24 13:24:06 samsung hostapd[1621]: wlp2s0: IEEE 802.11 Hardware does not support configured channel
Aug 24 13:24:07 samsung systemd[1]: hostapd.service: Main process exited, code=exited, status=1/FAILURE
Aug 24 13:24:07 samsung systemd[1]: hostapd.service: Failed with result 'exit-code'.
|
my card:
Code: | 02:00.0 Network controller: Intel Corporation Centrino Advanced-N 6235 (rev 24) |
what am I doing wrong here?
Last edited by Adel Ahmed on Tue May 24, 2022 7:10 am; edited 1 time in total |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3136
|
Posted: Wed May 11, 2022 8:39 am Post subject: |
|
|
Maybe it's blocked?
|
|
Back to top |
|
|
spica Apprentice
Joined: 04 Jun 2021 Posts: 287
|
Posted: Wed May 11, 2022 8:56 am Post subject: Re: unable to create a 5ghz AP using hostapd |
|
|
Adel Ahmed wrote: |
Code: | Aug 24 13:24:06 samsung hostapd[1621]: wlp2s0: IEEE 802.11 Configured channel (36) not found from the channel list of current mode (2) IEEE 802.11a
Aug 24 13:24:06 samsung hostapd[1621]: wlp2s0: IEEE 802.11 Hardware does not support configured channel |
what am I doing wrong here? |
You need to find explanation which channels are available for initial radiation in hostapd logs. Initial radiation on channel 36 seems to be forbidden for this card. |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Wed May 11, 2022 9:13 am Post subject: |
|
|
no iot is unblocked:
Code: | samsung ~ # rfkill
ID TYPE DEVICE SOFT HARD
0 wlan phy0 unblocked unblocked
1 bluetooth hci0 unblocked unblocked
samsung ~ #
|
here's my journalctl -u hostapd:
https://pastebin.com/LrxSFj0E
i thought 36 would be fine due to this output from iwlist:
Code: | Band 2:
Capabilities: 0x107e
HT20/HT40
SM Power Save disabled
RX Greenfield
RX HT20 SGI
RX HT40 SGI
No RX STBC
Max AMSDU length: 3839 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 4 usec (0x05)
HT Max RX data rate: 300 Mbps
HT TX/RX MCS rate indexes supported: 0-15
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
Frequencies:
* 5180 MHz [36] (15.0 dBm) (no IR)
* 5200 MHz [40] (15.0 dBm) (no IR)
* 5220 MHz [44] (15.0 dBm) (no IR)
* 5240 MHz [48] (15.0 dBm) (no IR)
* 5260 MHz [52] (15.0 dBm) (no IR, radar detection)
* 5280 MHz [56] (15.0 dBm) (no IR, radar detection)
* 5300 MHz [60] (15.0 dBm) (no IR, radar detection)
* 5320 MHz [64] (15.0 dBm) (no IR, 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] (disabled)
* 5765 MHz [153] (disabled)
* 5785 MHz [157] (disabled)
* 5805 MHz [161] (disabled)
* 5825 MHz [165] (disabled)
|
|
|
Back to top |
|
|
spica Apprentice
Joined: 04 Jun 2021 Posts: 287
|
Posted: Wed May 11, 2022 9:40 am Post subject: |
|
|
"no IR" ("No Initial Radiation") means the card can't work as AP on this channel. According to the output, the card can't serve as AP in 5GHz band. However, the card still can run in client mode.
To be honest, it is not so easy to find a card which a) has channels unlocked in 5GHz band and b) has drivers for Linux. |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Wed May 11, 2022 10:30 am Post subject: |
|
|
so it is not in any way possible to start a 5GHZ AP using this card right? |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3136
|
Posted: Wed May 11, 2022 11:07 am Post subject: |
|
|
There are some additional restrictions in 5GHz band, things that exist for collision avoidance.
So... Yeah, this is a bit of a problem:
Quote: | Aug 24 13:04:14 samsung hostapd[744]: Channel 52 (primary) not allowed for AP mode, flags: 0x1017b NO-IR RADAR |
However, AFAIK the 5GHz band is fairly wide, and some restrictions apply to some channels and not to others. Leave the channel out and let hostapd pick one for you. Maybe it will be able to find a frequency it is allowed to run on. The allowed channels change based on CRDA (controlled by the country code) and your device sniffing for interference.
There's one more thing actually, as it seems your wifi might really be unable to work as 5G AP: Do you need it to work specifically in 5GHz band?
It might be good for peak transfer speed, but you won't really feel any difference compared to 2.4G unless you're close to saturating it. And 2.4G works at longer ranges too.
Just saying, a higher number does not automatically imply it's better for your application. |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Tue May 24, 2022 7:09 am Post subject: |
|
|
unforunately the 2.4ghz is overcrowded in my building complex, so I had to resort to a different frequency.
I have bought a dual band router instead.
thakns for your help |
|
Back to top |
|
|
|