wil6210: channel off by 1
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Tue, 28 May 2013 12:17:52 +0000 (15:17 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 29 May 2013 18:54:29 +0000 (14:54 -0400)
WMI commands wants channel index, that is channel - 1

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/wil6210/wmi.c

index 5e01f4ee4de79f2d5668509cfdc733f074353a25..a091eb11e392f3193b12de6b458f2cc14398091c 100644 (file)
@@ -728,7 +728,7 @@ int wmi_pcp_start(struct wil6210_priv *wil, int bi, u8 wmi_nettype, u8 chan)
                .bcon_interval = cpu_to_le16(bi),
                .network_type = wmi_nettype,
                .disable_sec_offload = 1,
-               .channel = chan,
+               .channel = chan - 1,
        };
        struct {
                struct wil6210_mbox_hdr_wmi wmi;