Search Linux Wireless

Re: [PATCH, take 3] libertas: convert RSSI to a direct command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Won't this call block? You can't block in the get_wireless
> handler (it holds the rtnl lock). See wext_handle_ioctl.

Yes, this blocks.

So you mean that when I cannot get a current RSSI value at this 
time I have to re-use some old value?  The older code used this 
schema:


when associated:
   get rssi in-the-background and store it away

when AdHoc network created:
   get rssi in-the-background and store it away


in lbs_get_wireless_stats()
   use stored away RSSI value
   get rssi in-the-background and store it away
   

The problem with this scheme is that the "stored away RSSI" might 
be an hour ago. So the first call to to get the wireless stats 
gives you back a blatant lie.

Do you see a way around this?
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux