Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -200,10 +200,10 @@ static ssize_t qlcnic_store_beacon(struct device *dev,
	}

	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);