HostAP Digest, Vol 124, Issue 32

Norman Henderson norm.audrey
Fri Aug 30 15:05:10 PDT 2013


Thanks Mihai. As there is no libnl2 or libnl3 package for Ubuntu
Lucid, I downloaded source for libnl 3.2.22 and built and installed it
without apparent incident using
http://www.linuxfromscratch.org/blfs/view/svn/basicnet/libnl.html.

Unfortunately I still get similar looking compile errors with
../src/drivers/driver_nl80211.c when trying the hostapd 2.0 install
once more (make clean, make all).

- Norman

On 8/30/13, hostap-request at lists.shmoo.com
<hostap-request at lists.shmoo.com> wrote:
> Send HostAP mailing list submissions to
> 	hostap at lists.shmoo.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.shmoo.com/mailman/listinfo/hostap
> or, via email, send a message with subject or body 'help' to
> 	hostap-request at lists.shmoo.com
>
> You can reach the person managing the list at
> 	hostap-owner at lists.shmoo.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of HostAP digest..."
>
>
> Today's Topics:
>
>    1. [PATCH] P2P: Immediate group removal in GC in case of
>       deauthentication (Sreenath Sharma)
>    2. RE: [PATCH] P2P: Allow P2P functionality to be disabled per
>       interface (Sreenath S)
>    3. RE: [PATCH] Avoid channel reselection, if any of the best
>       channel is selected as operating channel (Sreenath S)
>    4. Re: hostapd segfault, unable to restart, unable to compile
>       2.0 (Mihai Moldovan)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 30 Aug 2013 18:38:25 +0530
> From: "Sreenath Sharma" <sreenats at broadcom.com>
> Subject: [PATCH] P2P: Immediate group removal in GC in case of
> 	deauthentication
> To: hostap at lists.shmoo.com
> Message-ID: <20130830130825.GA9742 at sreenath-Precision-M4700>
> Content-Type: text/plain; charset=us-ascii
>
> Right now in case of deauthentication from GO, immediate group removal will
> happen in GC only if the deauthentication packet has a valid IE. However
> the IE in deauthentication packet is mandated only for managed P2P group.
> So in normal P2P group the group removal is delayed and will happen later
> only in group idle timeout.
>
> Signed-hostap: Sreenath Sharma <sreenats at broadcom.com>
> ---
>  wpa_supplicant/events.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
> index 40c6adf..8d6c234 100644
> --- a/wpa_supplicant/events.c
> +++ b/wpa_supplicant/events.c
> @@ -2473,7 +2473,7 @@ static void wpas_event_disconnect(struct
> wpa_supplicant *wpa_s, const u8 *addr,
>  		wpas_auth_failed(wpa_s);
>
>  #ifdef CONFIG_P2P
> -	if (deauth && ie && ie_len > 0) {
> +	if (deauth && reason_code > 0) {
>  		if (wpas_p2p_deauth_notif(wpa_s, addr, reason_code, ie, ie_len,
>  					  locally_generated) > 0) {
>  			/*
> --
> 1.7.9.5
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 30 Aug 2013 13:12:52 +0000
> From: "Sreenath S" <sreenats at broadcom.com>
> Subject: RE: [PATCH] P2P: Allow P2P functionality to be disabled per
> 	interface
> To: "hostap at lists.shmoo.com" <hostap at lists.shmoo.com>
> Cc: "j at w1.fi" <j at w1.fi>
> Message-ID:
> 	<5F8A83CFE238064080EB46F88B8161C1013AA82E at SJEXCHMB09.corp.ad.broadcom.com>
> 	
> Content-Type: text/plain; charset=us-ascii
>
> Hello Jouni,
>
> Any update on this patch?
>
> Regards,
> Sreenath
> ________________________________________
> From: hostap-bounces at lists.shmoo.com [hostap-bounces at lists.shmoo.com] on
> behalf of Sreenath Sharma [sreenats at broadcom.com]
> Sent: 01 August 2013 16:03
> To: hostap at lists.shmoo.com
> Subject: [PATCH] P2P: Allow P2P functionality to be disabled per interface
>
> By default, P2P is initialized for all driver interfaces and this makes
> P2P getting initialized for non-P2P station interface if the supplicant
> is started first on this interface. If an interface is dedicated for
> non-P2P station mode, it is now possible to disable P2P initialization
> by adding 'p2p_disabled=1' in the configuration file of non-P2P station
> interface, irrespective of the order in which supplicant is started.
>
> Signed-hostap: Sreenath Sharma <sreenats at broadcom.com>
> ---
>  wpa_supplicant/p2p_supplicant.c |    3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/wpa_supplicant/p2p_supplicant.c
> b/wpa_supplicant/p2p_supplicant.c
> index 2c363ec..82d0e81 100644
> --- a/wpa_supplicant/p2p_supplicant.c
> +++ b/wpa_supplicant/p2p_supplicant.c
> @@ -3095,6 +3095,9 @@ int wpas_p2p_init(struct wpa_global *global, struct
> wpa_supplicant *wpa_s)
>         unsigned int r;
>         int i;
>
> +       if (wpa_s->conf->p2p_disabled)
> +               return 0;
> +
>         if (!(wpa_s->drv_flags & WPA_DRIVER_FLAGS_P2P_CAPABLE))
>                 return 0;
>
> --
> 1.7.9.5
>
>
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 30 Aug 2013 13:25:26 +0000
> From: "Sreenath S" <sreenats at broadcom.com>
> Subject: RE: [PATCH] Avoid channel reselection, if any of the best
> 	channel is selected as operating channel
> To: "HostAP mailing list" <hostap at lists.shmoo.com>
> Cc: "j at w1.fi" <j at w1.fi>
> Message-ID:
> 	<5F8A83CFE238064080EB46F88B8161C1013AA8C0 at SJEXCHMB09.corp.ad.broadcom.com>
> 	
> Content-Type: text/plain; charset=us-ascii
>
> Hello Jouni,
>
> Any update on this patch?
>
> Regards,
> Sreenath
> ________________________________________
> From: hostap-bounces at lists.shmoo.com [hostap-bounces at lists.shmoo.com] on
> behalf of Sreenath [sreenats at broadcom.com]
> Sent: 22 January 2013 19:43
> To: HostAP mailing list
> Subject: [PATCH] Avoid channel reselection, if any of the best channel is
> selected as operating channel
>
> Set P2P_DEV_FORCE_FREQ flag if any of the best channel is selected as
> the operating channel, to prevent channel reselection in GO channel
> selection.
>
> Signed-hostap: Sreenath Sharma <sreenats at broadcom.com>
>
> ---
>   src/p2p/p2p.c |   16 ++++++++++++----
>   1 file changed, 12 insertions(+), 4 deletions(-)
>
> diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c
> index 43f8673..c616112 100644
> --- a/src/p2p/p2p.c
> +++ b/src/p2p/p2p.c
> @@ -1160,7 +1160,8 @@ static int p2p_prepare_channel_pref(struct
> p2p_data *p2p,
>   }
>
>
> -static void p2p_prepare_channel_best(struct p2p_data *p2p)
> +static void p2p_prepare_channel_best(struct p2p_data *p2p,
> +                    unsigned int *best_freq)
>   {
>       u8 op_class, op_channel;
>
> @@ -1172,6 +1173,7 @@ static void p2p_prepare_channel_best(struct
> p2p_data *p2p)
>               "overall channel as operating channel preference");
>           p2p->op_reg_class = op_class;
>           p2p->op_channel = op_channel;
> +        *best_freq = 1;
>       } else if (!p2p->cfg->cfg_op_channel && p2p->best_freq_5 > 0 &&
>              p2p_supported_freq(p2p, p2p->best_freq_5) &&
>              p2p_freq_to_channel(p2p->cfg->country, p2p->best_freq_5,
> @@ -1180,6 +1182,7 @@ static void p2p_prepare_channel_best(struct
> p2p_data *p2p)
>               "channel as operating channel preference");
>           p2p->op_reg_class = op_class;
>           p2p->op_channel = op_channel;
> +        *best_freq = 1;
>       } else if (!p2p->cfg->cfg_op_channel && p2p->best_freq_24 > 0 &&
>              p2p_supported_freq(p2p, p2p->best_freq_24) &&
>              p2p_freq_to_channel(p2p->cfg->country, p2p->best_freq_24,
> @@ -1188,9 +1191,11 @@ static void p2p_prepare_channel_best(struct
> p2p_data *p2p)
>               "GHz channel as operating channel preference");
>           p2p->op_reg_class = op_class;
>           p2p->op_channel = op_channel;
> +        *best_freq = 1;
>       } else {
>           p2p->op_reg_class = p2p->cfg->op_reg_class;
>           p2p->op_channel = p2p->cfg->op_channel;
> +        *best_freq = 0;
>       }
>
>       os_memcpy(&p2p->channels, &p2p->cfg->channels,
> @@ -1214,19 +1219,22 @@ static void p2p_prepare_channel_best(struct
> p2p_data *p2p)
>   static int p2p_prepare_channel(struct p2p_data *p2p, struct p2p_device
> *dev,
>                      unsigned int force_freq, unsigned int pref_freq)
>   {
> +    unsigned int best_freq = 0;
> +
>       if (force_freq || pref_freq) {
>           if (p2p_prepare_channel_pref(p2p, force_freq, pref_freq) < 0)
>               return -1;
>       } else {
> -        p2p_prepare_channel_best(p2p);
> +        p2p_prepare_channel_best(p2p, &best_freq);
>       }
>       wpa_msg(p2p->cfg->msg_ctx, MSG_DEBUG,
>           "P2P: Own preference for operation channel: "
>           "Operating Class %u Channel %u%s",
>           p2p->op_reg_class, p2p->op_channel,
> -        force_freq ? " (forced)" : "");
> +        force_freq ? " (forced)" :
> +        best_freq ? " (best)" : "");
>
> -    if (force_freq)
> +    if (force_freq || best_freq)
>           dev->flags |= P2P_DEV_FORCE_FREQ;
>       else
>           dev->flags &= ~P2P_DEV_FORCE_FREQ;
> --
> 1.7.9.5
>
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 30 Aug 2013 17:37:09 +0200
> From: Mihai Moldovan <ionic at ionic.de>
> Subject: Re: hostapd segfault, unable to restart, unable to compile
> 	2.0
> To: Norman Henderson <norm.audrey at gmail.com>
> Cc: "hostap at lists.shmoo.com" <hostap at lists.shmoo.com>
> Message-ID: <5220BC25.7080504 at ionic.de>
> Content-Type: text/plain; charset="windows-1252"
>
> * On 29.08.2013 10:09 PM, Norman Henderson wrote:
>> Below is an abbreviated log, followed by the output of apt-cache show for
>> a
>> couple of packages that seemed (to me!) relevant.
>
> I guess you'll need libnl2 or even 3. For Debian, use the packages
> libnl-3-dev
> and libnl-3-200.
>
>
>
> Mihai
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: smime.p7s
> Type: application/pkcs7-signature
> Size: 4506 bytes
> Desc: S/MIME Cryptographic Signature
> URL:
> <http://lists.shmoo.com/pipermail/hostap/attachments/20130830/d9b7547c/attachment-0001.bin>
>
> ------------------------------
>
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>
>
> End of HostAP Digest, Vol 124, Issue 32
> ***************************************
>



More information about the Hostap mailing list