Re: Error while enabling AP using wpa_supplicant

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

 



On Mon, Jan 30, 2017 at 04:09:01PM +0000, Jose Blanquicet wrote:
> I tried what you suggested and it worked for me:
> 
> diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
> index 6080079..5470312 100644
> --- a/src/drivers/driver_nl80211.c
> +++ b/src/drivers/driver_nl80211.c
> @@ -3783,7 +3783,8 @@ static int wpa_driver_nl80211_set_ap(void *priv,
>                    beacon_set);
>         if (beacon_set)
>                 cmd = NL80211_CMD_SET_BEACON;
> -       else if (!nl80211_get_wiphy_data_ap(bss))
> +       else if (!drv->device_ap_sme && !drv->use_monitor &&
> +                               !nl80211_get_wiphy_data_ap(bss))
>                 return -ENOBUFS;
> 
>         wpa_hexdump(MSG_DEBUG, "nl80211: Beacon head",
> 
> What does Jouni think about this solution?

This looks like the correct thing to do here.
nl80211_get_wiphy_data_ap() used to be called from
nl80211_mgmt_subscribe_ap() and that function is within that same
!device_ap_sme && !use_monitor case.

Could you please send this patch with a proper commit message and
Signed-off-by: line so that I can apply it?

-- 
Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
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