be2net: Use V1 query link status command for lancer
authorPadmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Wed, 16 Nov 2011 02:03:45 +0000 (02:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2011 23:07:10 +0000 (18:07 -0500)
Use V1 version of query link status command for Lancer.

Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c

index 1522065926b8a5f1314155f7a42f2f3c48b30ae4..64f0c1aa1b09215cce3d8cfefa75263af0fb312d 100644 (file)
@@ -1246,6 +1246,9 @@ int be_cmd_link_status_query(struct be_adapter *adapter, u8 *mac_speed,
        }
        req = embedded_payload(wrb);
 
+       if (lancer_chip(adapter))
+               req->hdr.version = 1;
+
        be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
                OPCODE_COMMON_NTWK_LINK_STATUS_QUERY, sizeof(*req), wrb, NULL);