[RFC] nl80211: set NLMODE correctly for AP interface
avinashapatil at gmail.com
Sat May 10 13:48:35 EDT 2014
Do you have any comment on this patch? If not so, do you want me to
send this as patch instead of RFC?
On Fri, May 2, 2014 at 6:48 PM, Avinash Patil <avinashapatil at gmail.com> wrote:
> From aa6bb9891b00d0a07658a93020d05027c6ce4454 Mon Sep 17 00:00:00 2001
> From: Avinash Patil <patila at marvell.com>
> Date: Sat, 3 May 2014 00:03:17 +0530
> Subject: [PATCH] nl80211: set NLMODE correctly for AP interface
> During supplicant/hostapd initialization, current implementation
> sets NLMODE as AP only when hostapd has been started or for dynamically
> created interfaces.
> If supplicant is used for AP operations on statically created AP
> interfaces, this also should also set NLMODE as AP.
> This patch handles this case.
> Signed-off-by: Avinash Patil <patila at marvell.com>
> src/drivers/driver_nl80211.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
> index 1300703..be222d9 100644
> --- a/src/drivers/driver_nl80211.c
> +++ b/src/drivers/driver_nl80211.c
> @@ -4698,7 +4698,7 @@ wpa_driver_nl80211_finish_drv_init(struct
> wpa_driver_nl80211_data *drv,
> if (first && nl80211_get_ifmode(bss) == NL80211_IFTYPE_AP)
> drv->start_mode_ap = 1;
> - if (drv->hostapd)
> + if (drv->hostapd || nl80211_get_ifmode(bss) == NL80211_IFTYPE_AP)
> nlmode = NL80211_IFTYPE_AP;
> else if (bss->if_dynamic)
> nlmode = nl80211_get_ifmode(bss);
More information about the HostAP