]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
bnx2x: Missing mask when calculating flow control
authorEilon Greenstein <eilong@broadcom.com>
Thu, 15 Jan 2009 05:24:57 +0000 (21:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Jan 2009 16:28:11 +0000 (08:28 -0800)
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x_main.c

index 75b2624cd60bcdc6c501da428a8a9389051fd2b0..9b1555820f520f9932b93245004734e201abb1e2 100644 (file)
@@ -1899,7 +1899,8 @@ static int bnx2x_set_spio(struct bnx2x *bp, int spio_num, u32 mode)
 
 static void bnx2x_calc_fc_adv(struct bnx2x *bp)
 {
-       switch (bp->link_vars.ieee_fc) {
+       switch (bp->link_vars.ieee_fc &
+               MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK) {
        case MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_NONE:
                bp->port.advertising &= ~(ADVERTISED_Asym_Pause |
                                          ADVERTISED_Pause);