mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
staging: wfx: better naming for hif_mib_set_association_mode->greenfield
Current name "mixed_or_greenfield_type" does not allow to know if "true" means "mixed" of "greenfield". It is possible to use a better name and drop "enum hif_tx_mode". Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com> Link: https://lore.kernel.org/r/20191217161318.31402-29-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ad636ec4f0
commit
07c11c18eb
|
|
@ -395,11 +395,6 @@ struct hif_mib_non_erp_protection {
|
|||
u8 reserved2[3];
|
||||
} __packed;
|
||||
|
||||
enum hif_tx_mode {
|
||||
HIF_TX_MODE_MIXED = 0x0,
|
||||
HIF_TX_MODE_GREENFIELD = 0x1
|
||||
};
|
||||
|
||||
enum hif_tmplt {
|
||||
HIF_TMPLT_PRBREQ = 0x0,
|
||||
HIF_TMPLT_BCN = 0x1,
|
||||
|
|
@ -474,7 +469,8 @@ struct hif_mib_set_association_mode {
|
|||
u8 reserved1:4;
|
||||
u8 short_preamble:1;
|
||||
u8 reserved2:7;
|
||||
u8 mixed_or_greenfield_type;
|
||||
u8 greenfield:1;
|
||||
u8 reserved3:7;
|
||||
u8 mpdu_start_spacing;
|
||||
u32 basic_rate_set;
|
||||
} __packed;
|
||||
|
|
|
|||
|
|
@ -996,7 +996,7 @@ static void wfx_join_finalize(struct wfx_vif *wvif,
|
|||
association_mode.spacing = 1;
|
||||
association_mode.short_preamble = info->use_short_preamble;
|
||||
association_mode.basic_rate_set = cpu_to_le32(wfx_rate_mask_to_hw(wvif->wdev, info->basic_rates));
|
||||
association_mode.mixed_or_greenfield_type = wfx_ht_greenfield(&wvif->ht_info);
|
||||
association_mode.greenfield = wfx_ht_greenfield(&wvif->ht_info);
|
||||
association_mode.mpdu_start_spacing = wfx_ht_ampdu_density(&wvif->ht_info);
|
||||
|
||||
wfx_cqm_bssloss_sm(wvif, 0, 0, 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user