mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 12:43:55 +08:00
qlcnic: Fix beacon state return status handling
o Driver was misinterpreting the return status for beacon state query leading to incorrect interpretation of beacon state and logging an error message for successful status. Fixed the driver to properly interpret the return status. Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
24866d15fa
commit
482b3c3634
@ -170,9 +170,9 @@ static int qlcnic_82xx_store_beacon(struct qlcnic_adapter *adapter,
|
|||||||
|
|
||||||
if (ahw->extra_capability[0] & QLCNIC_FW_CAPABILITY_2_BEACON) {
|
if (ahw->extra_capability[0] & QLCNIC_FW_CAPABILITY_2_BEACON) {
|
||||||
err = qlcnic_get_beacon_state(adapter, &h_beacon_state);
|
err = qlcnic_get_beacon_state(adapter, &h_beacon_state);
|
||||||
if (!err) {
|
if (err) {
|
||||||
dev_info(&adapter->pdev->dev,
|
netdev_err(adapter->netdev,
|
||||||
"Failed to get current beacon state\n");
|
"Failed to get current beacon state\n");
|
||||||
} else {
|
} else {
|
||||||
if (h_beacon_state == QLCNIC_BEACON_DISABLE)
|
if (h_beacon_state == QLCNIC_BEACON_DISABLE)
|
||||||
ahw->beacon_state = 0;
|
ahw->beacon_state = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user