Lines Matching +full:gain +full:- +full:scaling +full:- +full:n
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.
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
212 * 1) DSP gain (or sometimes called DSP attenuation). This is a fine-grained
215 * 2) Radio gain. This sets the analog gain of the radio Tx path.
221 u8 tx_gain; /* gain for analog radio */
222 u8 dsp_atten; /* gain for DSP */
245 * High-throughput (HT) rate format for bits 7:0 (bit 8 must be "1"):
246 * 2-0: 0) 6 Mbps
255 * 4-3: 0) Single stream (SISO)
262 * 3-0: 0xD) 6 Mbps
272 * 6-0: 10) 1 Mbps
334 * Driver provides radio gain and DSP attenuation settings to device in pairs,
402 * 3) Tx gain compensation to balance 4965's 2 Tx chains for MIMO operation,
424 __le32 tx_atten[5][2]; /* signed MIMO gain comp, 5 freq groups,
442 * a 256-entry history of uCode execution within a circular buffer.
453 * __le32 event_id; range 0 - 1500
455 * __le32 data; event_id-specific data value
471 * __le32 data1; error-specific data
472 * __le32 data2; error-specific data
582 /* rx response to host with 8-byte TSF
620 /* accept multi-cast */
622 /* don't decrypt uni-cast frames */
624 /* don't decrypt multi-cast frames */
638 * RXON_FILTER_ASSOC_MSK to 0. This will clear station-dependent
781 __le32 status; /* 0 - OK, 1 - fail */
786 * Quality-of-Service (QOS) Commands & Responses:
791 * struct il_ac_qos -- QOS timing params for C_QOS_PARAM
795 * Should be a power-of-2, minus 1. Device's default is 0x0f.
797 * Should be a power-of-2, minus 1. Device's default is 0x3f.
879 /* wep key in STA: 5-bytes (0) or 13-bytes (1) */
900 __le16 tkip_rx_ttak[5]; /* 10-byte unicast TKIP TTAK */
903 u8 key[16]; /* 16-byte unicast decryption key */
913 * or the idx to a pre-existing station entry when modifying that station.
929 * The device contains an internal table of per-station information,
936 * a new entry, or modifying a pre-existing one.
968 /* TID for which to add block-ack support.
972 /* TID for which to remove block-ack support.
976 /* Starting Sequence Number for added block-ack support.
996 /* TID for which to add block-ack support.
1000 /* TID for which to remove block-ack support.
1004 /* Starting Sequence Number for added block-ack support.
1010 * it is asleep -- used to synchronise PS-poll and u-APSD
1034 /* TID for which to add block-ack support.
1038 /* TID for which to remove block-ack support.
1042 /* Starting Sequence Number for added block-ack support.
1048 * it is asleep -- used to synchronise PS-poll and u-APSD
1210 /* Fixed (non-configurable) rx data from phy */
1226 * Used only for legacy (non 11n) frames.
1234 __le32 beacon_time_stamp; /* beacon at on-air rise */
1239 __le16 byte_count; /* frame's byte-count */
1261 * handle reception of block-acks; uCode updates the host driver via
1276 * 1: Use Request-To-Send protocol before this frame.
1282 * 1: Transmit Clear-To-Send to self before this frame.
1283 * Driver should set this for AUTH/DEAUTH/ASSOC-REQ/REASSOC mgmnt frames.
1301 /* 1: Expect immediate block-ack.
1302 * Set when Txing a block-ack request frame. Also set TX_CMD_FLG_ACK_MSK. */
1306 * 1: Frame requires full Tx-Op protection.
1319 * Set this for management frames, non-QOS data frames, non-unicast frames,
1323 /* 1: This frame is non-last MPDU; more fragments are coming.
1341 * 0 - no CCMP encryption; 1 - CCMP encryption */
1344 /* HCCA-AP - disable duration overwriting. */
1369 * + 8-byte MIC (not used for CCM/WEP)
1370 * NOTE: Does not include Tx command bytes, post-MAC pad bytes,
1372 * Range: 14-2342 bytes.
1378 * Used for fragmentation and bursting, but not 11n aggregation.
1411 * Duration of EDCA burst Tx Opportunity, in 32-usec units.
1440 * Used for managing Tx retries when expecting block-acks.
1457 * + 8-byte MIC (not used for CCM/WEP)
1458 * NOTE: Does not include Tx command bytes, post-MAC pad bytes,
1460 * Range: 14-2342 bytes.
1466 * Used for fragmentation and bursting, but not 11n aggregation.
1490 * rate (via non-0 value) for special frames (e.g. management), while
1491 * still supporting rate scaling for all frames.
1517 * Duration of EDCA burst Tx Opportunity, in 32-usec units.
1677 * 2 or more frames that used block-acknowledge. All frames were
1678 * transmitted at same rate. Rate scaling may have been used if first
1681 * Note that, for aggregation, ACK (block-ack) status is not delivered here;
1682 * block-ack has not been received by the time the 4965 device records
1699 /* For non-agg: Rate at which frame was successful.
1703 /* For non-agg: RTS + CTS + frame tx attempts time + ACK.
1704 * For agg: RTS + CTS + aggregation tx time + block-ack time. */
1712 * For non-agg: frame status TX_STATUS_*
1716 * 11- 0: AGG_TX_STATE_* status code
1717 * 15-12: Retry count for 1st frame in aggregation (retries
1720 * scaling is used, retry count indicates the rate
1722 * 31-16: Sequence # for this frame's Tx cmd (not SSN!)
1733 * Reports Block-Acknowledge from recipient station
1740 /* Index of recipient (BA-sending) station in uCode's station table */
1770 * struct il3945_rate_scaling_cmd - Rate Scaling Command & Response
1829 * EDCA QOS access categories (as implemented by tx fifos 0-3),
1898 * The rate scaling procedures described below work well. Of course, other
1905 * scaling algorithm described below, the Linux driver uses the following
1910 * 1) If using High-throughput (HT) (SISO or MIMO) initial rate:
1933 * The rate scaling algorithm for 4965 devices, as implemented in Linux driver,
1945 * (attempted - success), and control the size of the win (attempted).
1952 * up in the rate scaling table in the Link Quality command. The driver must
1954 * which rate-specific history to update, and record only those attempts that
1957 * When using block-ack (aggregation), all frames are transmitted at the same
1958 * rate, since there is no per-attempt acknowledgment from the destination
1960 * rate_n_flags field. After receiving a block-ack, the driver can update
1974 * scaling yet.
2008 * 6) Re-evaluate the rate after each tx frame. If working with block-
2011 * before re-evaluation.
2015 * After working with a modulation mode for a "while" (and doing rate scaling),
2021 * For high-throughput modes (SISO or MIMO), search for new mode after:
2082 * Rate info; when using rate-scaling, Tx command's initial_rate_idx
2094 * bit 0 - 1: BT channel announcement enabled
2096 * bit 1 - 1: priority of BT device enabled
2156 u8 id; /* measurement id -- 0 or 1 */
2175 __le16 status; /* 0 - command will be handled
2176 * 1 - cannot handle (conflicts with another
2190 /* 4-5 reserved */
2223 u8 id; /* measurement id -- 0 or 1 */
2226 u8 state; /* 0 - start, 1 - stop */
2227 __le32 start_time; /* lower 32-bits of TSF */
2228 u8 band; /* 0 - 5.2GHz, 1 - 2.4GHz */
2237 u8 basic_type; /* 0 - bss, 1 - ofdm preamble, 2 -
2241 __le32 stop_time; /* lower 32-bits of TSF */
2252 * struct il_powertable_cmd - Power Table Command
2258 * bit 0 - '0' Driver not allow power management
2262 * bit 1 - '0' Don't send sleep notification
2266 * bit 2 - '0' PM have to walk up every DTIM
2270 * bit 3 - '0' (PCI_CFG_LINK_CTRL & 0x1)
2274 * bit 4 - '1' Put radio to sleep when receiving frame for others
2277 * bit 31/30- '00' use both mac/xtal sleeps
2282 * NOTE: if sleep_interval[SLEEP_INTRVL_TBL_SIZE-1] > DTIM period then
2366 * struct il_scan_channel - entry in C_SCAN channel table
2372 * 3) How long to stay on-channel (behavior may be modified by quiet_time,
2380 * 3) If restricting off-channel time (i.e. max_out_time !=0):
2395 __le16 active_dwell; /* in 1024-uSec TU (time units), typ 5-50 */
2396 __le16 passive_dwell; /* in 1024-uSec TU (time units), typ 20-500 */
2400 #define IL39_SCAN_PROBE_MASK(n) ((BIT(n) | (BIT(n) - BIT(1)))) argument
2412 u8 tx_gain; /* gain for analog radio */
2413 u8 dsp_atten; /* gain for DSP */
2414 __le16 active_dwell; /* in 1024-uSec TU (time units), typ 5-50 */
2415 __le16 passive_dwell; /* in 1024-uSec TU (time units), typ 20-500 */
2419 #define IL_SCAN_PROBE_MASK(n) cpu_to_le32((BIT(n) | (BIT(n) - BIT(1)))) argument
2422 * struct il_ssid_ie - directed scan network information element
2454 * max_out_time is the max time off-channel (in usec), and suspend_time
2466 * 3) Sends NULL packet, with power-save (PS) bit set to 1,
2467 * to tell AP that we're going off-channel
2471 * 7) Repeats 4-6 until it no longer has time to scan the next channel
2476 * 11) Repeats entire process 2-10 until list is complete
2504 __le16 good_CRC_th; /* passive -> active promotion threshold */
2516 /* For active scans (set to all-0s for passive scans).
2517 * Does not include payload. Must specify Tx rate; no rate scaling. */
2520 /* For directed active scans (set to all-0s otherwise) */
2548 __le16 good_CRC_th; /* passive -> active promotion threshold */
2560 /* For active scans (set to all-0s for passive scans).
2561 * Does not include payload. Must specify Tx rate; no rate scaling. */
2564 /* For directed active scans (set to all-0s otherwise) */
2871 * struct stats_tx_power - current tx power
2937 * count the number of times we have to re-tune
3046 * 2) Receiver gain balance (optimize MIMO, and detect disconnected antennas)
3069 * other non-associated-network source. Pertinent stats include:
3087 * Signal locks abandoned early (before phy-level header).
3090 * Signal locks abandoned late (during phy-level header).
3095 * after counting up to 2^32 - 1. Driver must differentiate vs.
3120 * 1). 20-beacon history of maximum background noise, indicated by
3125 * 2). 10-beacon history of strongest signal level, as indicated
3164 * down to min 0. Otherwise (if gain has been significantly reduced),
3175 * "silence reference" (prev - current) is 2 or more,
3246 * in from scanning, or any other non-network source).
3269 * to antennas, see above) for gain, by comparing the average signal levels
3277 * will be the reference, with 0 gain adjustment. Attenuate other channels by
3280 * (accum_noise[i] - accum_noise[reference]) / 30
3284 * driver should limit the difference results to a range of 0-3 (0-4.5 dB),
3285 * and set bit 2 to indicate "reduce gain". The value for the reference
3289 * 2: (1) reduce gain, (0) increase gain
3290 * 1-0: amount of gain, units of 1.5 dB
3358 * 28-14: Reserved
3359 * 13-00: RX frame size