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

Commit 5924f89d authored by Luciano Coelho's avatar Luciano Coelho
Browse files

wl1271: remove useless 11a check when scanning



This code was a leftover of the previous scanning mechanism.  The if is
totally unnecessary, since both branches do the same thing.

Signed-off-by: default avatarLuciano Coelho <luciano.coelho@nokia.com>
Reviewed-by: default avatarJuuso Oikarinen <juuso.oikarinen@nokia.com>
parent 76a029fb
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1624,9 +1624,6 @@ static int wl1271_op_hw_scan(struct ieee80211_hw *hw,
	if (ret < 0)
		goto out;

	if (wl1271_11a_enabled())
		ret = wl1271_scan(hw->priv, ssid, len, req);
	else
	ret = wl1271_scan(hw->priv, ssid, len, req);

	wl1271_ps_elp_sleep(wl);