• M
    rtlwifi: Fix endian error in extracting packet type · 0c5d63f0
    Mark Cave-Ayland 提交于
    All of the rtlwifi drivers have an error in the routine that tests if
    the data is "special". If it is, the subsequant transmission will be
    at the lowest rate to enhance reliability. The 16-bit quantity is
    big-endian, but was being extracted in native CPU mode. One of the
    effects of this bug is to inhibit association under some conditions
    as the TX rate is too high.
    
    Based on suggestions by Joe Perches, the entire routine is rewritten.
    
    One of the local headers contained duplicates of some of the ETH_P_XXX
    definitions. These are deleted.
    Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
    Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
    Cc: Stable <stable@vger.kernel.org> [2.6.38+]
    Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
    0c5d63f0
base.c 52.0 KB