Re: SAE: External Auth send mlme failed.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear guys.

About this issue.

before the Kernel v5.1.6, We can call the NL80211_CMD_CH_SWITCH_NOTIFY to update
the "bss->freq".

but after the Kernel v5.1.6, station does not use the
NL80211_CMD_CH_SWITCH_NOTIFY before connect.
only can use the NL80211_CMD_CH_SWITCH_STATRED_NOTIFY.
but it does not update the "bss->freq".

Now, I can't send the auth again.

Does someone have any solution ?

Thank a lots
Ouden Lin

On Tue, Dec 25, 2018 at 1:52 PM Ouden.Biz Lin <ouden.biz@xxxxxxxxx> wrote:
>
> Hi all,
> I test the WPA3-SAE with the sme_external_auth_trigger().
> But, It can't send the sae commit frame to driver by
> wpa_driver_nl80211_send_frame.
> I trace the code flow, the wpa_drv_send_mlme() don't set the freq.
> And, bss->freq is zero. (I think it only for AP)
> Has anyone encountered the same problem?
>
> Below is the log and my temporary solution.
>
> Connecting log:
> nl80211: send_mlme - da= 00:03:7f:0b:64:03 noack=1 freq=0 no_cck=0
> offchanok=0 wait_time=0 fc=0xb0 (WLAN_FC_STYPE_AUTH) nlmode=2
> nl80211: send_mlme -> send_frame
> nl80211: send_frame - Use bss->freq=0
> nl80211: send_frame -> send_frame_cmd
> nl80211: CMD_FRAME freq=0 wait=0 no_cck=0 no_ack=1 offchanok=0
> nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)
>
>
> static int wpa_driver_nl80211_send_frame(struct i802_bss *bss,
> const void *data, size_t len,
> int encrypt, int noack,
> unsigned int freq, int no_cck,
> int offchanok, unsigned int wait_time,
> const u16 *csa_offs,
> size_t csa_offs_len)
> {
> struct wpa_driver_nl80211_data *drv = bss->drv;
> u64 cookie;
> int res;
>
> + if (freq == 0 && drv->nlmode == NL80211_IFTYPE_STATION) {
> + freq = nl80211_get_assoc_freq(drv);
> + wpa_printf(MSG_DEBUG,
> +    "nl80211: send_frame - Use assoc_freq=%u for STATION",
> +    freq);
> + }
> if (freq == 0 && drv->nlmode == NL80211_IFTYPE_ADHOC) {
> freq = nl80211_get_assoc_freq(drv);
> wpa_printf(MSG_DEBUG,
>    "nl80211: send_frame - Use assoc_freq=%u for IBSS",
>    freq);
> }
>
> Thanks & Regards,
> Ouden Lin

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux