瀏覽代碼

wil6210: channel off by 1

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>
Vladimir Kondratiev 12 年之前
父節點
當前提交
adc2d1225b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/net/wireless/ath/wil6210/wmi.c

+ 1 - 1
drivers/net/wireless/ath/wil6210/wmi.c

@@ -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),
 		.bcon_interval = cpu_to_le16(bi),
 		.network_type = wmi_nettype,
 		.network_type = wmi_nettype,
 		.disable_sec_offload = 1,
 		.disable_sec_offload = 1,
-		.channel = chan,
+		.channel = chan - 1,
 	};
 	};
 	struct {
 	struct {
 		struct wil6210_mbox_hdr_wmi wmi;
 		struct wil6210_mbox_hdr_wmi wmi;