summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSurendra Patil <surendra.tux@gmail.com>2014-03-04 00:18:52 -0800
committerJohn W. Linville <linville@tuxdriver.com>2014-03-04 13:28:36 -0500
commit76be3434f4150b282470bf71cd4aa0c82b29d603 (patch)
tree6fbdeb23c6138e0df7602b67f1c33dc3888c8038
parenta619d1abe20cc892ddd8f6f60345b24d43971fb4 (diff)
downloadop-kernel-dev-76be3434f4150b282470bf71cd4aa0c82b29d603.zip
op-kernel-dev-76be3434f4150b282470bf71cd4aa0c82b29d603.tar.gz
Drivers:net:wireless:ti:wl1251: Fixed Sparse invalid assignment warning
Sparse warns about invalid assignment in drivers/net/wireless/ti/wl1251/cmd.c:451:42: warning: invalid assignment: |= drivers/net/wireless/ti/wl1251/cmd.c:451:42: left side has type restricted __le16 drivers/net/wireless/ti/wl1251/cmd.c:451:42: right side has type int Hence type converted right side to __le16. Signed-off-by: Surendra Patil <surendra.tux@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ti/wl1251/cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wl1251/cmd.c b/drivers/net/wireless/ti/wl1251/cmd.c
index 223649b..bf1fa18 100644
--- a/drivers/net/wireless/ti/wl1251/cmd.c
+++ b/drivers/net/wireless/ti/wl1251/cmd.c
@@ -448,7 +448,7 @@ int wl1251_cmd_scan(struct wl1251 *wl, u8 *ssid, size_t ssid_len,
* Note: This bug may be caused by the fw's DTIM handling.
*/
if (is_zero_ether_addr(wl->bssid))
- cmd->params.scan_options |= WL1251_SCAN_OPT_PRIORITY_HIGH;
+ cmd->params.scan_options |= cpu_to_le16(WL1251_SCAN_OPT_PRIORITY_HIGH);
cmd->params.num_channels = n_channels;
cmd->params.num_probe_requests = n_probes;
cmd->params.tx_rate = cpu_to_le16(1 << 1); /* 2 Mbps */
OpenPOWER on IntegriCloud