scsi: qla2xxx: Use BIT_6 to acquire FAWWPN from switch
authorSawan Chandak <sawan.chandak@cavium.com>
Wed, 23 Aug 2017 22:05:02 +0000 (15:05 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 02:29:21 +0000 (22:29 -0400)
commitfcc5b5cd726c0779cd689362aea82cc9d5a61346
treeae6c7851c0eff3163eed53f16e93d5c99709b3db
parenta17305954d732ace786095ed6c911782c18529b9
scsi: qla2xxx: Use BIT_6 to acquire FAWWPN from switch

If FA-WWPN feature disabled on the switch side and enabled for the
adapter, then driver would update the port name with switch port name.

This patch fixes issue by checking correct BIT flag to validate.

Fixes: 41dc529a4602 ("qla2xxx: Improve RSCN handling in driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Sawan Chandak <sawan.chandak@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_mbx.c