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

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

wl12xx: increment session_counter for device role as well



The sesssion_counter has to be incremented each time
the dev is started (similar to sta role).

Signed-off-by: default avatarEliad Peller <eliad@wizery.com>
Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
parent 9fd6f21b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -531,7 +531,7 @@ static int wl12xx_cmd_role_start_dev(struct wl1271 *wl,
			goto out_free;
	}
	cmd->device.hlid = wlvif->dev_hlid;
	cmd->device.session = wlvif->session_counter;
	cmd->device.session = wl12xx_get_new_session_id(wl, wlvif);

	wl1271_debug(DEBUG_CMD, "role start: roleid=%d, hlid=%d, session=%d",
		     cmd->role_id, cmd->device.hlid, cmd->device.session);