Skip to content

Commit

Permalink
Make sure bandwith is initialized.
Browse files Browse the repository at this point in the history
Signed-off-by: David Lin <dlin@marvell.com>
  • Loading branch information
yuhhaurlin committed Nov 2, 2017
1 parent e119077 commit cbb631e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hif/pcie/dev.h
Expand Up @@ -755,13 +755,15 @@ static inline void pcie_rx_prepare_status(struct mwl_priv *priv, u16 format,
switch (format) {
case RX_RATE_INFO_FORMAT_11N:
status->encoding = RX_ENC_HT;
status->bw = RATE_INFO_BW_20;
if (bw == RX_RATE_INFO_HT40)
status->bw = RATE_INFO_BW_40;
if (gi == RX_RATE_INFO_SHORT_INTERVAL)
status->enc_flags |= RX_ENC_FLAG_SHORT_GI;
break;
case RX_RATE_INFO_FORMAT_11AC:
status->encoding = RX_ENC_VHT;
status->bw = RATE_INFO_BW_20;
if (bw == RX_RATE_INFO_HT40)
status->bw = RATE_INFO_BW_40;
if (bw == RX_RATE_INFO_HT80)
Expand Down

2 comments on commit cbb631e

@p3x-robot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey, what does it mean, this update?

@jbsky
Copy link
Contributor

@jbsky jbsky commented on cbb631e Nov 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iwconfig finally displays information about the cards and their capabilities since this update.

Thank you

Please sign in to comment.