Atheros QCA9377 et hostapd

Bonjour,
Quelqu’un aurait fait fonctionner cette carte wifi en mode point d’accès avec hostapd ?
J’ai remplacé une carte Realtec qui fonctionnait bien pendant plusieurs années en mode master (mais qui est en panne maintenant) par une Atheros QCA9377. Celle-ci semble se configurer en mode managed uniquement.
OS : Debian Stretch
iwconfig :
wlp3s0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on

iw list :
…Supported interface modes:

  • IBSS
  • managed
  • AP
  • AP/VLAN
  • monitor
  • mesh point
  • P2P-client
  • P2P-GO
  • P2P-device

    Le message d’erreur :
    /usr/sbin/hostapd -B /etc/hostapd/hostapd.conf
    Configuration file: /etc/hostapd/hostapd.conf
    wlp3s0: interface state UNINITIALIZED->COUNTRY_UPDATE
    Could not set fragmentation threshold for kernel driver
    Interface initialization failed
    wlp3s0: interface state COUNTRY_UPDATE->DISABLED
    wlp3s0: AP-DISABLED
    wlp3s0: Unable to setup interface.
    wlp3s0: interface state DISABLED->DISABLED
    wlp3s0: AP-DISABLED
    hostapd_free_hapd_data: Interface wlp3s0 wasn’t started
    nl80211: deinit ifname=wlp3s0 disabled_11b_rates=0

lsmod |grep ath

ath10k_pci 45056 0
ath10k_core 237568 1 ath10k_pci
ath 24576 1 ath10k_core
mac80211 552960 1 ath10k_core
cfg80211 450560 3 mac80211,ath,ath10k_core

Bien sur, j’ai installé le paquet firmware-atheros

Dites moi si vous avez besoin d’avoir plus d’infos sur la config.
merci

Bonjour,

Je n’ai qu’un wiki de kernel.org à proposer (en anglais)
Bien fourni en exemples.

https://wireless.wiki.kernel.org/en/users/drivers/ath10k/configuration
https://wireless.wiki.kernel.org/en/users/drivers/ath10k

Une partie me semble intéressante :

(…) Current implementation of ath radar pattern detector supports only ETSI regulatory domain. It means radar detection works only when master region is set to ETSI. It can be done by setting regulatory domain to country from Europe (DE, FI, FR, PL, …):

iw reg set FR

Other regulatory domains like JP (Japan), US (FCC master region) are currently not supported. Starting AP on DFS channel in DFS master region different that ETSI will cause radar event at first suspicious RF signal even it was not radar.

See hostapd wiki page and hostapd.conf documentation for more information. (…)

PS : modinfo peut t’apporter des informations sur tes modules (ath10k ?) et ath10k_pci

https://wikidevi.com/wiki/Ath10k
Module name(s): ath10k_pci
Supported modes
(…)
AP (Master) mode: supported
(…)
Supported chips [Supported (probably) devices]
QCA9377 (…) [14 occurrences]

sudo lspci -knn | grep -iA2 wireless

Avec -km je n’'obtiens pas l’information du module noyau utilisé

fp2@debpacha:~$ lspci -k | fgrep -iA2 wireless
04:00.0 Network controller: Intel Corporation Wireless 7260 (rev c3)
	Subsystem: Intel Corporation Wireless-N 7260
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
fp2@debpacha:~$ 

Cordialement,
Regards,
Mit freundlichen Grüßen,
مع تحياتي الخالصة


F. Petitjean
Ingénieur civil du Génie Maritime.

« Je préfère le vin d’ici à l’au-delà »
Pierre Dac

Merci pour ces réponses.
j’ai fait iw reg set FR, puis j’ai mis un # devant “fragm_threshold=2346” dans hostapd.conf et ça fonctionne.
Bref, le wifi se déconnecte tout seul aléatoirement, je vais en racheter une autre carte, d’autant plus si j’aurai besoin un jour de passer à la bande des 5GHz (802.11ac) ET sous linux.

Comme demandé, voici le résultat de la commande lspci -knn | grep -iA3 wireless
03:00.0 Network controller [0280]: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter [168c:0042] (rev 31)
       Subsystem: Samsung Electronics Co Ltd QCA9377 802.11ac Wireless Network Adapter [144d:4133]
       Kernel driver in use: ath10k_pci
       Kernel modules: ath10k_pci
04:0c.0 CANBUS [0c09]: Moxa Technologies Co Ltd Device [1393:0100] (rev 01)

C’est là où il est possible d’établir le journal du service et de diagnostiquer avec.
Je ne suis pas très compétent pour le faire.

hostapd est un service d’un certain niveau pour le configurer impec ;
J’y ai passé du temps la première fois, presque à lâcher l’affaire. J’ai remis ça plusieurs fois.
En insistant, j’ai eu un hostapd fonctionnel mais sans avoir tout compris des possibilités.

Comme tu veux :slight_smile: