lkml.org 
[lkml]   [2012]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 055/122] mwifiex: correction in mcs index check
    Date
    From: Greg KH <gregkh@linuxfoundation.org>

    3.5-stable review patch. If anyone has any objections, please let me know.

    ------------------

    From: Amitkumar Karwar <akarwar@marvell.com>

    commit fe020120cb863ba918c6d603345342a880272c4d upstream.

    mwifiex driver supports 2x2 chips as well. Hence valid mcs values
    are 0 to 15. The check for mcs index is corrected in this patch.

    For example: if 40MHz is enabled and mcs index is 11, "iw link"
    command would show "tx bitrate: 108.0 MBit/s" without this patch.
    Now it shows "tx bitrate: 108.0 MBit/s MCS 11 40Mhz" with the patch.

    Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
    Signed-off-by: Bing Zhao <bzhao@marvell.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/net/wireless/mwifiex/cfg80211.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    --- a/drivers/net/wireless/mwifiex/cfg80211.c
    +++ b/drivers/net/wireless/mwifiex/cfg80211.c
    @@ -634,9 +634,9 @@ mwifiex_dump_station_info(struct mwifiex

    /*
    * Bit 0 in tx_htinfo indicates that current Tx rate is 11n rate. Valid
    - * MCS index values for us are 0 to 7.
    + * MCS index values for us are 0 to 15.
    */
    - if ((priv->tx_htinfo & BIT(0)) && (priv->tx_rate < 8)) {
    + if ((priv->tx_htinfo & BIT(0)) && (priv->tx_rate < 16)) {
    sinfo->txrate.mcs = priv->tx_rate;
    sinfo->txrate.flags |= RATE_INFO_FLAGS_MCS;
    /* 40MHz rate */



    \
     
     \ /
      Last update: 2012-08-08 01:01    [W:0.026 / U:0.032 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site