/* * Copyright (c) 2013 Eugene Krasnikov <k.eugene.e@gmail.com> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
for (i = 0; i < len; i++)
to[i] = cpu_to_be32(from[i]);
}
struct nv_data { int is_valid;
u8 table;
};
/** * struct wcn36xx_vif - holds VIF related fields * * @bss_index: bss_index is initially set to 0xFF. bss_index is received from * HW after first config_bss call and must be used in delete_bss and * enter/exit_bmps.
*/ struct wcn36xx_vif { struct list_head list;
u8 dtim_period; enum ani_ed_type encrypt_type; bool is_joining; bool sta_assoc; struct wcn36xx_hal_mac_ssid ssid; enum wcn36xx_hal_bss_type bss_type;
/* Power management */ enum wcn36xx_power_state pw_state;
u8 bss_index; /* Returned from WCN36XX_HAL_ADD_STA_SELF_RSP */
u8 self_sta_index;
u8 self_dpu_desc_index;
u8 self_ucast_dpu_sign;
/** * struct wcn36xx_sta - holds STA related fields * * @tid: traffic ID that is used during AMPDU and in TX BD. * @sta_index: STA index is returned from HW after config_sta call and is * used in both SMD channel and TX BD. * @dpu_desc_index: DPU descriptor index is returned from HW after config_sta * call and is used in TX BD. * @bss_sta_index: STA index is returned from HW after config_bss call and is * used in both SMD channel and TX BD. See table below when it is used. * @bss_dpu_desc_index: DPU descriptor index is returned from HW after * config_bss call and is used in TX BD. * ______________________________________________ * | | STA | AP | * |______________|_____________|_______________| * | TX BD |bss_sta_index| sta_index | * |______________|_____________|_______________| * |all SMD calls |bss_sta_index| sta_index | * |______________|_____________|_______________| * |smd_delete_sta| sta_index | sta_index | * |______________|_____________|_______________|
*/ struct wcn36xx_sta { struct list_head list; struct wcn36xx_vif *vif;
u16 aid;
u16 tid;
u8 sta_index;
u8 dpu_desc_index;
u8 ucast_dpu_sign;
u8 bss_sta_index;
u8 bss_dpu_desc_index; bool is_data_encrypted; /* Rates */ struct wcn36xx_hal_supported_rates_v1 supported_rates;
spinlock_t ampdu_lock; /* protects next two fields */ enum wcn36xx_ampdu_state ampdu_state[16]; int non_agg_frame_ct;
};
/* * smd_buf must be protected with smd_mutex to garantee * that all messages are sent one after another
*/
u8 *hal_buf;
size_t hal_rsp_len; struct mutex hal_mutex; struct completion hal_rsp_compl; struct workqueue_struct *hal_ind_wq; struct work_struct hal_ind_work;
spinlock_t hal_ind_lock; struct list_head hal_ind_queue;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.