diff options
author | Dan Williams <dcbw@redhat.com> | 2010-07-27 15:55:21 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-27 15:06:43 -0400 |
commit | 9fb7663d2b832183ec7558a19426666819636a64 (patch) | |
tree | 291a6a59d3facd5d06d73839aea7a31a5d5d30fe /drivers/net/wireless/libertas/host.h | |
parent | a45b6f4f9ef7fde2321da5aaa7db0e1e793a5b1e (diff) |
libertas: clean up RSSI command
Convert to a full direct command; previous code rolled a direct
command by hand but left the original indirect command code intact
but disabled.
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/host.h')
-rw-r--r-- | drivers/net/wireless/libertas/host.h | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/drivers/net/wireless/libertas/host.h b/drivers/net/wireless/libertas/host.h index dd67334765ef..0517ec3d4ba3 100644 --- a/drivers/net/wireless/libertas/host.h +++ b/drivers/net/wireless/libertas/host.h | |||
@@ -644,19 +644,19 @@ struct cmd_ds_802_11_rf_channel { | |||
644 | } __packed; | 644 | } __packed; |
645 | 645 | ||
646 | struct cmd_ds_802_11_rssi { | 646 | struct cmd_ds_802_11_rssi { |
647 | /* weighting factor */ | 647 | struct cmd_header hdr; |
648 | __le16 N; | ||
649 | 648 | ||
650 | __le16 reserved_0; | 649 | /* request: number of beacons (N) to average the SNR and NF over |
651 | __le16 reserved_1; | 650 | * response: SNR of most recent beacon |
652 | __le16 reserved_2; | 651 | */ |
653 | } __packed; | 652 | __le16 n_or_snr; |
654 | 653 | ||
655 | struct cmd_ds_802_11_rssi_rsp { | 654 | /* The following fields are only set in the response. |
656 | __le16 SNR; | 655 | * In the request these are reserved and should be set to 0. |
657 | __le16 noisefloor; | 656 | */ |
658 | __le16 avgSNR; | 657 | __le16 nf; /* most recent beacon noise floor */ |
659 | __le16 avgnoisefloor; | 658 | __le16 avg_snr; /* average SNR weighted by N from request */ |
659 | __le16 avg_nf; /* average noise floor weighted by N from request */ | ||
660 | } __packed; | 660 | } __packed; |
661 | 661 | ||
662 | struct cmd_ds_802_11_mac_address { | 662 | struct cmd_ds_802_11_mac_address { |
@@ -969,8 +969,6 @@ struct cmd_ds_command { | |||
969 | /* command Body */ | 969 | /* command Body */ |
970 | union { | 970 | union { |
971 | struct cmd_ds_802_11_ps_mode psmode; | 971 | struct cmd_ds_802_11_ps_mode psmode; |
972 | struct cmd_ds_802_11_rssi rssi; | ||
973 | struct cmd_ds_802_11_rssi_rsp rssirsp; | ||
974 | struct cmd_ds_mac_reg_access macreg; | 972 | struct cmd_ds_mac_reg_access macreg; |
975 | struct cmd_ds_bbp_reg_access bbpreg; | 973 | struct cmd_ds_bbp_reg_access bbpreg; |
976 | struct cmd_ds_rf_reg_access rfreg; | 974 | struct cmd_ds_rf_reg_access rfreg; |