[PATCH] wpa_supplicant: Allow user to disable short guard interval (SGI).

Ben Greear greearb
Tue Dec 18 06:59:45 PST 2012


On 12/18/2012 04:46 AM, Jouni Malinen wrote:
> On Thu, Dec 13, 2012 at 09:30:26AM -0800, greearb at candelatech.com wrote:
>> Requires kernel patch to make the SGI-20 properly disabled...SGI-40
>> will already work since kernel 3.4 or so.
>
> Thanks, applied.
>
>> diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c
>> @@ -1637,6 +1637,7 @@ static const struct parse_data ssid_fields[] = {
>>   #ifdef CONFIG_HT_OVERRIDES
>>   	{ INT_RANGE(disable_ht, 0, 1) },
>>   	{ INT_RANGE(disable_ht40, -1, 1) },
>> +	{ INT_RANGE(disable_sgi, -1, 1) },
>>   	{ INT_RANGE(disable_max_amsdu, -1, 1) },
>
> Though, I changed that range to 0..1 since -1 did not seem to make sense
> for it. I'd assume that disable_ht40 range is also incorrect, i.e., only
> the A-MSDU parameters use -1.

My intention was to have -1 mean 'don't set', ie don't set the mask for it.
0 means disabled,
1 means enabled.

I'm not sure that matters all that much, we could just as easily
default to enabled.

I'll double-check that patch when I get a chance.

Thanks,
Ben

>


-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com





More information about the Hostap mailing list