Lines Matching +full:rates +full:- +full:cck
8 * Copyright(c) 2005 - 2011 Intel Corporation. All rights reserved.
29 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
33 * Copyright(c) 2005 - 2011 Intel Corporation. All rights reserved.
77 /* Tx rates */
92 /* Multi-Station support */
138 /* RF-KILL commands and notifications */
184 * when sending the response to each driver-originated command, so
196 * 0:7 tfd idx - position within TX queue
199 * 14 huge - driver sets this to indicate command is in the
201 * 15 unsolicited RX or uCode-originated notification
215 * 1) DSP gain (or sometimes called DSP attenuation). This is a fine-grained
248 * High-throughput (HT) rate format for bits 7:0 (bit 8 must be "1"):
249 * 2-0: 0) 6 Mbps
258 * 4-3: 0) Single stream (SISO)
265 * 3-0: 0xD) 6 Mbps
274 * Legacy CCK rate format for bits 7:0 (bit 8 must be "0", bit 9 "1"):
275 * 6-0: 10) 1 Mbps
291 /* Bit 9: (1) CCK, (0) OFDM. HT (bit 8) must be "0" for this bit to be valid */
341 * For SISO bit rates, both values in a pair should be identical.
342 * For MIMO rates, one value may be different from the other,
445 * a 256-entry history of uCode execution within a circular buffer.
456 * __le32 event_id; range 0 - 1500
458 * __le32 data; event_id-specific data value
474 * __le32 data1; error-specific data
475 * __le32 data2; error-specific data
574 /* cck short slot & preamble */
585 /* rx response to host with 8-byte TSF
623 /* accept multi-cast */
625 /* don't decrypt uni-cast frames */
627 /* don't decrypt multi-cast frames */
641 * RXON_FILTER_ASSOC_MSK to 0. This will clear station-dependent
784 __le32 status; /* 0 - OK, 1 - fail */
789 * Quality-of-Service (QOS) Commands & Responses:
794 * struct il_ac_qos -- QOS timing params for C_QOS_PARAM
798 * Should be a power-of-2, minus 1. Device's default is 0x0f.
800 * Should be a power-of-2, minus 1. Device's default is 0x3f.
882 /* wep key in STA: 5-bytes (0) or 13-bytes (1) */
903 __le16 tkip_rx_ttak[5]; /* 10-byte unicast TKIP TTAK */
906 u8 key[16]; /* 16-byte unicast decryption key */
916 * or the idx to a pre-existing station entry when modifying that station.
932 * The device contains an internal table of per-station information,
933 * with info on security keys, aggregation parameters, and Tx rates for
939 * a new entry, or modifying a pre-existing one.
971 /* TID for which to add block-ack support.
975 /* TID for which to remove block-ack support.
979 /* Starting Sequence Number for added block-ack support.
999 /* TID for which to add block-ack support.
1003 /* TID for which to remove block-ack support.
1007 /* Starting Sequence Number for added block-ack support.
1013 * it is asleep -- used to synchronise PS-poll and u-APSD
1037 /* TID for which to add block-ack support.
1041 /* TID for which to remove block-ack support.
1045 /* Starting Sequence Number for added block-ack support.
1051 * it is asleep -- used to synchronise PS-poll and u-APSD
1203 /* Fixed (non-configurable) rx data from phy */
1227 __le32 beacon_time_stamp; /* beacon at on-air rise */
1232 __le16 byte_count; /* frame's byte-count */
1254 * handle reception of block-acks; uCode updates the host driver via
1258 * This includes trying lower data rates than the one requested in the Tx
1262 * Driver sets up transmit power for various rates via C_TX_PWR_TBL.
1269 * 1: Use Request-To-Send protocol before this frame.
1275 * 1: Transmit Clear-To-Send to self before this frame.
1276 * Driver should set this for AUTH/DEAUTH/ASSOC-REQ/REASSOC mgmnt frames.
1294 /* 1: Expect immediate block-ack.
1295 * Set when Txing a block-ack request frame. Also set TX_CMD_FLG_ACK_MSK. */
1299 * 1: Frame requires full Tx-Op protection.
1312 * Set this for management frames, non-QOS data frames, non-unicast frames,
1316 /* 1: This frame is non-last MPDU; more fragments are coming.
1334 * 0 - no CCMP encryption; 1 - CCMP encryption */
1337 /* HCCA-AP - disable duration overwriting. */
1360 * + 8-byte MIC (not used for CCM/WEP)
1361 * NOTE: Does not include Tx command bytes, post-MAC pad bytes,
1363 * Range: 14-2342 bytes.
1402 * Duration of EDCA burst Tx Opportunity, in 32-usec units.
1431 * Used for managing Tx retries when expecting block-acks.
1446 * + 8-byte MIC (not used for CCM/WEP)
1447 * NOTE: Does not include Tx command bytes, post-MAC pad bytes,
1449 * Range: 14-2342 bytes.
1479 * rate (via non-0 value) for special frames (e.g. management), while
1506 * Duration of EDCA burst Tx Opportunity, in 32-usec units.
1660 * a single frame. Multiple attempts, at various bit rates, may have
1664 * 2 or more frames that used block-acknowledge. All frames were
1668 * Note that, for aggregation, ACK (block-ack) status is not delivered here;
1669 * block-ack has not been received by the time the 4965 device records
1686 /* For non-agg: Rate at which frame was successful.
1690 /* For non-agg: RTS + CTS + frame tx attempts time + ACK.
1691 * For agg: RTS + CTS + aggregation tx time + block-ack time. */
1699 * For non-agg: frame status TX_STATUS_*
1703 * 11- 0: AGG_TX_STATE_* status code
1704 * 15-12: Retry count for 1st frame in aggregation (retries
1709 * 31-16: Sequence # for this frame's Tx cmd (not SSN!)
1720 * Reports Block-Acknowledge from recipient station
1727 /* Index of recipient (BA-sending) station in uCode's station table */
1757 * struct il3945_rate_scaling_cmd - Rate Scaling Command & Response
1761 * NOTE: The table of rates passed to the uCode via the
1763 * rates used for all related commands, including rate
1815 * If driver needs to use different initial rates for different
1816 * EDCA QOS access categories (as implemented by tx fifos 0-3),
1878 * Tx rates and modulation modes (e.g. legacy/SISO/MIMO) for retrying Tx when
1897 * 1) If using High-throughput (HT) (SISO or MIMO) initial rate:
1904 * d) After trying 2 HT rates, switch to legacy mode (no HT40 channel,
1932 * (attempted - success), and control the size of the win (attempted).
1941 * which rate-specific history to update, and record only those attempts that
1944 * When using block-ack (aggregation), all frames are transmitted at the same
1945 * rate, since there is no per-attempt acknowledgment from the destination
1947 * rate_n_flags field. After receiving a block-ack, the driver can update
1963 * 2) Find available rates adjacent to current initial rate. Available means:
1968 * 3) Gather measured throughputs for adjacent rates. These might not have
1986 * b) both adjacent rates' throughputs are unmeasured (try it!) ||
1995 * 6) Re-evaluate the rate after each tx frame. If working with block-
1998 * before re-evaluation.
2008 * For high-throughput modes (SISO or MIMO), search for new mode after:
2032 * Only G band has support for CCK rates:
2069 * Rate info; when using rate-scaling, Tx command's initial_rate_idx
2081 * bit 0 - 1: BT channel announcement enabled
2083 * bit 1 - 1: priority of BT device enabled
2143 u8 id; /* measurement id -- 0 or 1 */
2162 __le16 status; /* 0 - command will be handled
2163 * 1 - cannot handle (conflicts with another
2177 /* 4-5 reserved */
2187 __le32 cck[NUM_ELEMENTS_IN_HISTOGRAM]; /* in 1usec counts */ member
2193 __le32 cck; member
2210 u8 id; /* measurement id -- 0 or 1 */
2213 u8 state; /* 0 - start, 1 - stop */
2214 __le32 start_time; /* lower 32-bits of TSF */
2215 u8 band; /* 0 - 5.2GHz, 1 - 2.4GHz */
2224 u8 basic_type; /* 0 - bss, 1 - ofdm preamble, 2 -
2228 __le32 stop_time; /* lower 32-bits of TSF */
2239 * struct il_powertable_cmd - Power Table Command
2245 * bit 0 - '0' Driver not allow power management
2249 * bit 1 - '0' Don't send sleep notification
2253 * bit 2 - '0' PM have to walk up every DTIM
2257 * bit 3 - '0' (PCI_CFG_LINK_CTRL & 0x1)
2261 * bit 4 - '1' Put radio to sleep when receiving frame for others
2264 * bit 31/30- '00' use both mac/xtal sleeps
2269 * NOTE: if sleep_interval[SLEEP_INTRVL_TBL_SIZE-1] > DTIM period then
2353 * struct il_scan_channel - entry in C_SCAN channel table
2359 * 3) How long to stay on-channel (behavior may be modified by quiet_time,
2367 * 3) If restricting off-channel time (i.e. max_out_time !=0):
2382 __le16 active_dwell; /* in 1024-uSec TU (time units), typ 5-50 */
2383 __le16 passive_dwell; /* in 1024-uSec TU (time units), typ 20-500 */
2387 #define IL39_SCAN_PROBE_MASK(n) ((BIT(n) | (BIT(n) - BIT(1))))
2401 __le16 active_dwell; /* in 1024-uSec TU (time units), typ 5-50 */
2402 __le16 passive_dwell; /* in 1024-uSec TU (time units), typ 20-500 */
2406 #define IL_SCAN_PROBE_MASK(n) cpu_to_le32((BIT(n) | (BIT(n) - BIT(1))))
2409 * struct il_ssid_ie - directed scan network information element
2441 * max_out_time is the max time off-channel (in usec), and suspend_time
2453 * 3) Sends NULL packet, with power-save (PS) bit set to 1,
2454 * to tell AP that we're going off-channel
2458 * 7) Repeats 4-6 until it no longer has time to scan the next channel
2463 * 11) Repeats entire process 2-10 until list is complete
2491 __le16 good_CRC_th; /* passive -> active promotion threshold */
2503 /* For active scans (set to all-0s for passive scans).
2507 /* For directed active scans (set to all-0s otherwise) */
2535 __le16 good_CRC_th; /* passive -> active promotion threshold */
2547 /* For active scans (set to all-0s for passive scans).
2551 /* For directed active scans (set to all-0s otherwise) */
2739 struct iwl39_stats_rx_phy cck; member
2841 * and CCK) counter */
2852 struct stats_rx_phy cck; member
2858 * struct stats_tx_power - current tx power
2924 * count the number of times we have to re-tune
3056 * other non-associated-network source. Pertinent stats include:
3071 * From "cck" and "ofdm" stats (struct stats_rx_phy), separately:
3074 * Signal locks abandoned early (before phy-level header).
3077 * Signal locks abandoned late (during phy-level header).
3082 * after counting up to 2^32 - 1. Driver must differentiate vs.
3105 * For CCK sensitivity, keep track of the following:
3107 * 1). 20-beacon history of maximum background noise, indicated by
3112 * 2). 10-beacon history of strongest signal level, as indicated
3121 * "Max cck energy" is the maximum (higher value means lower energy!)
3129 * Then, adjust the following CCK table entries in struct il_sensitivity_cmd
3130 * (notice that the start points for CCK are at maximum sensitivity):
3137 * If actual rate of CCK false alarms (+ plcp_errors) is too high
3156 * If actual rate of CCK false alarms (+ plcp_errors) is too low
3162 * "silence reference" (prev - current) is 2 or more,
3176 * If actual rate of CCK false alarms (+ plcp_errors) is within good range
3181 * 2) If previous beacon had too many CCK false alarms (+ plcp_errors),
3185 * For all cases (too few, too many, good range), make sure that the CCK
3187 * detection over the past 10 beacon periods, the "Max cck energy".
3189 * in HD_MIN_ENERGY_CCK_DET_IDX is at or *above* "Max cck energy".
3233 * in from scanning, or any other non-network source).
3267 * (accum_noise[i] - accum_noise[reference]) / 30
3271 * driver should limit the difference results to a range of 0-3 (0-4.5 dB),
3277 * 1-0: amount of gain, units of 1.5 dB
3345 * 28-14: Reserved
3346 * 13-00: RX frame size