From: Kalle Valo <kvalo@qca.qualcomm.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [RFC/RFT 1/2] ath10k: WMI add AP PS
Date: Thu, 2 May 2013 10:16:31 +0300 [thread overview]
Message-ID: <878v3xhmwg.fsf@kamboji.qca.qualcomm.com> (raw)
In-Reply-To: <1367322381-29928-1-git-send-email-janusz.dziedzic@tieto.com> (Janusz Dziedzic's message of "Tue, 30 Apr 2013 13:46:20 +0200")
Janusz Dziedzic <janusz.dziedzic@tieto.com> writes:
> Add AP power save (UAPSD) structures, enums.
>
> Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
> ---
> drivers/net/wireless/ath/ath10k/wmi.c | 26 +++++++++++++
> drivers/net/wireless/ath/ath10k/wmi.h | 67 +++++++++++++++++++++++++++++++++
> 2 files changed, 93 insertions(+)
>
> diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c
> index 5272f18..453138b 100644
> --- a/drivers/net/wireless/ath/ath10k/wmi.c
> +++ b/drivers/net/wireless/ath/ath10k/wmi.c
> @@ -1850,6 +1850,32 @@ int ath10k_wmi_set_sta_ps_param(struct ath10k *ar, u32 vdev_id,
> return ath10k_wmi_cmd_send(ar, skb, WMI_STA_POWERSAVE_PARAM_CMDID);
> }
>
> +int ath10k_wmi_set_ap_ps_param(struct ath10k *ar, u32 vdev_id, const u8 *mac,
> + enum wmi_ap_ps_peer_param param_id, u32 value)
> +{
[...]
> + cmd->vdev_id = __cpu_to_le32(vdev_id);
> + cmd->param_id = __cpu_to_le32(param_id);
> + cmd->param_value = __cpu_to_le32(value);
No extra whitespace before '='.
> + memcpy(&cmd->peer_macaddr, mac, ETH_ALEN);
> +
> + ath10k_dbg(ATH10K_DBG_WMI,
> + "wmi ap ps param vdev_id 0x%X param %d value %d "
> + "mac_addr %pM\n", vdev_id, param_id, value, mac);
Don't split the format string into two. The long line limit doesn't
apply to logging format strings.
> diff --git a/drivers/net/wireless/ath/ath10k/wmi.h b/drivers/net/wireless/ath/ath10k/wmi.h
> index 9946a51..b9f5b62 100644
> --- a/drivers/net/wireless/ath/ath10k/wmi.h
> +++ b/drivers/net/wireless/ath/ath10k/wmi.h
> @@ -2397,6 +2397,71 @@ struct wmi_sta_mimo_ps_mode_cmd {
> __le32 mimo_pwrsave_mode;
> } __packed;
>
> +
Extra empty line.
> +/* U-APSD maximum service period of peer station */
> +enum wmi_ap_ps_peer_param_max_sp {
> + WMI_AP_PS_PEER_PARAM_MAX_SP_UNLIMITED = 0,
> + WMI_AP_PS_PEER_PARAM_MAX_SP_2 = 1,
> + WMI_AP_PS_PEER_PARAM_MAX_SP_4 = 2,
> + WMI_AP_PS_PEER_PARAM_MAX_SP_6 = 3,
> + /* keep last! */
Empty line before the comment.
> +struct wmi_ap_ps_peer_cmd {
> + /** unique id identifying the VDEV, generated by the caller */
> + __le32 vdev_id;
> + /** peer MAC address */
> + struct wmi_mac_addr peer_macaddr;
> + /** AP powersave param (see enum wmi_ap_ps_peer_param) */
> + __le32 param_id;
> + /** AP powersave param value */
> + __le32 param_value;
> +} __packed;
Empty line before the comments, except the first one.
Also there are new warnings:
drivers/net/wireless/ath/ath10k/wmi.h:2494: WARNING: line over 80 characters
drivers/net/wireless/ath/ath10k/wmi.h:2514: WARNING: line over 80 characters
drivers/net/wireless/ath/ath10k/wmi.c:1924: CHECK: No space is necessary after a cast
drivers/net/wireless/ath/ath10k/mac.c:906: CHECK: Blank lines aren't necessary after an open brace '{'
drivers/net/wireless/ath/ath10k/mac.c:908: WARNING: quoted string split across lines
drivers/net/wireless/ath/ath10k/mac.c:913: WARNING: line over 80 characters
drivers/net/wireless/ath/ath10k/mac.c:916: WARNING: line over 80 characters
drivers/net/wireless/ath/ath10k/mac.c:919: WARNING: line over 80 characters
drivers/net/wireless/ath/ath10k/mac.c:922: WARNING: line over 80 characters
--
Kalle Valo
prev parent reply other threads:[~2013-05-02 7:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-30 11:46 [ath9k-devel] [RFC/RFT 1/2] ath10k: WMI add AP PS Janusz Dziedzic
2013-04-30 11:46 ` [ath9k-devel] [RFC/RFT 2/2] ath10k: add AP UAPSD support Janusz Dziedzic
2013-05-02 7:17 ` Kalle Valo
2013-05-02 7:16 ` Kalle Valo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878v3xhmwg.fsf@kamboji.qca.qualcomm.com \
--to=kvalo@qca.qualcomm.com \
--cc=ath9k-devel@lists.ath9k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.