Hi Tomasz,
On 12/12/2013 04:52 PM, Daniel Wagner wrote:
> On 12/12/2013 02:57 PM, Tomasz Bursztyka wrote:
>> In case of an hidden AP around, its ssid has a length of 0, but it is
>> obviously a valid network anyway.
>>
>> Fixes such regression from commit 363393cfb1a5f95f8892f40662486c87b80d0091
>
> Ooops, sorry about that.
>
>
>> Reported by Sameer Naik
>> ---
>> gsupplicant/supplicant.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
>> index 23ea41a..559dfbc 100644
>> --- a/gsupplicant/supplicant.c
>> +++ b/gsupplicant/supplicant.c
>> @@ -853,7 +853,7 @@ const char
>> *g_supplicant_network_get_security(GSupplicantNetwork *network)
>> const void *g_supplicant_network_get_ssid(GSupplicantNetwork *network,
>> unsigned int *ssid_len)
>> {
>> - if (!network || network->ssid_len == 0) {
>> + if (!network) {
>> *ssid_len = 0;
>> return NULL;
>> }
>>
>
> Just out of curiosity, what is then the contents of network->ssid?
I enabled my brain, got the answer :)
brainless greetigs,
daniel
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman