ath6kl: Avoid taking struct as argument in ath6kl_wmi_set_ip_cmd
authorRaja Mani <rmani@qca.qualcomm.com>
Fri, 16 Dec 2011 08:54:23 +0000 (14:24 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 23 Dec 2011 12:50:05 +0000 (14:50 +0200)
commitca1d16a08fc2c26b693e65ad92fa37a4c778e60d
treec1f8aae578a920c19b35189b6763ccac3bb9cd1a
parent6e786cb1e514dc87647beccaa96bd8a255d97a0c
ath6kl: Avoid taking struct as argument in ath6kl_wmi_set_ip_cmd

In this way, caller is free to pass only the value of IP addr
to configure.

In addition to this,
  * 'ips' variable data type in struct wmi_set_ip_cmd is changed
     from __le32 to __be32 in order to match network byte order.
  *  ipv4_is_multicast() is used to validate multicast ip addr.
  *  New argument if_idx is added to supply correct vif index
     to ath6kl_wmi_cmd_send().

This will be used in the next patch.

Signed-off-by: Raja Mani <rmani@qca.qualcomm.com>
Signed-off-by: Thirumalai Pachamuthu <tpachamu@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/wmi.c
drivers/net/wireless/ath/ath6kl/wmi.h