Go back –> iwl3945 kerneldoc

struct iwl3945_cmd_header -

struct iwl3945_cmd_header {
};

Members

Description

This header format appears in the beginning of each command sent from the driver, and each response/notification received from uCode.


struct iwl3945_tx_power -

struct iwl3945_tx_power {
};

Members

Description

Used in REPLY_TX_PWR_TABLE_CMD, REPLY_SCAN_CMD, REPLY_CHANNEL_SWITCH

Each entry contains two values

1) DSP gain (or sometimes called DSP attenuation). This is a fine-grained linear value that multiplies the output of the digital signal processor, before being sent to the analog radio. 2) Radio gain. This sets the analog gain of the radio Tx path. It is a coarser setting, and behaves in a logarithmic (dB) fashion.

Driver obtains values from struct iwl3945_tx_power power_gain_table[][].


struct iwl3945_power_per_rate -

struct iwl3945_power_per_rate {
};

Members

Description

Used in REPLY_TX_PWR_TABLE_CMD, REPLY_CHANNEL_SWITCH


struct iwl3945_ac_qos - - QOS timing params for REPLY_QOS_PARAM

struct iwl3945_ac_qos {
    __le16 cw_min;
    __le16 cw_max;
    u8 aifsn;
    __le16 edca_txop;
};

Members

cw_min
Contention window, start value in numbers of slots. Should be a power-of-2, minus 1. Device's default is 0x0f.
cw_max
Contention window, max value in numbers of slots. Should be a power-of-2, minus 1. Device's default is 0x3f.
aifsn
Number of slots in Arbitration Interframe Space (before performing random backoff timing prior to Tx). Device default 1.
edca_txop
Length of Tx opportunity, in uSecs. Device default is 0.

Description

Device will automatically increase contention window by (2*CW) + 1 for each transmission retry. Device uses cw_max as a bit mask, ANDed with new CW value, to cap the CW value.

Description

Device will automatically increase contention window by (2*CW) + 1 for each transmission retry. Device uses cw_max as a bit mask, ANDed with new CW value, to cap the CW value.

struct sta_id_modify -

struct sta_id_modify {
    u8 sta_id;
    u8 modify_mask;
};

Members

sta_id
index of station in uCode's station table
modify_mask
STA_MODIFY_*, 1: modify, 0: don't change

Description

Driver selects unused table index when adding new station, or the index to a pre-existing station entry when modifying that station. Some indexes have special purposes (IWL_AP_ID, index 0, is for AP).

modify_mask flags select which parameters to modify vs. leave alone.

Description

Driver selects unused table index when adding new station, or the index to a pre-existing station entry when modifying that station. Some indexes have special purposes (IWL_AP_ID, index 0, is for AP).

modify_mask flags select which parameters to modify vs. leave alone.


struct iwl3945_rate_scaling_cmd - Rate Scaling Command \\\amp; Response

struct iwl3945_rate_scaling_cmd {
};

Members

Description

REPLY_RATE_SCALE = 0x47 (command, has simple generic response)

NOTE

The table of rates passed to the uCode via the RATE_SCALE command sets up the corresponding order of rates used for all related commands, including rate masks, etc.

For example, if you set 9MB (PLCP 0x0f) as the first rate in the rate table, the bit mask for that rate when passed through ofdm_basic_rates on the REPLY_RXON command would be bit 0 (1 << 0)


struct iwl3945_scan_channel - entry in REPLY_SCAN_CMD channel table

struct iwl3945_scan_channel {
};

Members

Description

One for each channel in the scan list.

Each channel can independently select

1) SSID for directed active scans 2) Txpower setting (for rate specified within Tx command) 3) How long to stay on-channel (behavior may be modified by quiet_time, quiet_plcp_th, good_CRC_th)

To avoid uCode errors, make sure the following are true (see comments under struct iwl3945_scan_cmd about max_out_time and quiet_time): 1) If using passive_dwell (i.e. passive_dwell != 0): active_dwell <= passive_dwell (< max_out_time if max_out_time != 0) 2) quiet_time <= active_dwell 3) If restricting off-channel time (i.e. max_out_time !=0): passive_dwell < max_out_time active_dwell < max_out_time


struct iwl3945_ssid_ie - directed scan network information element

struct iwl3945_ssid_ie {
};

Members

Description

Up to 4 of these may appear in REPLY_SCAN_CMD, selected by "type" field in struct iwl3945_scan_channel; each channel may select different ssids from among the 4 entries. SSID IEs get transmitted in reverse order of entry.