Commit 361cd29c authored by Himanshu Madhani's avatar Himanshu Madhani Committed by David S. Miller

qlcnic: fix beaconing test for 82xx adapter

o Commit 319ecf12
  ("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: default avatarHimanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: default avatarShahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 97599dc7
...@@ -200,10 +200,10 @@ static ssize_t qlcnic_store_beacon(struct device *dev, ...@@ -200,10 +200,10 @@ static ssize_t qlcnic_store_beacon(struct device *dev,
} }
err = qlcnic_config_led(adapter, b_state, b_rate); err = qlcnic_config_led(adapter, b_state, b_rate);
if (!err) if (!err) {
err = len; err = len;
else
ahw->beacon_state = b_state; ahw->beacon_state = b_state;
}
if (test_and_clear_bit(__QLCNIC_DIAG_RES_ALLOC, &adapter->state)) if (test_and_clear_bit(__QLCNIC_DIAG_RES_ALLOC, &adapter->state))
qlcnic_diag_free_res(adapter->netdev, max_sds_rings); qlcnic_diag_free_res(adapter->netdev, max_sds_rings);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment