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

Commit 9ee82d54 authored by Eliad Peller's avatar Eliad Peller Committed by John W. Linville
Browse files

wl1271: bugfix: use bitwise-AND instead of logical-AND



typo - while looking for specific bits we should do a bitwise-AND instead of logical-AND.

Signed-off-by: default avatarEliad Peller <eliad@wizery.com>
Acked-by: default avatarLuciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 58be4607
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1634,7 +1634,7 @@ static void wl1271_op_bss_info_changed(struct ieee80211_hw *hw,
	if (ret < 0)
	if (ret < 0)
		goto out;
		goto out;


	if ((changed && BSS_CHANGED_BEACON_INT) &&
	if ((changed & BSS_CHANGED_BEACON_INT) &&
	    (wl->bss_type == BSS_TYPE_IBSS)) {
	    (wl->bss_type == BSS_TYPE_IBSS)) {
		wl1271_debug(DEBUG_ADHOC, "ad-hoc beacon interval updated: %d",
		wl1271_debug(DEBUG_ADHOC, "ad-hoc beacon interval updated: %d",
			bss_conf->beacon_int);
			bss_conf->beacon_int);
@@ -1643,7 +1643,7 @@ static void wl1271_op_bss_info_changed(struct ieee80211_hw *hw,
		do_join = true;
		do_join = true;
	}
	}


	if ((changed && BSS_CHANGED_BEACON) &&
	if ((changed & BSS_CHANGED_BEACON) &&
	    (wl->bss_type == BSS_TYPE_IBSS)) {
	    (wl->bss_type == BSS_TYPE_IBSS)) {
		struct sk_buff *beacon = ieee80211_beacon_get(hw, vif);
		struct sk_buff *beacon = ieee80211_beacon_get(hw, vif);