qlcnic: fix beaconing test for 82xx adapter
o Commit 319ecf121e
("qlcnic: 83xx sysfs routines") introduced regression
for beaconing test while refactoring 82xx code. This patch is to
revert code to fix beaconing test for 82xx adapter.
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
97599dc792
commit
361cd29cf9
@ -200,10 +200,10 @@ beacon_err:
|
||||
}
|
||||
|
||||
err = qlcnic_config_led(adapter, b_state, b_rate);
|
||||
if (!err)
|
||||
if (!err) {
|
||||
err = len;
|
||||
else
|
||||
ahw->beacon_state = b_state;
|
||||
}
|
||||
|
||||
if (test_and_clear_bit(__QLCNIC_DIAG_RES_ALLOC, &adapter->state))
|
||||
qlcnic_diag_free_res(adapter->netdev, max_sds_rings);
|
||||
|
Loading…
Reference in New Issue
Block a user