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

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

wl12xx/wl18xx: scan all 5ghz channels



Due to a typo, the current code copies only sizeof(cmd->channels_2)
bytes, which is smaller than the correct sizeof(cmd->channels_5)
size, resulting in a partial scan (some channels are skipped).

Signed-off-by: default avatarEliad Peller <eliad@wizery.com>
Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 0e284c07
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -310,7 +310,7 @@ static void wl12xx_adjust_channels(struct wl1271_cmd_sched_scan_config *cmd,
	memcpy(cmd->channels_2, cmd_channels->channels_2,
	       sizeof(cmd->channels_2));
	memcpy(cmd->channels_5, cmd_channels->channels_5,
	       sizeof(cmd->channels_2));
	       sizeof(cmd->channels_5));
	/* channels_4 are not supported, so no need to copy them */
}

+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ static void wl18xx_adjust_channels(struct wl18xx_cmd_scan_params *cmd,
	memcpy(cmd->channels_2, cmd_channels->channels_2,
	       sizeof(cmd->channels_2));
	memcpy(cmd->channels_5, cmd_channels->channels_5,
	       sizeof(cmd->channels_2));
	       sizeof(cmd->channels_5));
	/* channels_4 are not supported, so no need to copy them */
}