]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/net/wireless/wl12xx/wl1251_cmd.c
wl1251: fix trigger scan timeout usage
[karo-tx-linux.git] / drivers / net / wireless / wl12xx / wl1251_cmd.c
index a37b30cef4894c6da466989be64546de3f38af94..ce3722f4c3e38e532c587051bce253257bcd89eb 100644 (file)
@@ -484,7 +484,7 @@ int wl1251_cmd_trigger_scan_to(struct wl1251 *wl, u32 timeout)
 
        cmd->timeout = timeout;
 
-       ret = wl1251_cmd_send(wl, CMD_SCAN, cmd, sizeof(*cmd));
+       ret = wl1251_cmd_send(wl, CMD_TRIGGER_SCAN_TO, cmd, sizeof(*cmd));
        if (ret < 0) {
                wl1251_error("cmd trigger scan to failed: %d", ret);
                goto out;