wpa_supplicant/mlme.c Doubt

Arend van Spriel arend
Wed May 15 12:13:37 PDT 2013


On 05/15/2013 09:09 PM, Ben Greear wrote:
> On 05/15/2013 11:30 AM, Francisco Cuesta wrote:
>> 2013/5/15 Ben Greear <greearb at candelatech.com>:
>>> On 05/15/2013 08:32 AM, Francisco Cuesta wrote:
>>>>
>>>> Hi Jouni,
>>>>
>>>> I have been reading the file mac80211/mlme.c trying to find out where
>>>> that definiton was made, and I found  the following definition
>>>>
>>>> #define IEEE80211_AUTH_TIMEOUT (HZ / 5)
>>>
>>>
>>> HZ is the number of ticks needed to make 1 second, so this is
>>> a 200ms timeout.
>>>
>>
>> Ticks? What kind of unit is that? I mean, does it refers to some cpu
>> cycle or signal period?
>> Then, I assume that HZ=1(s) but where is that variable defined?
>
> A tick is a jiffie..I should probably have used that term instead.
>
> I don't know exactly where it's defined..maybe only in some
> auto-generated code created by the configure process.
>
> grep should find it for you eventually.

Using LXR [1] always comes up with good suggestion(s).

> Thanks,
> Ben
>

[1] http://lxr.free-electrons.com/ident?i=HZ




More information about the Hostap mailing list