Skip to content

Commit fe0dbcc

Browse files
Yuri Kululinlinvjw
authored andcommitted
wl1251: fix trigger scan timeout usage
Use appropriate command (CMD_TRIGGER_SCAN_TO) instead of scan command (CMD_SCAN) to configure trigger scan timeout. This was broken in commit 3a98c30. This fix address the bug reported here: https://bugzilla.kernel.org/show_bug.cgi?id=16554 Cc: stable@kernel.org Signed-off-by: Yuri Ershov <ext-yuri.ershov@nokia.com> Signed-off-by: Yuri Kululin <ext-yuri.kululin@nokia.com> Acked-by: Kalle Valo <kvalo@adurom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 71ba186 commit fe0dbcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/wl12xx/wl1251_cmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ int wl1251_cmd_trigger_scan_to(struct wl1251 *wl, u32 timeout)
484484

485485
cmd->timeout = timeout;
486486

487-
ret = wl1251_cmd_send(wl, CMD_SCAN, cmd, sizeof(*cmd));
487+
ret = wl1251_cmd_send(wl, CMD_TRIGGER_SCAN_TO, cmd, sizeof(*cmd));
488488
if (ret < 0) {
489489
wl1251_error("cmd trigger scan to failed: %d", ret);
490490
goto out;

0 commit comments

Comments
 (0)