Closed dimich-dmb closed 5 years ago
I have not had time to look very deeply into this, but channel 13 is ONLY valid in Japan. You are stating that your country code is Ukraine.
Thank you for quick answer. Channel number doesn't matter, i tried different channels and got the same result. BTW, channel 14 is only in Japan. Channel 13 is allowed in Europe.
This patch should fix the problem:
Author: Thomas Graziadei <thomas.graziadei@omicronenergy.com>
Date: Wed May 8 16:08:08 2019 +0200
rtl8723bu: Initialize pertid pointer in sinfo struct.
Signed-off-by: Thomas Graziadei <thomas.graziadei@omicronenergy.com>
diff --git a/os_dep/ioctl_cfg80211.c b/os_dep/ioctl_cfg80211.c
index f4bfa9c..57b7b5d 100644
--- a/os_dep/ioctl_cfg80211.c
+++ b/os_dep/ioctl_cfg80211.c
@@ -3302,6 +3302,7 @@ void rtw_cfg80211_indicate_sta_assoc(_adapter *padapter, u8 *pmgmt_frame, uint f
ie_offset = _REASOCREQ_IE_OFFSET_;
sinfo.filled = 0;
+ sinfo.pertid = 0;
sinfo.filled = STATION_INFO_ASSOC_REQ_IES;
sinfo.assoc_req_ies = pmgmt_frame + WLAN_HDR_A3_LEN + ie_offset;
sinfo.assoc_req_ies_len = frame_len - WLAN_HDR_A3_LEN - ie_offset;
A couple of small corrections: (1) the fsinfo.filled = 0 can be removed as it is immediately followed by a statement that sets sinfo.filled, and (2) sinfo.pertid is a pointer, thus it should be initialized with a NULL, not a plain zero.
Thanks for debugging this.
Now it works good. Thank you all.
After starting hostapd i see the AP SSID in list of APs. But after attempt to connect i got "Authentication problem" on client device and following message in host's kernel log:
$ uname -a
Linux dimich 4.20.6-arch1-1-ARCH #1 SMP PREEMPT Thu Jan 31 08:22:01 UTC 2019 x86_64 GNU/Linux
hostapd.conf: