* [PATCH 1/4] ath11k: Alignment should match open parenthesis
@ 2019-06-26 15:18 Kalle Valo
2019-06-26 15:18 ` [PATCH 2/4] ath11k: Remove prototype interface Kalle Valo
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Kalle Valo @ 2019-06-26 15:18 UTC (permalink / raw)
To: ath11k
Fix checkpatch warning:
drivers/net/wireless/ath/ath11k/mac.c:5029: Alignment should match open parenthesis
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
---
drivers/net/wireless/ath/ath11k/mac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c
index 8d4ddd9015cb..dd164b5bb51a 100644
--- a/drivers/net/wireless/ath/ath11k/mac.c
+++ b/drivers/net/wireless/ath/ath11k/mac.c
@@ -5026,7 +5026,7 @@ ath11k_mac_update_bss_chan_survey(struct ath11k *ar,
}
static int ath11k_mac_op_get_survey(struct ieee80211_hw *hw, int idx,
- struct survey_info *survey)
+ struct survey_info *survey)
{
struct ath11k *ar = hw->priv;
struct ieee80211_supported_band *sband;
--
2.7.4
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/4] ath11k: Remove prototype interface
2019-06-26 15:18 [PATCH 1/4] ath11k: Alignment should match open parenthesis Kalle Valo
@ 2019-06-26 15:18 ` Kalle Valo
2019-06-26 15:18 ` [PATCH 3/4] ath11k: line over 90 characters Kalle Valo
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2019-06-26 15:18 UTC (permalink / raw)
To: ath11k; +Cc: Venkateswara Naralasetty
From: Venkateswara Naralasetty <vnaralas@codeaurora.org>
Remove prototype interfaces which we don't support
any of these prototype interfaces in upstream.
Signed-off-by: Venkateswara Naralasetty <vnaralas@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
---
drivers/net/wireless/ath/ath11k/wmi.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath11k/wmi.h b/drivers/net/wireless/ath/ath11k/wmi.h
index e6566f7e6b66..7d933eafd3cd 100644
--- a/drivers/net/wireless/ath/ath11k/wmi.h
+++ b/drivers/net/wireless/ath/ath11k/wmi.h
@@ -1936,7 +1936,6 @@ enum wmi_tlv_service {
WMI_TLV_SERVICE_PER_VDEV_CHAINMASK_CONFIG_SUPPORT = 173,
WMI_TLV_SERVICE_TX_DATA_MGMT_ACK_RSSI = 174,
WMI_TLV_SERVICE_NAN_DISABLE_SUPPORT = 175,
- WMI_TLV_SERVICE_NAN_DISABLE_SUPPORT__prototype = WMI_TLV_SERVICE_NAN_DISABLE_SUPPORT,
WMI_TLV_SERVICE_HTT_H2T_NO_HTC_HDR_LEN_IN_MSG_LEN = 176,
WMI_MAX_EXT_SERVICE
--
2.7.4
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/4] ath11k: line over 90 characters
2019-06-26 15:18 [PATCH 1/4] ath11k: Alignment should match open parenthesis Kalle Valo
2019-06-26 15:18 ` [PATCH 2/4] ath11k: Remove prototype interface Kalle Valo
@ 2019-06-26 15:18 ` Kalle Valo
2019-06-26 15:18 ` [PATCH 4/4] ath11k: use kstrtoint_from_user() instead of sscanf() Kalle Valo
2019-06-27 11:15 ` [PATCH 1/4] ath11k: Alignment should match open parenthesis Kalle Valo
3 siblings, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2019-06-26 15:18 UTC (permalink / raw)
To: ath11k
Fix checkpatch warning:
drivers/net/wireless/ath/ath11k/dp_rx.c:2283: line over 90 characters
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
---
drivers/net/wireless/ath/ath11k/dp_rx.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath11k/dp_rx.c b/drivers/net/wireless/ath/ath11k/dp_rx.c
index 14a20f39ed10..9a1c24705a32 100644
--- a/drivers/net/wireless/ath/ath11k/dp_rx.c
+++ b/drivers/net/wireless/ath/ath11k/dp_rx.c
@@ -2280,7 +2280,9 @@ int ath11k_dp_process_rx(struct ath11k_base *ab, int mac_id,
if (ret == -EIO) {
ath11k_err(ab, "rx ring got corrupted %d\n", ret);
__skb_queue_purge(&msdu_list);
- /* Should stop processing any more rx in future from this ring? */
+ /* Should stop processing any more rx in
+ * future from this ring?
+ */
goto rcu_unlock;
}
--
2.7.4
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 4/4] ath11k: use kstrtoint_from_user() instead of sscanf()
2019-06-26 15:18 [PATCH 1/4] ath11k: Alignment should match open parenthesis Kalle Valo
2019-06-26 15:18 ` [PATCH 2/4] ath11k: Remove prototype interface Kalle Valo
2019-06-26 15:18 ` [PATCH 3/4] ath11k: line over 90 characters Kalle Valo
@ 2019-06-26 15:18 ` Kalle Valo
2019-06-27 11:15 ` [PATCH 1/4] ath11k: Alignment should match open parenthesis Kalle Valo
3 siblings, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2019-06-26 15:18 UTC (permalink / raw)
To: ath11k
Fix checkpatch warning:
drivers/net/wireless/ath/ath11k/debugfs_sta.c:494: Prefer kstrto<type> to single variable sscanf
As kstrtoint_from_user() can read directly from user buffer no need copy the buffer separately.
Compile tested only.
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
---
drivers/net/wireless/ath/ath11k/debugfs_sta.c | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
diff --git a/drivers/net/wireless/ath/ath11k/debugfs_sta.c b/drivers/net/wireless/ath/ath11k/debugfs_sta.c
index 4a30293bbae4..82bada5a7479 100644
--- a/drivers/net/wireless/ath/ath11k/debugfs_sta.c
+++ b/drivers/net/wireless/ath/ath11k/debugfs_sta.c
@@ -467,15 +467,13 @@ static const struct file_operations fops_htt_peer_stats = {
};
static ssize_t ath11k_dbg_sta_write_peer_pktlog(struct file *file,
- const char __user *ubuf,
+ const char __user *buf,
size_t count, loff_t *ppos)
{
struct ieee80211_sta *sta = file->private_data;
struct ath11k_sta *arsta = (struct ath11k_sta *)sta->drv_priv;
struct ath11k *ar = arsta->arvif->ar;
- u8 buf[32] = {0};
int ret, enable;
- ssize_t rc;
mutex_lock(&ar->conf_mutex);
@@ -484,18 +482,9 @@ static ssize_t ath11k_dbg_sta_write_peer_pktlog(struct file *file,
goto out;
}
- rc = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, ubuf, count);
- if (rc < 0) {
- ret = rc;
+ ret = kstrtoint_from_user(buf, count, 0, &enable);
+ if (ret)
goto out;
- }
- buf[rc] = '\0';
-
- ret = sscanf(buf, "%d", &enable);
- if (ret != 1) {
- ret = -EINVAL;
- goto out;
- }
ar->debug.pktlog_peer_valid = enable;
memcpy(ar->debug.pktlog_peer_addr, sta->addr, ETH_ALEN);
--
2.7.4
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/4] ath11k: Alignment should match open parenthesis
2019-06-26 15:18 [PATCH 1/4] ath11k: Alignment should match open parenthesis Kalle Valo
` (2 preceding siblings ...)
2019-06-26 15:18 ` [PATCH 4/4] ath11k: use kstrtoint_from_user() instead of sscanf() Kalle Valo
@ 2019-06-27 11:15 ` Kalle Valo
3 siblings, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2019-06-27 11:15 UTC (permalink / raw)
To: Kalle Valo; +Cc: ath11k
Kalle Valo <kvalo@codeaurora.org> wrote:
> Fix checkpatch warning:
>
> drivers/net/wireless/ath/ath11k/mac.c:5029: Alignment should match open parenthesis
>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
4 patches applied to ath11k-bringup branch of ath.git, thanks.
8f5a39b1cdaf ath11k: Alignment should match open parenthesis
810a4fb71e6a ath11k: Remove prototype interface
7b5a3ac963cb ath11k: line over 90 characters
4c6476d00657 ath11k: use kstrtoint_from_user() instead of sscanf()
--
https://patchwork.kernel.org/patch/11018091/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-06-27 11:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-26 15:18 [PATCH 1/4] ath11k: Alignment should match open parenthesis Kalle Valo
2019-06-26 15:18 ` [PATCH 2/4] ath11k: Remove prototype interface Kalle Valo
2019-06-26 15:18 ` [PATCH 3/4] ath11k: line over 90 characters Kalle Valo
2019-06-26 15:18 ` [PATCH 4/4] ath11k: use kstrtoint_from_user() instead of sscanf() Kalle Valo
2019-06-27 11:15 ` [PATCH 1/4] ath11k: Alignment should match open parenthesis Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox