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

Commit 349345a4 authored by Eliad Peller's avatar Eliad Peller Committed by Luciano Coelho
Browse files

wl12xx: don't start dev role on ibss vifs



device role is used for scanning and sending packets
before connection. however, since we don't need to
send packets before ibss creation, there is no need
to start the device on idle-off.

Signed-off-by: default avatarEliad Peller <eliad@wizery.com>
Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
parent d7b63b9f
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -3746,10 +3746,8 @@ static void wl1271_bss_info_changed_sta(struct wl1271 *wl,
			ibss_joined = true;
			ibss_joined = true;
		} else {
		} else {
			if (test_and_clear_bit(WLVIF_FLAG_IBSS_JOINED,
			if (test_and_clear_bit(WLVIF_FLAG_IBSS_JOINED,
					       &wlvif->flags)) {
					       &wlvif->flags))
				wl1271_unjoin(wl, wlvif);
				wl1271_unjoin(wl, wlvif);
				wl12xx_start_dev(wl, wlvif);
			}
		}
		}
	}
	}


@@ -3767,7 +3765,7 @@ static void wl1271_bss_info_changed_sta(struct wl1271 *wl,
		do_join = true;
		do_join = true;
	}
	}


	if (changed & BSS_CHANGED_IDLE) {
	if (changed & BSS_CHANGED_IDLE && !is_ibss) {
		ret = wl1271_sta_handle_idle(wl, wlvif, bss_conf->idle);
		ret = wl1271_sta_handle_idle(wl, wlvif, bss_conf->idle);
		if (ret < 0)
		if (ret < 0)
			wl1271_warning("idle mode change failed %d", ret);
			wl1271_warning("idle mode change failed %d", ret);