Ticket #781 (closed enhancement: fixed)

Opened 6 years ago

Last modified 6 years ago

[patch] care about update flag in iwspy data

Reported by: Christian Buennig <masala@web.de> Assigned to:
Priority: trivial Milestone: version 0.9.3
Component: madwifi: driver Version: trunk
Keywords: iwspy updated Cc:
Patch is attached: 1 Pending:

Description

The data returned by an iwspy-get-ioctl (struct iw_quality) contains the field updated which informs if the quality data has been updated since the last iwspy-get-ioctl. This field is currently allways set to true, even if the quality information has not been updated since last ioctl.

The attached patch sets the field updated appropriately.

It works as follows:

The quality data returned by an iwspy-get-ioctl is based on the RSSI value of the last recevied frame of a node (last-frame-rssi). When reading the RSSI value, now additionally the last-frame-timestamp of that node is stored. So if there is again an iwspy-get-ioctl, we can check if a certain node has an updated RSSI value by comparing the stored and current last-frame-timestamp of a node.

Attachments

iwspy-update-field.diff (1.7 kB) - added by Christian Buennig <masala@web.de> on 07/26/06 21:37:24.
Signed-off-by: Christian Buennig <masala@web.de>

Change History

07/26/06 21:37:24 changed by Christian Buennig <masala@web.de>

  • attachment iwspy-update-field.diff added.

Signed-off-by: Christian Buennig <masala@web.de>

07/28/06 06:49:16 changed by mrenzmann

  • milestone set to version 0.9.3.

Thanks, looks good, should be included in 0.9.3. Please commit.

07/29/06 03:31:40 changed by kelmo

  • status changed from new to closed.
  • resolution set to fixed.

Applied to 1696. Thanks.


Add/Change #781 ([patch] care about update flag in iwspy data)