Forum Linux.embarqué hostapd et les conf 5ghz et 6ghz

Posté par  . Licence CC By‑SA.
Étiquettes : aucune
1
20
mai
2023

Sommaire

Hello.

J'essaie de mettre en place du wifi AP sur ma Mochabin.

J'ai essayé avec une carte wifi 5ghz, driver ath10k et ça fonctionne.

Par contre, j'ai une carte wifi Mediatek, driver mt7915e.

Quand je lance hostapd avec une conf en 2.4ghz, ça fonctionne.
Mais quand je mets une conf 5ghz ( la meme que pour la carte sous le driver ath10k qui fonctionne) ou même 6ghz, il n'y a pas de retour en erreur, ca reste figé sur mgmt::deauth cb
```

hostapd -dd wlan0.conf

random: Trying to read entropy from /dev/random
Configuration file: wlan0.conf
nl80211: TDLS supported
nl80211: TDLS external setup
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:10
nl80211: Supported cipher 00-0f-ac:8
nl80211: Supported cipher 00-0f-ac:9
nl80211: Supported cipher 00-0f-ac:6
nl80211: Supported cipher 00-0f-ac:13
nl80211: Supported cipher 00-0f-ac:11
nl80211: Supported cipher 00-0f-ac:12
nl80211: Using driver-based off-channel TX
nl80211: Driver-advertised extended capabilities (default) - hexdump(len=8): 00 00 40 00 00 00 00 40
nl80211: Driver-advertised extended capabilities mask (default) - hexdump(len=8): 00 00 40 00 00 00 00 40
nl80211: key_mgmt=0x1ff0f enc=0xfef auth=0x7 flags=0x4003d31db5bd8e0 rrm_flags=0x10 probe_resp_offloads=0x0 max_stations=0 max_remain_on_chan=5000 max_scan_ssids=4
nl80211: interface wlan1 in phy phy1
nl80211: Set mode ifindex 8 iftype 3 (AP)
nl80211: Failed to set interface 8 to mode 3: -16 (Device or resource busy)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 8 iftype 3 (AP)
nl80211: Mode change succeeded while interface is down
nl80211: Setup AP(wlan1) - device_ap_sme=0 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0xaaaafeb7c9a0
nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0xaaaafeb7c9a0 match= multicast=0
nl80211: Register frame type=0x0 (WLAN_FC_STYPE_ASSOC_REQ) nl_handle=0xaaaafeb7c9a0 match= multicast=0
nl80211: Register frame type=0x20 (WLAN_FC_STYPE_REASSOC_REQ) nl_handle=0xaaaafeb7c9a0 match= multicast=0
nl80211: Register frame type=0xa0 (WLAN_FC_STYPE_DISASSOC) nl_handle=0xaaaafeb7c9a0 match= multicast=0
nl80211: Register frame type=0xc0 (WLAN_FC_STYPE_DEAUTH) nl_handle=0xaaaafeb7c9a0 match= multicast=0
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0xaaaafeb7c9a0 match= multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaafeb7c9a0 match=04 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaafeb7c9a0 match=0501 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaafeb7c9a0 match=0503 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaafeb7c9a0 match=0504 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaafeb7c9a0 match=06 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaafeb7c9a0 match=08 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaafeb7c9a0 match=09 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaafeb7c9a0 match=0a multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaafeb7c9a0 match=11 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaaafeb7c9a0 match=7f multicast=0
rfkill: Cannot open RFKILL control device
nl80211: RFKILL status not available
nl80211: Add own interface ifindex 8 (ifidx_reason -1)
nl80211: if_indices[16]: 8(-1)
nl80211: Do not open EAPOL RX socket - using control port for RX
phy: phy1
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
wlan1: interface state UNINITIALIZED->COUNTRY_UPDATE
Previous country code FR, new country code FR
nl80211: Regulatory information - country=FR (DFS-ETSI)
nl80211: 2400-2483 @ 40 MHz 20 mBm
nl80211: 5150-5250 @ 80 MHz 23 mBm (no outdoor)
nl80211: 5250-5350 @ 80 MHz 20 mBm (no outdoor) (DFS)
nl80211: 5470-5725 @ 160 MHz 26 mBm (DFS)
nl80211: 5725-5875 @ 80 MHz 13 mBm
nl80211: 5945-6425 @ 160 MHz 23 mBm (no outdoor)
nl80211: 57000-71000 @ 2160 MHz 40 mBm
nl80211: Mode IEEE 802.11a: 5180 5200 5220 5240 5260[RADAR] 5280[RADAR] 5300[RADAR] 5320[RADAR] 5500[RADAR] 5520[RADAR] 5540[RADAR] 5560[RADAR] 5580[RADAR] 5600[RADAR] 5620[RADAR] 5640[RADAR] 5660[RADAR] 5680[RADAR]
nl80211: Mode IEEE 802.11a: 5955 5975 5995 6015 6035 6055 6075 6095 6115 6135 6155 6175 6195 6215 6235 6255 6275 6295 6315 6335 6355 6375 6395 6415 6435[DISABLED] 6455[DISABLED] 6475[DISABLED] 6495[DISABLED] 6515[DISABLED]
Allowed channel: mode=2 chan=36 freq=5180 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=40 freq=5200 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=44 freq=5220 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=48 freq=5240 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=52 freq=5260 MHz max_tx_power=20 dBm (DFS state = usable)
Allowed channel: mode=2 chan=56 freq=5280 MHz max_tx_power=20 dBm (DFS state = usable)
Allowed channel: mode=2 chan=60 freq=5300 MHz max_tx_power=20 dBm (DFS state = usable)
Allowed channel: mode=2 chan=64 freq=5320 MHz max_tx_power=20 dBm (DFS state = usable)
Allowed channel: mode=2 chan=100 freq=5500 MHz max_tx_power=26 dBm (DFS state = usable)
Allowed channel: mode=2 chan=104 freq=5520 MHz max_tx_power=26 dBm (DFS state = usable)
Allowed channel: mode=2 chan=108 freq=5540 MHz max_tx_power=26 dBm (DFS state = usable)
Allowed channel: mode=2 chan=112 freq=5560 MHz max_tx_power=26 dBm (DFS state = usable)
Allowed channel: mode=2 chan=116 freq=5580 MHz max_tx_power=26 dBm (DFS state = usable)
Allowed channel: mode=2 chan=120 freq=5600 MHz max_tx_power=26 dBm (DFS state = usable)
Allowed channel: mode=2 chan=124 freq=5620 MHz max_tx_power=26 dBm (DFS state = usable)
Allowed channel: mode=2 chan=128 freq=5640 MHz max_tx_power=26 dBm (DFS state = usable)
Allowed channel: mode=2 chan=132 freq=5660 MHz max_tx_power=26 dBm (DFS state = usable)
Allowed channel: mode=2 chan=136 freq=5680 MHz max_tx_power=26 dBm (DFS state = usable)
Allowed channel: mode=2 chan=140 freq=5700 MHz max_tx_power=26 dBm (DFS state = usable)
Allowed channel: mode=2 chan=144 freq=5720 MHz max_tx_power=0 dBm (DFS state = usable)
Allowed channel: mode=2 chan=149 freq=5745 MHz max_tx_power=13 dBm
Allowed channel: mode=2 chan=153 freq=5765 MHz max_tx_power=13 dBm
Allowed channel: mode=2 chan=157 freq=5785 MHz max_tx_power=13 dBm
Allowed channel: mode=2 chan=161 freq=5805 MHz max_tx_power=13 dBm
Allowed channel: mode=2 chan=165 freq=5825 MHz max_tx_power=13 dBm
Allowed channel: mode=2 chan=169 freq=5845 MHz max_tx_power=13 dBm
Allowed channel: mode=2 chan=173 freq=5865 MHz max_tx_power=13 dBm
Allowed channel: mode=2 chan=1 freq=5955 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=5 freq=5975 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=9 freq=5995 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=13 freq=6015 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=17 freq=6035 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=21 freq=6055 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=25 freq=6075 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=29 freq=6095 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=33 freq=6115 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=37 freq=6135 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=41 freq=6155 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=45 freq=6175 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=49 freq=6195 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=53 freq=6215 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=57 freq=6235 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=61 freq=6255 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=65 freq=6275 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=69 freq=6295 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=73 freq=6315 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=77 freq=6335 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=81 freq=6355 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=85 freq=6375 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=89 freq=6395 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=93 freq=6415 MHz max_tx_power=23 dBm
hw vht capab: 0x339a59f6, conf vht capab: 0x0
wlan1: interface state COUNTRY_UPDATE->HT_SCAN
Scan for neighboring BSSes prior to enabling 40 MHz channel
40 MHz affected channel range: [5190,5230] MHz
wlan1: nl80211: scan request
nl80211: Passive scan requested
nl80211: Scan frequency 5200 MHz
nl80211: Scan frequency 5220 MHz
Scan requested (ret=0) - scan timeout 10 seconds
Interface initialization will be completed in a callback
ctrl_iface not configured!
random: Got 20/20 bytes from /dev/random
RTM_NEWLINK: ifi_index=8 ifname=wlan1 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1002 ()
nl80211: Ignore interface down event since interface wlan1 is up
RTM_NEWLINK: ifi_index=8 ifname=wlan1 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1003 ([UP])
nl80211: Event message available
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlan1
wlan1: nl80211: Scan trigger
wlan1: Event SCAN_STARTED (47) received
Unknown event 47
RTM_NEWLINK: ifi_index=8 ifname=wlan1 wext ifi_family=0 ifi_flags=0x1003 ([UP])
nl80211: Event message available
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlan1
wlan1: nl80211: New scan results available
nl80211: Scan included frequencies: 5200 5220
wlan1: Event SCAN_RESULTS (3) received
nl80211: Received scan results (0 BSSes)
HT40: control channel: 40 (5200 MHz), secondary channel: 44 (5220 MHz)
HT40 channel pair (40, 44) not allowed
Fallback to 20 MHz
Completing interface initialization
Mode: IEEE 802[ 211.650331] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
.11a Channel: 40 Frequency: 5200 MHz
DFS 0 channels required radar detection
nl80211: Set freq 5200 (ht_enabled=1, vht_enabled=1, he_enabled=0, bandwidth=20 MHz, cf1=5200 MHz, cf2=0 MHz)
* freq=5200
* he_enabled=0
* vht_enabled=1
* ht_enabled=1
* bandwidth=20
* channel_width=1
* center_freq1=5200
* center_freq2=0
RATE[0] rate=60 flags=0x1
RATE[1] rate=90 flags=0x0
RATE[2] rate=120 flags=0x1
RATE[3] rate=180 flags=0x0
RATE[4] rate=240 flags=0x1
RATE[5] rate=360 flags=0x0
RATE[6] rate=480 flags=0x0
RATE[7] rate=540 flags=0x0
hostapd_setup_bss(hapd=0xaaaafeb7bae0 (wlan1), first=1)
nl80211: flush -> DEL_STATION wlan1 (all)
Using interface wlan1 with hwaddr 00:0a:52:08:32:49 and ssid "doudoo_diagbox"
Deriving WPA PSK based on passphrase
SSID - hexdump_ascii(len=14):
64 6f 75 64 6f 6f 5f 64 69 61 67 62 6f 78 doudoo_diagbox
PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Get randomness: len=32 entropy=0
GMK - hexdump(len=32): [REMOVED]
Get randomness: len=32 entropy=0
Key Counter - hexdump(len=32): [REMOVED]
WPA: Delay group state machine start until Beacon frames have been configured
nl80211: Set beacon (beacon_set=0)
nl80211: Beacon head - hexdump(len=65): 80 00 00 00 ff ff ff ff ff ff 00 0a 52 08 32 49 00 0a 52 08 32 49 00 00 00 00 00 00 00 00 00 00 64 00 11 00 00 0e 64 6f 75 64 6f 6f 5f 64 69 61 67 62 6f 78 01 08 8c 12 98 24 b0 48 60 6c 03 01 28
nl80211: Beacon tail - hexdump(len=161): 07 12 46 52 20 24 04 17 34 04 14 64 0b 1a 90 01 00 95 07 0d 3b 02 73 00 2d 1a 4e 08 17 ff ff 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 3d 16 28 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7f 08 04 00 40 00 00 00 00 40 bf 0c 00 00 00 00 fa ff 00 00 fa ff 00 20 c0 05 00 00 00 fc ff c3 02 00 2e dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 dd 18 00 50 f2 02 01 01 01 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00
nl80211: ifindex=8
nl80211: beacon_int=100
nl80211: beacon_rate=0
nl80211: rate_type=0
nl80211: dtim_period=2
nl80211: ssid=doudoo_diagbox
* beacon_int=100
* dtim_period=2
nl80211: hidden SSID not in use
nl80211: privacy=1
nl80211: auth_algs=0x1
nl80211: wpa_version=0x1
nl80211: key_mgmt_suites=0x2
nl80211: pairwise_ciphers=0x8
nl80211: group_cipher=0x8
nl80211: beacon_ies - hexdump(len=10): 7f 08 04 00 40 00 00 00 00 40
nl80211: proberesp_ies - hexdump(len=10): 7f 08 04 00 40 00 00 00 00 40
nl80211: assocresp_ies - hexdump(len=10): 7f 08 04 00 40 00 00 00 00 40
nl80211: twt_responder=1
nl80211: multicast to unicast disabled on interface wlan1
wlan1: Deauthenticate all stations at BSS start
nl80211: send_mlme - da=ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 no_encrypt=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
nl80211: send_mlme - Use bss->freq=5200
nl80211: send_mlme -> send_frame_cmd
nl80211: CMD_FRAME freq=5200 wait=0 no_cck=0 no_ack=0 offchanok=0
CMD_FRAME - hexdump(len=26): c0 00 00 00 ff ff ff ff ff ff 00 0a 52 08 32 49 00 0a 52 08 32 49 00 00 02 00
nl80211: Frame TX command accepted; cookie 0x3
WPA: Start group state machine to set initial keys
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
Get randomness: len=32 entropy=0
GTK - hexdump(len=32): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
wpa_driver_nl80211_set_key: ifindex=8 (wlan1) alg=2 addr=0xaaaad86fe4bf key_idx=1 set_tx=1 seq_len=0 key_len=32 key_flag=0x1a
nl80211: NEW_KEY
nl80211: KEY_DATA - hexdump(len=32): [REMOVED]
broadcast key
nl80211: NL80211_CMD_SET_KEY - default key
nl80211: Set wlan1 operstate 0->1 (UP)
netlink: Operstate: ifindex=8 linkmode=-1 (no change), operstate=6 (IF_OPER_UP)
nl80211: TX queue param set: queue=0 aifs=1 cw_min=3 cw_max=7 burst_time=15 --> res=0
nl80211: TX queue param set: queue=1 aifs=1 cw_min=7 cw_max=15 burst_time=30 --> res=0
nl80211: TX queue param set: queue=2 aifs=3 cw_min=15 cw_max=63 burst_time=0 --> res=0
nl80211: TX queue param set: queue=3 aifs=7 cw_min=15 cw_max=1023 burst_time=0 --> res=0
wlan1: interface state HT_SCAN->ENABLED
wlan1: AP-ENABLED
wlan1: Setup of interface done.
RTM_NEWLINK: ifi_index=8 ifname=wlan1 operstate=6 linkmode=0 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
nl80211: Event message available
nl80211: Drv Event 60 (NL80211_CMD_FRAME_TX_STATUS) received for wlan1
nl80211: MLME event 60 (NL80211_CMD_FRAME_TX_STATUS) on wlan1(00:0a:52:08:32:49) A1=ff:ff:ff:ff:ff:ff A2=00:0a:52:08:32:49
nl80211: MLME event frame - hexdump(len=26): c0 00 00 00 ff ff ff ff ff ff 00 0a 52 08 32 49 00 0a 52 08 32 49 00 00 02 00
nl80211: Frame TX status event A1=ff:ff:ff:ff:ff:ff stype=12 cookie=0x3 ack=0
wlan1: Event TX_STATUS (16) received
mgmt::deauth cb

```Voici la conf de Hostapd :

# Interface wifi
interface=wlan1

# SSID et clef de securite
ssid=doudoo_diagbox
wpa_passphrase=12345678

# Mode :
hw_mode=a

# Canal
channel=40

# Wifi 4
ieee80211n=1
ht_capab=[HT40+][HT40-][SHORT-GI-40][MAX-AMSDU-7935]

# Wifi 5
ieee80211ac=1
vht_oper_chwidth=0
#vht_oper_centr_freq_seg0_idx=
#vht_capab=

# DFS
ieee80211h=1
ieee80211h=1
ieee80211d=1
country_code=FR

# Algo de secu
auth_algs=1
#wpa=2
wpa=1
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP

macaddr_acl=0

# Bridge Lan
#bridge=br-wifi

# QoS
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
tx_queue_data3_aifs=7
tx_queue_data3_cwmin=15
tx_queue_data3_cwmax=1023
tx_queue_data3_burst=0
tx_queue_data2_aifs=3
tx_queue_data2_cwmin=15
tx_queue_data2_cwmax=63
tx_queue_data2_burst=0
tx_queue_data1_aifs=1
tx_queue_data1_cwmin=7
tx_queue_data1_cwmax=15
tx_queue_data1_burst=3.0
tx_queue_data0_aifs=1
tx_queue_data0_cwmin=3
tx_queue_data0_cwmax=7
tx_queue_data0_burst=1.5
# Logs
logger_syslog=0
logger_syslog_level=4
logger_stdout=-1
logger_stdout_level=0

Merci d'avance :)

  • # Résolu

    Posté par  . Évalué à 2.

    Hello.
    J'ai trouvé la solution après des nuits blanches.
    C'était le firmware de la carte Médiatek.
    J'ai testé plusieurs versions avant de trouver une qui fonctionne 'comme il faut avec ma configuration'.

Suivre le flux des commentaires

Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.