diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-06-11 21:47:10 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-14 12:18:08 -0400 |
commit | 2a421b91d6fe89e27ded7544a25449c0b050098f (patch) | |
tree | a1e0ba54c0457c20d1ac7b8b765899d695d796f6 /drivers/net/wireless/iwlwifi/iwl-commands.h | |
parent | 4564ce8b0e17d91d047aa875843deb2cccf3f268 (diff) |
iwlwifi: move scan to iwl-scan.c iwlcore
This patch moves scan code to iwl-scan.c file in iwlcore module.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-commands.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-commands.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h index b58f79626e10..058e76415042 100644 --- a/drivers/net/wireless/iwlwifi/iwl-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-commands.h | |||
@@ -2100,7 +2100,7 @@ struct iwl4965_ct_kill_config { | |||
2100 | *****************************************************************************/ | 2100 | *****************************************************************************/ |
2101 | 2101 | ||
2102 | /** | 2102 | /** |
2103 | * struct iwl4965_scan_channel - entry in REPLY_SCAN_CMD channel table | 2103 | * struct iwl_scan_channel - entry in REPLY_SCAN_CMD channel table |
2104 | * | 2104 | * |
2105 | * One for each channel in the scan list. | 2105 | * One for each channel in the scan list. |
2106 | * Each channel can independently select: | 2106 | * Each channel can independently select: |
@@ -2110,7 +2110,7 @@ struct iwl4965_ct_kill_config { | |||
2110 | * quiet_plcp_th, good_CRC_th) | 2110 | * quiet_plcp_th, good_CRC_th) |
2111 | * | 2111 | * |
2112 | * To avoid uCode errors, make sure the following are true (see comments | 2112 | * To avoid uCode errors, make sure the following are true (see comments |
2113 | * under struct iwl4965_scan_cmd about max_out_time and quiet_time): | 2113 | * under struct iwl_scan_cmd about max_out_time and quiet_time): |
2114 | * 1) If using passive_dwell (i.e. passive_dwell != 0): | 2114 | * 1) If using passive_dwell (i.e. passive_dwell != 0): |
2115 | * active_dwell <= passive_dwell (< max_out_time if max_out_time != 0) | 2115 | * active_dwell <= passive_dwell (< max_out_time if max_out_time != 0) |
2116 | * 2) quiet_time <= active_dwell | 2116 | * 2) quiet_time <= active_dwell |
@@ -2118,7 +2118,7 @@ struct iwl4965_ct_kill_config { | |||
2118 | * passive_dwell < max_out_time | 2118 | * passive_dwell < max_out_time |
2119 | * active_dwell < max_out_time | 2119 | * active_dwell < max_out_time |
2120 | */ | 2120 | */ |
2121 | struct iwl4965_scan_channel { | 2121 | struct iwl_scan_channel { |
2122 | /* | 2122 | /* |
2123 | * type is defined as: | 2123 | * type is defined as: |
2124 | * 0:0 1 = active, 0 = passive | 2124 | * 0:0 1 = active, 0 = passive |
@@ -2134,13 +2134,13 @@ struct iwl4965_scan_channel { | |||
2134 | } __attribute__ ((packed)); | 2134 | } __attribute__ ((packed)); |
2135 | 2135 | ||
2136 | /** | 2136 | /** |
2137 | * struct iwl4965_ssid_ie - directed scan network information element | 2137 | * struct iwl_ssid_ie - directed scan network information element |
2138 | * | 2138 | * |
2139 | * Up to 4 of these may appear in REPLY_SCAN_CMD, selected by "type" field | 2139 | * Up to 4 of these may appear in REPLY_SCAN_CMD, selected by "type" field |
2140 | * in struct iwl4965_scan_channel; each channel may select different ssids from | 2140 | * in struct iwl4965_scan_channel; each channel may select different ssids from |
2141 | * among the 4 entries. SSID IEs get transmitted in reverse order of entry. | 2141 | * among the 4 entries. SSID IEs get transmitted in reverse order of entry. |
2142 | */ | 2142 | */ |
2143 | struct iwl4965_ssid_ie { | 2143 | struct iwl_ssid_ie { |
2144 | u8 id; | 2144 | u8 id; |
2145 | u8 len; | 2145 | u8 len; |
2146 | u8 ssid[32]; | 2146 | u8 ssid[32]; |
@@ -2201,9 +2201,9 @@ struct iwl4965_ssid_ie { | |||
2201 | * Driver must use separate scan commands for 2.4 vs. 5 GHz bands. | 2201 | * Driver must use separate scan commands for 2.4 vs. 5 GHz bands. |
2202 | * | 2202 | * |
2203 | * To avoid uCode errors, see timing restrictions described under | 2203 | * To avoid uCode errors, see timing restrictions described under |
2204 | * struct iwl4965_scan_channel. | 2204 | * struct iwl_scan_channel. |
2205 | */ | 2205 | */ |
2206 | struct iwl4965_scan_cmd { | 2206 | struct iwl_scan_cmd { |
2207 | __le16 len; | 2207 | __le16 len; |
2208 | u8 reserved0; | 2208 | u8 reserved0; |
2209 | u8 channel_count; /* # channels in channel list */ | 2209 | u8 channel_count; /* # channels in channel list */ |
@@ -2227,7 +2227,7 @@ struct iwl4965_scan_cmd { | |||
2227 | struct iwl_tx_cmd tx_cmd; | 2227 | struct iwl_tx_cmd tx_cmd; |
2228 | 2228 | ||
2229 | /* For directed active scans (set to all-0s otherwise) */ | 2229 | /* For directed active scans (set to all-0s otherwise) */ |
2230 | struct iwl4965_ssid_ie direct_scan[PROBE_OPTION_MAX]; | 2230 | struct iwl_ssid_ie direct_scan[PROBE_OPTION_MAX]; |
2231 | 2231 | ||
2232 | /* | 2232 | /* |
2233 | * Probe request frame, followed by channel list. | 2233 | * Probe request frame, followed by channel list. |
@@ -2255,14 +2255,14 @@ struct iwl4965_scan_cmd { | |||
2255 | /* | 2255 | /* |
2256 | * REPLY_SCAN_CMD = 0x80 (response) | 2256 | * REPLY_SCAN_CMD = 0x80 (response) |
2257 | */ | 2257 | */ |
2258 | struct iwl4965_scanreq_notification { | 2258 | struct iwl_scanreq_notification { |
2259 | __le32 status; /* 1: okay, 2: cannot fulfill request */ | 2259 | __le32 status; /* 1: okay, 2: cannot fulfill request */ |
2260 | } __attribute__ ((packed)); | 2260 | } __attribute__ ((packed)); |
2261 | 2261 | ||
2262 | /* | 2262 | /* |
2263 | * SCAN_START_NOTIFICATION = 0x82 (notification only, not a command) | 2263 | * SCAN_START_NOTIFICATION = 0x82 (notification only, not a command) |
2264 | */ | 2264 | */ |
2265 | struct iwl4965_scanstart_notification { | 2265 | struct iwl_scanstart_notification { |
2266 | __le32 tsf_low; | 2266 | __le32 tsf_low; |
2267 | __le32 tsf_high; | 2267 | __le32 tsf_high; |
2268 | __le32 beacon_timer; | 2268 | __le32 beacon_timer; |
@@ -2279,7 +2279,7 @@ struct iwl4965_scanstart_notification { | |||
2279 | /* | 2279 | /* |
2280 | * SCAN_RESULTS_NOTIFICATION = 0x83 (notification only, not a command) | 2280 | * SCAN_RESULTS_NOTIFICATION = 0x83 (notification only, not a command) |
2281 | */ | 2281 | */ |
2282 | struct iwl4965_scanresults_notification { | 2282 | struct iwl_scanresults_notification { |
2283 | u8 channel; | 2283 | u8 channel; |
2284 | u8 band; | 2284 | u8 band; |
2285 | u8 reserved[2]; | 2285 | u8 reserved[2]; |
@@ -2291,7 +2291,7 @@ struct iwl4965_scanresults_notification { | |||
2291 | /* | 2291 | /* |
2292 | * SCAN_COMPLETE_NOTIFICATION = 0x84 (notification only, not a command) | 2292 | * SCAN_COMPLETE_NOTIFICATION = 0x84 (notification only, not a command) |
2293 | */ | 2293 | */ |
2294 | struct iwl4965_scancomplete_notification { | 2294 | struct iwl_scancomplete_notification { |
2295 | u8 scanned_channels; | 2295 | u8 scanned_channels; |
2296 | u8 status; | 2296 | u8 status; |
2297 | u8 reserved; | 2297 | u8 reserved; |