Forums - Running hostapd on channels 36 - 140 [SOLVED]

3 posts / 0 new
Last post
Running hostapd on channels 36 - 140 [SOLVED]
stefan.wahren
Join Date: 17 Sep 20
Posts: 2
Posted: Thu, 2020-09-17 02:52

Hi,

i'm using the qcacld driver on a custom ARM9 board with Linux kernel 4.11 and Debian 9 (Stretch). The region is set to DE.

If i run iw list, i get the following output for the 5 GHz band:

* 5180 MHz [36] (20.0 dBm) (no IR)
* 5200 MHz [40] (20.0 dBm) (no IR)
* 5220 MHz [44] (20.0 dBm) (no IR)
* 5240 MHz [48] (20.0 dBm) (no IR)
* 5260 MHz [52] (20.0 dBm) (no IR, radar detection)
* 5280 MHz [56] (20.0 dBm) (no IR, radar detection)
* 5300 MHz [60] (20.0 dBm) (no IR, radar detection)
* 5320 MHz [64] (20.0 dBm) (no IR, radar detection)
* 5500 MHz [100] (26.0 dBm) (radar detection)
* 5520 MHz [104] (26.0 dBm) (radar detection)
* 5540 MHz [108] (26.0 dBm) (radar detection)
* 5560 MHz [112] (26.0 dBm) (radar detection)
* 5580 MHz [116] (26.0 dBm) (radar detection)
* 5600 MHz [120] (26.0 dBm) (radar detection)
* 5620 MHz [124] (26.0 dBm) (radar detection)
* 5640 MHz [128] (26.0 dBm) (radar detection)
* 5660 MHz [132] (26.0 dBm) (radar detection)
* 5680 MHz [136] (26.0 dBm) (radar detection)
* 5700 MHz [140] (26.0 dBm) (radar detection)
* 5720 MHz [144] (disabled)
* 5745 MHz [149] (13.0 dBm)
* 5765 MHz [153] (13.0 dBm)
* 5785 MHz [157] (13.0 dBm)
* 5805 MHz [161] (13.0 dBm)
* 5825 MHz [165] (13.0 dBm)
* 5845 MHz [169] (13.0 dBm)
* 5865 MHz [173] (13.0 dBm)

I would like use most of the channels in range between 36 and 140 as IBSS with hostapd.

My suspicion is that i need to enable DFS?
How can i achieve this?
What files needs to be modified?
Which kernel config parameter must be at least enabled?
Is there a compile time switch in the qcacld sources?
Do i need to modify qcom_cfg.ini? Which parameters?

Best regards

  • Up0
  • Down0
ddeepakk Moderator
Join Date: 27 Jun 17
Posts: 85
Posted: Sat, 2020-09-19 04:01

Hi Stefan,

My suspicion is that i need to enable DFS?
How can i achieve this?
What files needs to be modified?
[QC] For STA mode, no need to explicitly enable. For AP mode, if you want to use AP in DFS channels, "gEnableDFSMasterCap=1" needs to be set in INI file.

Which kernel config parameter must be at least enabled?
[QC] CONFIG_CFG80211_INTERNAL_REGDB should be enabled.

Is there a compile time switch in the qcacld sources?
[QC] Yes, ATH_SUPPORT_DFS in Kbuild.

Thanks.

  • Up0
  • Down0
stefan.wahren
Join Date: 17 Sep 20
Posts: 2
Posted: Wed, 2020-10-07 03:53

Thank you, i finally managed to get it working. Additionally to the hints above i needed to select another wifi driver which defines CONFIG_WIRELESS_EXT and enable DFS in the hostapd.conf.

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.