* Re: beginner build question
From: Christian Lamparter @ 2013-09-06 10:21 UTC (permalink / raw)
To: Brian O'Connor; +Cc: linux-wireless
In-Reply-To: <CAHhaCVjomgED0WW1fyUQbePNS0DnPEfKb5uE-+rEMhx6zgO1ZA@mail.gmail.com>
Hello,
On Friday, September 06, 2013 02:27:26 AM Brian O'Connor wrote:
> I am trying to compile rtl8192su in Ubuntu 13.04 and I get the
> following error when I "make all":
>
> make -C /lib/modules/3.10.10-031010-generic/build
> M=/home/media/rtl8192su/r92su CONFIG_R92SU=m CONFIG_R92SU_DEBUGFS=y
> CONFIG_R92SU_WPC=y all EXTRA_CFLAGS="-DDEBUG -DCONFIG_R92SU=m
^^^
> -DCONFIG_R92SU_DEBUGFS=y -DCONFIG_R92SU_WPC=y"
> make[1]: Entering directory `/usr/src/linux-headers-3.10.10-031010-generic'
> make[1]: *** No rule to make target `vmlinux', needed by `all'. Stop.
> make[1]: Leaving directory `/usr/src/linux-headers-3.10.10-031010-generic'
> make: *** [all] Error 2
>
> Any suggestions?
Thanks for reporting this. I fixed the project's readme.
<https://github.com/chunkeey/rtl8192su/commit/d1934e155840ccd273a429d85f1f2aa407ba49b7>
Just run "make" instead of "make all".
Regards
Chr
^ permalink raw reply
* Re: [PATCH 1/2] ath10k: set the UART baud rate to 19200
From: Kalle Valo @ 2013-09-06 9:52 UTC (permalink / raw)
To: Bartosz Markowski; +Cc: ath10k, linux-wireless
In-Reply-To: <1378211043-20299-1-git-send-email-bartosz.markowski@tieto.com>
Bartosz Markowski <bartosz.markowski@tieto.com> writes:
> When configuring the host_interests over BMI, set the UART
> baud rate to 19200. This is valid for QCA988X_2.0 devices.
>
> Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
Thanks, both patches applied.
To first patch I added this:
kvalo: found during code review, there should not be any functionality
changes
--
Kalle Valo
^ permalink raw reply
* Re: [PATCH v4 2/2] ath10k: implement per-VDEV FW statistics
From: Kalle Valo @ 2013-09-06 9:48 UTC (permalink / raw)
To: Bartosz Markowski; +Cc: ath10k, linux-wireless
In-Reply-To: <1378196481-13983-3-git-send-email-bartosz.markowski@tieto.com>
Bartosz Markowski <bartosz.markowski@tieto.com> writes:
> The WMI_REQUEST_PEER_STAT command with latst (1.0.0.716) FW
> can return per-VDEV statistics. Using debugfs we can fetch this info now.
>
> This is a backward compatible change. In case of older FW the VDEV
> statistics are simply not returned.
>
> Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
> ---
[...]
> for (i = 0; i < num_peer_stats; i++) {
> - peer_stats = (struct wmi_peer_stats *)tmp;
> + peer_stats = (struct wmi_peer_stats_common *)tmp;
You still have the evil cast here :)
(Evil here meaning that that you make the implicit assumption that _v1
and _v2 start with the _common struct.)
Let me send v5 and you can review that before I commit.
--
Kalle Valo
^ permalink raw reply
* Re: [PATCH 0/3] ath10k: HTT stats
From: Kalle Valo @ 2013-09-06 9:43 UTC (permalink / raw)
To: ath10k; +Cc: linux-wireless
In-Reply-To: <20130903084302.26199.3538.stgit@localhost6.localdomain6>
Kalle Valo <kvalo@qca.qualcomm.com> writes:
> Adds trace events and a debugfs interface to enable HTT stats
> from firmware.
>
> ---
>
> Kalle Valo (3):
> ath10k: add trace event ath10k_htt_stats
> ath10k: implement ath10k_debug_start/stop()
> ath10k: add htt_stats_enable debugfs file
All three applied.
--
Kalle Valo
^ permalink raw reply
* Re: [PATCH] Add missing braces to ath10k_pci_tx_pipe_cleanup
From: Kalle Valo @ 2013-09-06 9:32 UTC (permalink / raw)
To: Dave Jones; +Cc: netdev, linux-wireless, linville, ath10k
In-Reply-To: <20130905035128.GA15824@redhat.com>
Dave Jones <davej@redhat.com> writes:
> The indentation here implies this was meant to be a multi-statement
> if, but it lacks the braces.
>
> Signed-off-by: Dave Jones <davej@fedoraproject.org>
Thanks, applied.
I added "ath10k:" to the patch title.
--
Kalle Valo
^ permalink raw reply
* beginner build question
From: Brian O'Connor @ 2013-09-06 9:27 UTC (permalink / raw)
To: linux-wireless
I am trying to compile rtl8192su in Ubuntu 13.04 and I get the
following error when I "make all":
make -C /lib/modules/3.10.10-031010-generic/build
M=/home/media/rtl8192su/r92su CONFIG_R92SU=m CONFIG_R92SU_DEBUGFS=y
CONFIG_R92SU_WPC=y all EXTRA_CFLAGS="-DDEBUG -DCONFIG_R92SU=m
-DCONFIG_R92SU_DEBUGFS=y -DCONFIG_R92SU_WPC=y"
make[1]: Entering directory `/usr/src/linux-headers-3.10.10-031010-generic'
make[1]: *** No rule to make target `vmlinux', needed by `all'. Stop.
make[1]: Leaving directory `/usr/src/linux-headers-3.10.10-031010-generic'
make: *** [all] Error 2
Any suggestions?
Thanks in advance,
Brian
^ permalink raw reply
* Re: bcma problem on x86_64
From: Arend van Spriel @ 2013-09-06 9:05 UTC (permalink / raw)
To: Rafał Miłecki; +Cc: linux-wireless
In-Reply-To: <CACna6ryc0_9xcQonuJbK6aB0-ak_izLTi_LNGHB=Lsx0Q5t-Zw@mail.gmail.com>
On 09/06/2013 10:05 AM, Rafał Miłecki wrote:
> Hi,
>
> 2013/9/5 Arend van Spriel <arend@broadcom.com>:
>> Since 3.11-rc4 I am seeing a problem with bcma on x64 (see attached log). I
>> thought I misconfigured my setup, but just upgraded to 3.11 and I am still
>> seeing the same issue. Did you have any reports like this?
>
> Unfortunately I wasn't testing final 3.11 with x86_64, I'll give it a
> try over the weekend.
>
I am bisecting. Will let you know when I find something.
Gr. AvS
^ permalink raw reply
* Re: bcma problem on x86_64
From: Rafał Miłecki @ 2013-09-06 8:05 UTC (permalink / raw)
To: Arend van Spriel; +Cc: linux-wireless
In-Reply-To: <522879D0.2030107@broadcom.com>
Hi,
2013/9/5 Arend van Spriel <arend@broadcom.com>:
> Since 3.11-rc4 I am seeing a problem with bcma on x64 (see attached log). I
> thought I misconfigured my setup, but just upgraded to 3.11 and I am still
> seeing the same issue. Did you have any reports like this?
Unfortunately I wasn't testing final 3.11 with x86_64, I'll give it a
try over the weekend.
--
Rafał
^ permalink raw reply
* [PATCH v2] mac80211: fix the setting of extended supported rate IE
From: Chun-Yeow Yeoh @ 2013-09-05 19:14 UTC (permalink / raw)
To: linux-wireless
Cc: johannes, linville, devel, distro11s, Chun-Yeow Yeoh,
Colleen Twitty
The patch "mac80211: select and adjust bitrates according to
channel mode" causes regression and breaks the extended supported rate
IE setting. Since "i" is starting with 8, so this is not necessary
to introduce "skip" here.
Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@cozybit.com>
Signed-off-by: Colleen Twitty <colleen@cozybit.com>
Reviewed-by: Jason Abele <jason@cozybit.com>
---
v2: remove skip (Jason)
net/mac80211/util.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 3c8283b..4bb639f 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -2128,14 +2128,11 @@ int ieee80211_add_ext_srates_ie(struct ieee80211_sub_if_data *sdata,
pos = skb_put(skb, exrates + 2);
*pos++ = WLAN_EID_EXT_SUPP_RATES;
*pos++ = exrates;
- skip = 0;
for (i = 8; i < sband->n_bitrates; i++) {
u8 basic = 0;
if ((rate_flags & sband->bitrates[i].flags)
!= rate_flags)
continue;
- if (skip++ < 8)
- continue;
if (need_basic && basic_rates & BIT(i))
basic = 0x80;
rate = DIV_ROUND_UP(sband->bitrates[i].bitrate,
--
1.7.9.5
^ permalink raw reply related
* Re: Specifying priority for management frames?
From: Ben Greear @ 2013-09-05 18:28 UTC (permalink / raw)
To: linux-wireless@vger.kernel.org
In-Reply-To: <5228CAB6.5060308@candelatech.com>
On 09/05/2013 11:17 AM, Ben Greear wrote:
> While debugging a problem with group-rekeys, we noticed that the sniffer (on external machine)
> reported management packets are sent in the best-effort QoS queue.
>
> It seems to me that these should be in the VO queue instead, or at least
> we should be able to specify the queue in supplicant when sending the frames?
Hrmm, actually it appears the mac80211 layer tries to send on VO. Maybe
some of my hackings are messing this up...I'll go dig deeper.
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
^ permalink raw reply
* Specifying priority for management frames?
From: Ben Greear @ 2013-09-05 18:17 UTC (permalink / raw)
To: linux-wireless@vger.kernel.org
While debugging a problem with group-rekeys, we noticed that the sniffer (on external machine)
reported management packets are sent in the best-effort QoS queue.
It seems to me that these should be in the VO queue instead, or at least
we should be able to specify the queue in supplicant when sending the frames?
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
^ permalink raw reply
* Re: Linux Wireless Mini-Summit in New Orleans -- 19-20 September (6 weeks from today!)
From: Dan Williams @ 2013-09-05 16:04 UTC (permalink / raw)
To: John W. Linville
Cc: linux-wireless, johannes, marcel, Samuel Ortiz, Gustavo Padovan,
linux-bluetooth, linux-nfc
In-Reply-To: <20130905133907.GE1947@tuxdriver.com>
On Thu, 2013-09-05 at 09:39 -0400, John W. Linville wrote:
> On Thu, Aug 08, 2013 at 03:04:29PM -0400, John W. Linville wrote:
> > Sorry, forgot to copy linux-bluetooth and linux-nfc...
> >
> > On Thu, Aug 08, 2013 at 02:54:11PM -0400, John W. Linville wrote:
> > > Greetings!
> > >
> > > This is a reminder that we will have a Linux Wireless Mini-Summit in
> > > New Orleans this year on 19-20 September. This will immediately follow
> > > LinuxCon and will run concurrently with Linux Plumber's Conference.
> > > This event includes Linux developers for wireless LAN (802.11),
> > > Bluetooth, and NFC technologies. Both kernel and userland developers
> > > are welcomed and heartily encouraged to attend!
> > >
> > > http://wireless.kernel.org/en/developers/Summits/New-Orleans-2013
> > >
> > > The link above is a Wiki. We are using it to collect discussion
> > > topics and to negotiate agenda/scheduling options for the event.
> > > Please go there to record your intent to attend the event and to
> > > propopse topics for discussion.
> > >
> > > Please be aware that in order to attend the event above one must
> > > register for either LinuxCon or for Linux Plumbers Conference.
> > > Act now, before those events fill-up and close their registrations!
> > >
> > > We are allotted one "large" room (up to ~80 people "theater style"), and
> > > two "small" rooms (up to ~25 people) for this event. Based on history
> > > and the numbers of contributors, the larger room will primarily be
> > > for the 802.11 discussions and any "plenary" topics while the smaller
> > > rooms will be for Bluetooth, NFC, and any "breakout" topics.
> > >
> > > So...thoughts? Topics to discuss?
>
> Ping? We're now just 2 weeks away!
>
> Is our topic list complete? It looks a bit light...
>
> Anyone have any input on scheduling the topics? Are there any
> overlapping LPC sessions that it would make sense to work around?
I'm attending though I haven't put my name on the wiki yet.
Random thoughts; it doesn't look like any of these are covered in the
regular LinuxConf or LPC sessions.
1) State of the Union (maybe by multiple people in the same session per
their expertise), since perhaps not everyone doing eg 802.11 stuff knows
what's happening in BT or NFC land, or not everyone working on a
specific driver may know what new stuff their driver might need to be
fixed up for. Maybe 5 minutes or less for things like:
* what's under the most active development right now?
* upcoming new driver, hardware, and new capabilities
* new 802.11 standards
* and what's coming up in the next year from the standards orgs
* what people will start working on soon
* what will 3.13 or 3.14 look like from a wireless perspective?
* 11s mesh status?
* anything interesting in wpa_supplicant land?
* anything new/interesting on the Android front?
2) Bluetooth - update about what's new and what's coming up in Bluez
land, and interaction with kernel 802.11 if any,
3) NFC - update about what's new and what's coming up in NFC land, where
it's getting used, what the stack looks like
4) What are users having the most problems with and how these problems
be fixed better/more quickly? Are they driver bugs? Are they stack
bugs? Supplicant bugs? NM/GUI/etc bugs? Is there anything in our
development processes that's not working as smoothly as it could be?
Dan
^ permalink raw reply
* Re: WARNING with ath9k_htc on TL-WN721N
From: Oleksij Rempel @ 2013-09-05 14:32 UTC (permalink / raw)
To: Antonio Quartulli; +Cc: ath9k-devel, linux-wireless
In-Reply-To: <20130905142122.GE1570@ritirata.org>
Am 05.09.2013 16:21, schrieb Antonio Quartulli:
> On Thu, Sep 05, 2013 at 04:09:04PM +0200, Oleksij Rempel wrote:
>> Forgot attachment.
>>
>>
>> Am 05.09.2013 16:07, schrieb Oleksij Rempel:
>>> Hi,
>>>
>>> thank you.
>>>
>>> please do some tests for me.
>>>
>>> 1. run wireless adapter without other devices on this bus.
>>>
>
> Ok Oleksij, I'll try to do these tests soonish. You think the problem is
> triggered by a scan operation?
>
> If so, I'll try to reproduce it by scanning. Till now I had no clue about the
> cause.
Probably no only scan. Normally if you use network manager, it will scan
each 160 seconds or so. In this case you will get this warning lot more
often. Probably it comes together: hight network traffic + channel scan
+ usb traffic of other devices on same bus.
--
Regards,
Oleksij
^ permalink raw reply
* Re: WARNING with ath9k_htc on TL-WN721N
From: Antonio Quartulli @ 2013-09-05 14:21 UTC (permalink / raw)
To: Oleksij Rempel; +Cc: ath9k-devel, linux-wireless
In-Reply-To: <52289080.80604@rempel-privat.de>
[-- Attachment #1: Type: text/plain, Size: 1686 bytes --]
On Thu, Sep 05, 2013 at 04:09:04PM +0200, Oleksij Rempel wrote:
> Forgot attachment.
>
>
> Am 05.09.2013 16:07, schrieb Oleksij Rempel:
> > Hi,
> >
> > thank you.
> >
> > please do some tests for me.
> >
> > 1. run wireless adapter without other devices on this bus.
> >
> >> Bus 002 Device 003: ID 0cf3:9271 Atheros Communications, Inc. AR9271
> >> 802.11n
> >> Bus 002 Device 011: ID 03f0:8607 Hewlett-Packard Optical Mobile Mouse
> >> Bus 002 Device 005: ID 0403:6001 Future Technology Devices
> >> International, Ltd
> >> FT232 USB-Serial (UART) IC
> >> Bus 002 Device 006: ID 413c:8187 Dell Computer Corp. DW375 Bluetooth
> >> Module
> >
> > probably Bluetooth can't be removed, so disable it by software.
> >
> > 2. if this warning disappear, plug them back and rung kernel with
> > attached patch. I wont to see if this warning related to channel scan.
> >
> > 3. try latest wireless-next kernel
> > https://git.kernel.org/cgit/linux/kernel/git/linville/wireless-next.git/
> >
> > there are some patches which will affect usb communication, this will be
> > visible on your hardware, in good or bad way. Will see how it performs
> > in your situation.
> >
> > I assume this warning is related to usb bandwidth. Since we use BULK
> > transfer, we will get only rest of it. If other devices use ISO or
> > Interrupt, They well have priority.
Ok Oleksij, I'll try to do these tests soonish. You think the problem is
triggered by a scan operation?
If so, I'll try to reproduce it by scanning. Till now I had no clue about the
cause.
Cheers,
--
Antonio Quartulli
..each of us alone is worth nothing..
Ernesto "Che" Guevara
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply
* Re: WARNING with ath9k_htc on TL-WN721N
From: Oleksij Rempel @ 2013-09-05 14:09 UTC (permalink / raw)
To: Antonio Quartulli; +Cc: ath9k-devel, linux-wireless
In-Reply-To: <52289033.8080205@rempel-privat.de>
[-- Attachment #1: Type: text/plain, Size: 2121 bytes --]
Forgot attachment.
Am 05.09.2013 16:07, schrieb Oleksij Rempel:
> Hi,
>
> thank you.
>
> please do some tests for me.
>
> 1. run wireless adapter without other devices on this bus.
>
>> Bus 002 Device 003: ID 0cf3:9271 Atheros Communications, Inc. AR9271
>> 802.11n
>> Bus 002 Device 011: ID 03f0:8607 Hewlett-Packard Optical Mobile Mouse
>> Bus 002 Device 005: ID 0403:6001 Future Technology Devices
>> International, Ltd
>> FT232 USB-Serial (UART) IC
>> Bus 002 Device 006: ID 413c:8187 Dell Computer Corp. DW375 Bluetooth
>> Module
>
> probably Bluetooth can't be removed, so disable it by software.
>
> 2. if this warning disappear, plug them back and rung kernel with
> attached patch. I wont to see if this warning related to channel scan.
>
> 3. try latest wireless-next kernel
> https://git.kernel.org/cgit/linux/kernel/git/linville/wireless-next.git/
>
> there are some patches which will affect usb communication, this will be
> visible on your hardware, in good or bad way. Will see how it performs
> in your situation.
>
> I assume this warning is related to usb bandwidth. Since we use BULK
> transfer, we will get only rest of it. If other devices use ISO or
> Interrupt, They well have priority.
>
>> I'm not using the Intel card listed in lspci. (the iwldvm module is
>> loaded but
>> the interface is down).
>>
>> Cheers,
>>
>>
>> On Thu, Sep 05, 2013 at 12:25:06PM +0200, Oleksij Rempel wrote:
>>> Am 05.09.2013 12:09, schrieb Antonio Quartulli:
>>>> Hello list,
>>>>
>>>> I ma connected to my WPA2-PSK protected network and from time to
>>>> time I get the
>>>> following warning in dmesg. I don't experience any malfunctionng but
>>>> I thought
>>>> it was worth reporting. My kernel version is linux-3.10.10. I
>>>> remember I've seen
>>>> this warning also with previous versions.
>>>>
>>>> The device I use is a TP-LINK TL-WN721N.
>>>> lsusb says:
>>>>
>>>> Bus 002 Device 003: ID 0cf3:9271 Atheros Communications, Inc. AR9271
>>>> 802.11n
>>>>
>>>> Cheers,
>>>>
>>>
>>> Hi Antonio,
>>>
>>> pleas send out of lsusb and lspci.
>>>
>>>
>>> --
>>> Regards,
>>> Oleksij
>>
>
>
--
Regards,
Oleksij
[-- Attachment #2: scan_dbg.diff --]
[-- Type: text/x-patch, Size: 810 bytes --]
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
index 5c1bec1..29ebfcf 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
@@ -1669,6 +1669,7 @@ static void ath9k_htc_sw_scan_start(struct ieee80211_hw *hw)
{
struct ath9k_htc_priv *priv = hw->priv;
+ pr_info("!!!! %s:%i\n", __func__, __LINE__);
mutex_lock(&priv->mutex);
spin_lock_bh(&priv->beacon_lock);
set_bit(OP_SCANNING, &priv->op_flags);
@@ -1682,6 +1683,7 @@ static void ath9k_htc_sw_scan_complete(struct ieee80211_hw *hw)
{
struct ath9k_htc_priv *priv = hw->priv;
+ pr_info("!!!! %s:%i\n", __func__, __LINE__);
mutex_lock(&priv->mutex);
spin_lock_bh(&priv->beacon_lock);
clear_bit(OP_SCANNING, &priv->op_flags);
^ permalink raw reply related
* Re: WARNING with ath9k_htc on TL-WN721N
From: Oleksij Rempel @ 2013-09-05 14:07 UTC (permalink / raw)
To: Antonio Quartulli; +Cc: ath9k-devel, linux-wireless
In-Reply-To: <20130905103204.GB1570@ritirata.org>
Hi,
thank you.
please do some tests for me.
1. run wireless adapter without other devices on this bus.
> Bus 002 Device 003: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
> Bus 002 Device 011: ID 03f0:8607 Hewlett-Packard Optical Mobile Mouse
> Bus 002 Device 005: ID 0403:6001 Future Technology Devices International, Ltd
> FT232 USB-Serial (UART) IC
> Bus 002 Device 006: ID 413c:8187 Dell Computer Corp. DW375 Bluetooth Module
probably Bluetooth can't be removed, so disable it by software.
2. if this warning disappear, plug them back and rung kernel with
attached patch. I wont to see if this warning related to channel scan.
3. try latest wireless-next kernel
https://git.kernel.org/cgit/linux/kernel/git/linville/wireless-next.git/
there are some patches which will affect usb communication, this will be
visible on your hardware, in good or bad way. Will see how it performs
in your situation.
I assume this warning is related to usb bandwidth. Since we use BULK
transfer, we will get only rest of it. If other devices use ISO or
Interrupt, They well have priority.
> I'm not using the Intel card listed in lspci. (the iwldvm module is loaded but
> the interface is down).
>
> Cheers,
>
>
> On Thu, Sep 05, 2013 at 12:25:06PM +0200, Oleksij Rempel wrote:
>> Am 05.09.2013 12:09, schrieb Antonio Quartulli:
>>> Hello list,
>>>
>>> I ma connected to my WPA2-PSK protected network and from time to time I get the
>>> following warning in dmesg. I don't experience any malfunctionng but I thought
>>> it was worth reporting. My kernel version is linux-3.10.10. I remember I've seen
>>> this warning also with previous versions.
>>>
>>> The device I use is a TP-LINK TL-WN721N.
>>> lsusb says:
>>>
>>> Bus 002 Device 003: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
>>>
>>> Cheers,
>>>
>>
>> Hi Antonio,
>>
>> pleas send out of lsusb and lspci.
>>
>>
>> --
>> Regards,
>> Oleksij
>
--
Regards,
Oleksij
^ permalink raw reply
* Re: Error:ACS not working even after the Makefile and the configuration options are set.
From: Jonathan Bither @ 2013-09-05 14:01 UTC (permalink / raw)
To: abbas.chunawala; +Cc: linux-wireless
In-Reply-To: <52286C01.6080303@slscorp.com>
On 09/05/2013 07:33 AM, Abbas Chunawala wrote:
> Hi,
> Greetings.
>
> No ACS prints.
> Instead an error
> ath0 : IEEE 802.11 : Fetching channel rate/frequency not supported
^ You seem to be using the driver MadWiFi instead of Ath5k based upon
the interface name. MadWiFi is deprecated in support of the Ath5k driver.
You need to blacklist MadWiFi first before loading Ath5k.
> The channel variable is set right in the configuration file.
> How to get the acs prints.
> The command for the hostapd invocation is a s follows:-
> hostapd -B /tmp/secath0 -dd -e /etc/wpa2/entropy.
>
> Thanks
> Regards
> Abbas Chunawala
> (System Level Solutions (I) Pvt. Ltd. )
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply
* Re: Linux Wireless Mini-Summit in New Orleans -- 19-20 September (6 weeks from today!)
From: John W. Linville @ 2013-09-05 13:39 UTC (permalink / raw)
To: linux-wireless
Cc: johannes, marcel, Samuel Ortiz, Gustavo Padovan, linux-bluetooth,
linux-nfc
In-Reply-To: <20130808190428.GF30925@tuxdriver.com>
On Thu, Aug 08, 2013 at 03:04:29PM -0400, John W. Linville wrote:
> Sorry, forgot to copy linux-bluetooth and linux-nfc...
>
> On Thu, Aug 08, 2013 at 02:54:11PM -0400, John W. Linville wrote:
> > Greetings!
> >
> > This is a reminder that we will have a Linux Wireless Mini-Summit in
> > New Orleans this year on 19-20 September. This will immediately follow
> > LinuxCon and will run concurrently with Linux Plumber's Conference.
> > This event includes Linux developers for wireless LAN (802.11),
> > Bluetooth, and NFC technologies. Both kernel and userland developers
> > are welcomed and heartily encouraged to attend!
> >
> > http://wireless.kernel.org/en/developers/Summits/New-Orleans-2013
> >
> > The link above is a Wiki. We are using it to collect discussion
> > topics and to negotiate agenda/scheduling options for the event.
> > Please go there to record your intent to attend the event and to
> > propopse topics for discussion.
> >
> > Please be aware that in order to attend the event above one must
> > register for either LinuxCon or for Linux Plumbers Conference.
> > Act now, before those events fill-up and close their registrations!
> >
> > We are allotted one "large" room (up to ~80 people "theater style"), and
> > two "small" rooms (up to ~25 people) for this event. Based on history
> > and the numbers of contributors, the larger room will primarily be
> > for the 802.11 discussions and any "plenary" topics while the smaller
> > rooms will be for Bluetooth, NFC, and any "breakout" topics.
> >
> > So...thoughts? Topics to discuss?
Ping? We're now just 2 weeks away!
Is our topic list complete? It looks a bit light...
Anyone have any input on scheduling the topics? Are there any
overlapping LPC sessions that it would make sense to work around?
John
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
^ permalink raw reply
* bcma problem on x86_64
From: Arend van Spriel @ 2013-09-05 12:32 UTC (permalink / raw)
To: Rafał Miłecki; +Cc: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 271 bytes --]
Hi Rafał,
Since 3.11-rc4 I am seeing a problem with bcma on x64 (see attached
log). I thought I misconfigured my setup, but just upgraded to 3.11 and
I am still seeing the same issue. Did you have any reports like this?
I will double check my setup.
Regards,
Arend
[-- Attachment #2: bcma-rcu-stall.log --]
[-- Type: text/plain, Size: 14907 bytes --]
Sep 4 20:19:13 lb-bun-21 kernel: [17177.377932] bcma: bus0: Found chip with id 0xA8D8, rev 0x01 and package 0x0A
Sep 4 20:20:13 lb-bun-21 kernel: [17237.438967] INFO: rcu_sched self-detected stall on CPU { 0} (t=15000 jiffies g=7908 c=7907 q=37423)
Sep 4 20:20:13 lb-bun-21 kernel: [17237.438979] sending NMI to all CPUs:
Sep 4 20:20:13 lb-bun-21 kernel: [17237.438986] NMI backtrace for cpu 0
Sep 4 20:20:13 lb-bun-21 kernel: [17237.438994] CPU: 0 PID: 6340 Comm: insmod Tainted: G O 3.11.0-rc5-wl-testing-x64-00002-g079f98c-dirty #1
Sep 4 20:20:13 lb-bun-21 kernel: [17237.438997] Hardware name: Dell Inc. Latitude E6410/07XJP9, BIOS A07 02/15/2011
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439002] task: ffff880123b18000 ti: ffff880125006000 task.ti: ffff880125006000
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439006] RIP: 0010:[<ffffffff812f4152>] [<ffffffff812f4152>] __const_udelay+0x22/0x30
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439019] RSP: 0018:ffff88012bc03d88 EFLAGS: 00000807
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439023] RAX: 0000000041ca2400 RBX: 0000000000002710 RCX: 000000000154f0a0
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439027] RDX: 00000000002a46e1 RSI: 0000000000000007 RDI: 0000000000418958
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439031] RBP: ffff88012bc03d88 R08: 000000000000000a R09: 0000000000000000
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439034] R10: 0000000000000329 R11: 0000000000000328 R12: ffffffff81a389c0
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439038] R13: ffffffff81a389c0 R14: 0000000000000000 R15: ffffffff81aab808
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439042] FS: 00007fd6a460c700(0000) GS:ffff88012bc00000(0000) knlGS:0000000000000000
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439046] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439050] CR2: 00007fd6a41383d0 CR3: 00000001262aa000 CR4: 00000000000007f0
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439053] Stack:
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439056] ffff88012bc03da8 ffffffff8102f85a 000000000000922f ffff88012bc0db80
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439063] ffff88012bc03e18 ffffffff810dc99a ffff88012bc03dc8 ffffffff810e044c
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439068] 0000000000000092 0000000000000000 0000000000000000 ffff880125006000
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439074] Call Trace:
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439077] <IRQ>
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439081] [<ffffffff8102f85a>] arch_trigger_all_cpu_backtrace+0x6a/0x90
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439098] [<ffffffff810dc99a>] rcu_check_callbacks+0x21a/0x660
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439106] [<ffffffff810e044c>] ? acct_account_cputime+0x1c/0x20
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439113] [<ffffffff81053ee8>] update_process_times+0x48/0x80
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439122] [<ffffffff8109f2f6>] tick_sched_handle.isra.10+0x36/0x50
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439128] [<ffffffff8109f3fc>] tick_sched_timer+0x4c/0x80
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439136] [<ffffffff8106b01d>] __run_hrtimer+0x7d/0x220
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439142] [<ffffffff8109f3b0>] ? tick_nohz_handler+0xa0/0xa0
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439148] [<ffffffff8106b90f>] hrtimer_interrupt+0xff/0x240
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439155] [<ffffffff8102dd0b>] local_apic_timer_interrupt+0x3b/0x60
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439166] [<ffffffff815973e5>] smp_apic_timer_interrupt+0x45/0x60
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439172] [<ffffffff815961ca>] apic_timer_interrupt+0x6a/0x70
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439175] <EOI>
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439179] [<ffffffffa008ab0f>] ? bcma_erom_get_addr_desc.isra.7+0xf/0x90 [bcma]
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439200] [<ffffffffa008ae3c>] bcma_get_next_core+0x2ac/0x370 [bcma]
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439210] [<ffffffffa008b05b>] bcma_bus_scan+0xbb/0x310 [bcma]
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439221] [<ffffffffa008a40c>] bcma_bus_register+0x4c/0x4b0 [bcma]
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439232] [<ffffffffa008e8d4>] bcma_host_pci_probe+0x134/0x1d0 [bcma]
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439240] [<ffffffff813153f9>] pci_device_probe+0x99/0xe0
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439249] [<ffffffff813bfb2b>] driver_probe_device+0x7b/0x240
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439255] [<ffffffff813bfd9b>] __driver_attach+0xab/0xb0
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439262] [<ffffffff813bfcf0>] ? driver_probe_device+0x240/0x240
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439268] [<ffffffff813bde5e>] bus_for_each_dev+0x5e/0x90
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439274] [<ffffffff813bf62e>] driver_attach+0x1e/0x20
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439280] [<ffffffff813bf124>] bus_add_driver+0x104/0x270
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439286] [<ffffffff813c02dd>] driver_register+0x7d/0x160
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439293] [<ffffffff8131441b>] __pci_register_driver+0x4b/0x50
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439302] [<ffffffffa00a83e6>] bcma_host_pci_init+0x1e/0x20 [bcma]
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439311] [<ffffffffa00a8185>] bcma_modinit+0x1d/0x35 [bcma]
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439320] [<ffffffffa00a8168>] ? bcma_bus_early_register+0x168/0x168 [bcma]
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439328] [<ffffffff8100024e>] do_one_initcall+0x4e/0x170
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439336] [<ffffffff8106d393>] ? __blocking_notifier_call_chain+0x63/0x80
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439344] [<ffffffff810aaae8>] load_module+0x1308/0x1a50
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439350] [<ffffffff810a7d40>] ? show_initstate+0x50/0x50
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439357] [<ffffffff811464af>] ? alloc_vmap_area.isra.19+0x25f/0x310
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439365] [<ffffffff810ab2dc>] SyS_init_module+0xac/0xd0
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439372] [<ffffffff81595602>] system_call_fastpath+0x16/0x1b
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439375] Code: 2e 0f 1f 84 00 00 00 00 00 55 48 8d 04 bd 00 00 00 00 65 48 8b 14 25 a0 25 01 00 48 8d 0c 12 48 c1 e2 06 48 89 e5 48 29 ca f7 e2 <48> 8d 7a 01 ff 15 7c 60 77 00 5d c3 66 90 66 66 66 66 90 55 65
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439434] NMI backtrace for cpu 2
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439442] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G O 3.11.0-rc5-wl-testing-x64-00002-g079f98c-dirty #1
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439446] Hardware name: Dell Inc. Latitude E6410/07XJP9, BIOS A07 02/15/2011
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439449] task: ffff880127138000 ti: ffff880127132000 task.ti: ffff880127132000
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439453] RIP: 0010:[<ffffffff81342e27>] [<ffffffff81342e27>] intel_idle+0xa7/0x100
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439463] RSP: 0018:ffff880127133db8 EFLAGS: 00000046
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439466] RAX: 0000000000000020 RBX: 0000000000000008 RCX: 0000000000000001
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439470] RDX: 0000000000000000 RSI: ffff880127133fd8 RDI: 0000000000000002
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439473] RBP: ffff880127133de8 R08: 0000000000000009 R09: 0000000000000019
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439476] R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000004
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439480] R13: 0000000000000020 R14: 0000000000000003 R15: 0000000000000004
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439484] FS: 0000000000000000(0000) GS:ffff88012bc80000(0000) knlGS:0000000000000000
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439488] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439491] CR2: 0000000000be46f0 CR3: 0000000001a0b000 CR4: 00000000000007e0
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439494] Stack:
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439496] ffff880127133de8 00000002810967e4 ffff88012bc99800 00000fa97738ebfe
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439502] ffffffff81a6cbb8 ffffffff81a6ca40 ffff880127133e48 ffffffff8147749f
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439508] 0000000000000000 0000000000f2b044 0000000000000000 0000000000f2b044
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439513] Call Trace:
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439523] [<ffffffff8147749f>] cpuidle_enter_state+0x4f/0xe0
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439529] [<ffffffff814775fe>] cpuidle_idle_call+0xce/0x230
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439538] [<ffffffff8100b1de>] arch_cpu_idle+0xe/0x30
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439545] [<ffffffff81094ede>] cpu_startup_entry+0xce/0x290
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439552] [<ffffffff8102c57d>] start_secondary+0x1cd/0x230
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439555] Code: 28 e0 ff ff 83 e2 08 75 22 31 d2 48 83 c0 10 48 89 d1 0f 01 c8 0f ae f0 48 8b 86 38 e0 ff ff a8 08 75 08 b1 01 4c 89 e8 0f 01 c9 <85> 1d ab 9f 72 00 75 0e 48 8d 75 dc bf 05 00 00 00 e8 93 a4 d5
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439612] NMI backtrace for cpu 1
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439621] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G O 3.11.0-rc5-wl-testing-x64-00002-g079f98c-dirty #1
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439625] Hardware name: Dell Inc. Latitude E6410/07XJP9, BIOS A07 02/15/2011
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439638] task: ffff880127105b40 ti: ffff880127130000 task.ti: ffff880127130000
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439649] RIP: 0010:[<ffffffff81342e27>] [<ffffffff81342e27>] intel_idle+0xa7/0x100
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439674] RSP: 0018:ffff880127131db8 EFLAGS: 00000046
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439687] RAX: 0000000000000020 RBX: 0000000000000008 RCX: 0000000000000001
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439697] RDX: 0000000000000000 RSI: ffff880127131fd8 RDI: 0000000000000001
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439710] RBP: ffff880127131de8 R08: 0000000000000019 R09: 00000000000000c4
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439721] R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000004
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439733] R13: 0000000000000020 R14: 0000000000000003 R15: 0000000000000004
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439746] FS: 0000000000000000(0000) GS:ffff88012bc40000(0000) knlGS:0000000000000000
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439759] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439771] CR2: 00007f5ec7d9b000 CR3: 0000000001a0b000 CR4: 00000000000007e0
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439780] Stack:
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439787] ffff880127131de8 00000001810967e4 ffff88012bc59800 00000fa97738f6ca
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439793] ffffffff81a6cbb8 ffffffff81a6ca40 ffff880127131e48 ffffffff8147749f
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439799] 0000000000000000 0000000000f29705 0000000000000000 0000000000f29705
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439805] Call Trace:
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439814] [<ffffffff8147749f>] cpuidle_enter_state+0x4f/0xe0
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439822] [<ffffffff814775fe>] cpuidle_idle_call+0xce/0x230
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439829] [<ffffffff8100b1de>] arch_cpu_idle+0xe/0x30
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439836] [<ffffffff81094ede>] cpu_startup_entry+0xce/0x290
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439843] [<ffffffff8102c57d>] start_secondary+0x1cd/0x230
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439847] Code: 28 e0 ff ff 83 e2 08 75 22 31 d2 48 83 c0 10 48 89 d1 0f 01 c8 0f ae f0 48 8b 86 38 e0 ff ff a8 08 75 08 b1 01 4c 89 e8 0f 01 c9 <85> 1d ab 9f 72 00 75 0e 48 8d 75 dc bf 05 00 00 00 e8 93 a4 d5
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439905] NMI backtrace for cpu 3
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439913] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G O 3.11.0-rc5-wl-testing-x64-00002-g079f98c-dirty #1
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439915] Hardware name: Dell Inc. Latitude E6410/07XJP9, BIOS A07 02/15/2011
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439918] task: ffff8801271396d0 ti: ffff880127134000 task.ti: ffff880127134000
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439921] RIP: 0010:[<ffffffff81342e27>] [<ffffffff81342e27>] intel_idle+0xa7/0x100
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439927] RSP: 0018:ffff880127135db8 EFLAGS: 00000046
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439930] RAX: 0000000000000020 RBX: 0000000000000008 RCX: 0000000000000001
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439932] RDX: 0000000000000000 RSI: ffff880127135fd8 RDI: 0000000000000003
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439935] RBP: ffff880127135de8 R08: 0000000000000e79 R09: 00000000001a62c9
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439937] R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000004
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439939] R13: 0000000000000020 R14: 0000000000000003 R15: 0000000000000004
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439942] FS: 0000000000000000(0000) GS:ffff88012bcc0000(0000) knlGS:0000000000000000
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439945] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439948] CR2: 0000000000bff54e CR3: 0000000001a0b000 CR4: 00000000000007e0
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439950] Stack:
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439952] ffff880127135de8 00000003810967e4 ffff88012bcd9800 00000fa97738df12
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439956] ffffffff81a6cbb8 ffffffff81a6ca40 ffff880127135e48 ffffffff8147749f
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439960] 0000000000000000 00000000003b7c0c 0000000000000000 00000000003b7c0c
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439964] Call Trace:
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439970] [<ffffffff8147749f>] cpuidle_enter_state+0x4f/0xe0
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439975] [<ffffffff814775fe>] cpuidle_idle_call+0xce/0x230
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439980] [<ffffffff8100b1de>] arch_cpu_idle+0xe/0x30
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439984] [<ffffffff81094ede>] cpu_startup_entry+0xce/0x290
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439989] [<ffffffff8102c57d>] start_secondary+0x1cd/0x230
Sep 4 20:20:13 lb-bun-21 kernel: [17237.439992] Code: 28 e0 ff ff 83 e2 08 75 22 31 d2 48 83 c0 10 48 89 d1 0f 01 c8 0f ae f0 48 8b 86 38 e0 ff ff a8 08 75 08 b1 01 4c 89 e8 0f 01 c9 <85> 1d ab 9f 72 00 75 0e 48 8d 75 dc bf 05 00 00 00 e8 93 a4 d5
^ permalink raw reply
* [PATCH] ath9k: replace snprintf() with scnprintf()
From: Zefir Kurtisi @ 2013-09-05 12:11 UTC (permalink / raw)
To: linville; +Cc: linux-wireless, ath9k-devel, Zefir Kurtisi
Whenever the return value of snprintf() is used to calculate
remaining buffer-space, we wanted to use sncprintf() instead.
Indentation is adapted where possible. Some lines exceed the
line width limit, either they did it already before, or
since they can not be broken reasonably well.
Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
---
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | 12 +-
drivers/net/wireless/ath/ath9k/ath9k.h | 4 +-
drivers/net/wireless/ath/ath9k/debug.c | 446 ++++++++++++------------
drivers/net/wireless/ath/ath9k/debug.h | 12 +-
drivers/net/wireless/ath/ath9k/dfs_debug.c | 25 +-
drivers/net/wireless/ath/ath9k/eeprom_4k.c | 10 +-
drivers/net/wireless/ath/ath9k/eeprom_9287.c | 8 +-
drivers/net/wireless/ath/ath9k/eeprom_def.c | 12 +-
drivers/net/wireless/ath/ath9k/gpio.c | 22 +-
drivers/net/wireless/ath/ath9k/htc_drv_debug.c | 456 ++++++++++++-------------
drivers/net/wireless/ath/ath9k/hw.c | 22 +-
drivers/net/wireless/ath/ath9k/hw.h | 4 +-
drivers/net/wireless/ath/ath9k/rc.c | 32 +-
13 files changed, 534 insertions(+), 531 deletions(-)
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
index f486480..004af89 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
@@ -3424,12 +3424,12 @@ static u32 ath9k_hw_ar9003_dump_eeprom(struct ath_hw *ah, bool dump_base_hdr,
struct ar9300_base_eep_hdr *pBase;
if (!dump_base_hdr) {
- len += snprintf(buf + len, size - len,
- "%20s :\n", "2GHz modal Header");
+ len += scnprintf(buf + len, size - len,
+ "%20s :\n", "2GHz modal Header");
len = ar9003_dump_modal_eeprom(buf, len, size,
&eep->modalHeader2G);
- len += snprintf(buf + len, size - len,
- "%20s :\n", "5GHz modal Header");
+ len += scnprintf(buf + len, size - len,
+ "%20s :\n", "5GHz modal Header");
len = ar9003_dump_modal_eeprom(buf, len, size,
&eep->modalHeader5G);
goto out;
@@ -3479,8 +3479,8 @@ static u32 ath9k_hw_ar9003_dump_eeprom(struct ath_hw *ah, bool dump_base_hdr,
PR_EEP("Rx Gain", pBase->txrxgain & 0xf);
PR_EEP("SW Reg", le32_to_cpu(pBase->swreg));
- len += snprintf(buf + len, size - len, "%20s : %pM\n", "MacAddress",
- ah->eeprom.ar9300_eep.macAddr);
+ len += scnprintf(buf + len, size - len, "%20s : %pM\n", "MacAddress",
+ ah->eeprom.ar9300_eep.macAddr);
out:
if (len > size)
len = size;
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h
index 2ee35f6..2f19bd6 100644
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
@@ -459,8 +459,8 @@ void ath9k_queue_reset(struct ath_softc *sc, enum ath_reset_type type);
#define ATH_DUMP_BTCOEX(_s, _val) \
do { \
- len += snprintf(buf + len, size - len, \
- "%20s : %10d\n", _s, (_val)); \
+ len += scnprintf(buf + len, size - len, \
+ "%20s : %10d\n", _s, (_val)); \
} while (0)
enum bt_op_flags {
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c
index c088744..1be2c78 100644
--- a/drivers/net/wireless/ath/ath9k/debug.c
+++ b/drivers/net/wireless/ath/ath9k/debug.c
@@ -104,37 +104,37 @@ static ssize_t read_file_ani(struct file *file, char __user *user_buf,
return -ENOMEM;
if (common->disable_ani) {
- len += snprintf(buf + len, size - len, "%s: %s\n",
- "ANI", "DISABLED");
+ len += scnprintf(buf + len, size - len, "%s: %s\n",
+ "ANI", "DISABLED");
goto exit;
}
- len += snprintf(buf + len, size - len, "%15s: %s\n",
- "ANI", "ENABLED");
- len += snprintf(buf + len, size - len, "%15s: %u\n",
- "ANI RESET", ah->stats.ast_ani_reset);
- len += snprintf(buf + len, size - len, "%15s: %u\n",
- "SPUR UP", ah->stats.ast_ani_spurup);
- len += snprintf(buf + len, size - len, "%15s: %u\n",
- "SPUR DOWN", ah->stats.ast_ani_spurup);
- len += snprintf(buf + len, size - len, "%15s: %u\n",
- "OFDM WS-DET ON", ah->stats.ast_ani_ofdmon);
- len += snprintf(buf + len, size - len, "%15s: %u\n",
- "OFDM WS-DET OFF", ah->stats.ast_ani_ofdmoff);
- len += snprintf(buf + len, size - len, "%15s: %u\n",
- "MRC-CCK ON", ah->stats.ast_ani_ccklow);
- len += snprintf(buf + len, size - len, "%15s: %u\n",
- "MRC-CCK OFF", ah->stats.ast_ani_cckhigh);
- len += snprintf(buf + len, size - len, "%15s: %u\n",
- "FIR-STEP UP", ah->stats.ast_ani_stepup);
- len += snprintf(buf + len, size - len, "%15s: %u\n",
- "FIR-STEP DOWN", ah->stats.ast_ani_stepdown);
- len += snprintf(buf + len, size - len, "%15s: %u\n",
- "INV LISTENTIME", ah->stats.ast_ani_lneg_or_lzero);
- len += snprintf(buf + len, size - len, "%15s: %u\n",
- "OFDM ERRORS", ah->stats.ast_ani_ofdmerrs);
- len += snprintf(buf + len, size - len, "%15s: %u\n",
- "CCK ERRORS", ah->stats.ast_ani_cckerrs);
+ len += scnprintf(buf + len, size - len, "%15s: %s\n",
+ "ANI", "ENABLED");
+ len += scnprintf(buf + len, size - len, "%15s: %u\n",
+ "ANI RESET", ah->stats.ast_ani_reset);
+ len += scnprintf(buf + len, size - len, "%15s: %u\n",
+ "SPUR UP", ah->stats.ast_ani_spurup);
+ len += scnprintf(buf + len, size - len, "%15s: %u\n",
+ "SPUR DOWN", ah->stats.ast_ani_spurup);
+ len += scnprintf(buf + len, size - len, "%15s: %u\n",
+ "OFDM WS-DET ON", ah->stats.ast_ani_ofdmon);
+ len += scnprintf(buf + len, size - len, "%15s: %u\n",
+ "OFDM WS-DET OFF", ah->stats.ast_ani_ofdmoff);
+ len += scnprintf(buf + len, size - len, "%15s: %u\n",
+ "MRC-CCK ON", ah->stats.ast_ani_ccklow);
+ len += scnprintf(buf + len, size - len, "%15s: %u\n",
+ "MRC-CCK OFF", ah->stats.ast_ani_cckhigh);
+ len += scnprintf(buf + len, size - len, "%15s: %u\n",
+ "FIR-STEP UP", ah->stats.ast_ani_stepup);
+ len += scnprintf(buf + len, size - len, "%15s: %u\n",
+ "FIR-STEP DOWN", ah->stats.ast_ani_stepdown);
+ len += scnprintf(buf + len, size - len, "%15s: %u\n",
+ "INV LISTENTIME", ah->stats.ast_ani_lneg_or_lzero);
+ len += scnprintf(buf + len, size - len, "%15s: %u\n",
+ "OFDM ERRORS", ah->stats.ast_ani_ofdmerrs);
+ len += scnprintf(buf + len, size - len, "%15s: %u\n",
+ "CCK ERRORS", ah->stats.ast_ani_cckerrs);
exit:
if (len > size)
len = size;
@@ -280,70 +280,70 @@ static ssize_t read_file_antenna_diversity(struct file *file,
return -ENOMEM;
if (!(pCap->hw_caps & ATH9K_HW_CAP_ANT_DIV_COMB)) {
- len += snprintf(buf + len, size - len, "%s\n",
- "Antenna Diversity Combining is disabled");
+ len += scnprintf(buf + len, size - len, "%s\n",
+ "Antenna Diversity Combining is disabled");
goto exit;
}
ath9k_ps_wakeup(sc);
ath9k_hw_antdiv_comb_conf_get(ah, &div_ant_conf);
- len += snprintf(buf + len, size - len, "Current MAIN config : %s\n",
- lna_conf_str[div_ant_conf.main_lna_conf]);
- len += snprintf(buf + len, size - len, "Current ALT config : %s\n",
- lna_conf_str[div_ant_conf.alt_lna_conf]);
- len += snprintf(buf + len, size - len, "Average MAIN RSSI : %d\n",
- as_main->rssi_avg);
- len += snprintf(buf + len, size - len, "Average ALT RSSI : %d\n\n",
- as_alt->rssi_avg);
+ len += scnprintf(buf + len, size - len, "Current MAIN config : %s\n",
+ lna_conf_str[div_ant_conf.main_lna_conf]);
+ len += scnprintf(buf + len, size - len, "Current ALT config : %s\n",
+ lna_conf_str[div_ant_conf.alt_lna_conf]);
+ len += scnprintf(buf + len, size - len, "Average MAIN RSSI : %d\n",
+ as_main->rssi_avg);
+ len += scnprintf(buf + len, size - len, "Average ALT RSSI : %d\n\n",
+ as_alt->rssi_avg);
ath9k_ps_restore(sc);
- len += snprintf(buf + len, size - len, "Packet Receive Cnt:\n");
- len += snprintf(buf + len, size - len, "-------------------\n");
-
- len += snprintf(buf + len, size - len, "%30s%15s\n",
- "MAIN", "ALT");
- len += snprintf(buf + len, size - len, "%-14s:%15d%15d\n",
- "TOTAL COUNT",
- as_main->recv_cnt,
- as_alt->recv_cnt);
- len += snprintf(buf + len, size - len, "%-14s:%15d%15d\n",
- "LNA1",
- as_main->lna_recv_cnt[ATH_ANT_DIV_COMB_LNA1],
- as_alt->lna_recv_cnt[ATH_ANT_DIV_COMB_LNA1]);
- len += snprintf(buf + len, size - len, "%-14s:%15d%15d\n",
- "LNA2",
- as_main->lna_recv_cnt[ATH_ANT_DIV_COMB_LNA2],
- as_alt->lna_recv_cnt[ATH_ANT_DIV_COMB_LNA2]);
- len += snprintf(buf + len, size - len, "%-14s:%15d%15d\n",
- "LNA1 + LNA2",
- as_main->lna_recv_cnt[ATH_ANT_DIV_COMB_LNA1_PLUS_LNA2],
- as_alt->lna_recv_cnt[ATH_ANT_DIV_COMB_LNA1_PLUS_LNA2]);
- len += snprintf(buf + len, size - len, "%-14s:%15d%15d\n",
- "LNA1 - LNA2",
- as_main->lna_recv_cnt[ATH_ANT_DIV_COMB_LNA1_MINUS_LNA2],
- as_alt->lna_recv_cnt[ATH_ANT_DIV_COMB_LNA1_MINUS_LNA2]);
-
- len += snprintf(buf + len, size - len, "\nLNA Config Attempts:\n");
- len += snprintf(buf + len, size - len, "--------------------\n");
-
- len += snprintf(buf + len, size - len, "%30s%15s\n",
- "MAIN", "ALT");
- len += snprintf(buf + len, size - len, "%-14s:%15d%15d\n",
- "LNA1",
- as_main->lna_attempt_cnt[ATH_ANT_DIV_COMB_LNA1],
- as_alt->lna_attempt_cnt[ATH_ANT_DIV_COMB_LNA1]);
- len += snprintf(buf + len, size - len, "%-14s:%15d%15d\n",
- "LNA2",
- as_main->lna_attempt_cnt[ATH_ANT_DIV_COMB_LNA2],
- as_alt->lna_attempt_cnt[ATH_ANT_DIV_COMB_LNA2]);
- len += snprintf(buf + len, size - len, "%-14s:%15d%15d\n",
- "LNA1 + LNA2",
- as_main->lna_attempt_cnt[ATH_ANT_DIV_COMB_LNA1_PLUS_LNA2],
- as_alt->lna_attempt_cnt[ATH_ANT_DIV_COMB_LNA1_PLUS_LNA2]);
- len += snprintf(buf + len, size - len, "%-14s:%15d%15d\n",
- "LNA1 - LNA2",
- as_main->lna_attempt_cnt[ATH_ANT_DIV_COMB_LNA1_MINUS_LNA2],
- as_alt->lna_attempt_cnt[ATH_ANT_DIV_COMB_LNA1_MINUS_LNA2]);
+ len += scnprintf(buf + len, size - len, "Packet Receive Cnt:\n");
+ len += scnprintf(buf + len, size - len, "-------------------\n");
+
+ len += scnprintf(buf + len, size - len, "%30s%15s\n",
+ "MAIN", "ALT");
+ len += scnprintf(buf + len, size - len, "%-14s:%15d%15d\n",
+ "TOTAL COUNT",
+ as_main->recv_cnt,
+ as_alt->recv_cnt);
+ len += scnprintf(buf + len, size - len, "%-14s:%15d%15d\n",
+ "LNA1",
+ as_main->lna_recv_cnt[ATH_ANT_DIV_COMB_LNA1],
+ as_alt->lna_recv_cnt[ATH_ANT_DIV_COMB_LNA1]);
+ len += scnprintf(buf + len, size - len, "%-14s:%15d%15d\n",
+ "LNA2",
+ as_main->lna_recv_cnt[ATH_ANT_DIV_COMB_LNA2],
+ as_alt->lna_recv_cnt[ATH_ANT_DIV_COMB_LNA2]);
+ len += scnprintf(buf + len, size - len, "%-14s:%15d%15d\n",
+ "LNA1 + LNA2",
+ as_main->lna_recv_cnt[ATH_ANT_DIV_COMB_LNA1_PLUS_LNA2],
+ as_alt->lna_recv_cnt[ATH_ANT_DIV_COMB_LNA1_PLUS_LNA2]);
+ len += scnprintf(buf + len, size - len, "%-14s:%15d%15d\n",
+ "LNA1 - LNA2",
+ as_main->lna_recv_cnt[ATH_ANT_DIV_COMB_LNA1_MINUS_LNA2],
+ as_alt->lna_recv_cnt[ATH_ANT_DIV_COMB_LNA1_MINUS_LNA2]);
+
+ len += scnprintf(buf + len, size - len, "\nLNA Config Attempts:\n");
+ len += scnprintf(buf + len, size - len, "--------------------\n");
+
+ len += scnprintf(buf + len, size - len, "%30s%15s\n",
+ "MAIN", "ALT");
+ len += scnprintf(buf + len, size - len, "%-14s:%15d%15d\n",
+ "LNA1",
+ as_main->lna_attempt_cnt[ATH_ANT_DIV_COMB_LNA1],
+ as_alt->lna_attempt_cnt[ATH_ANT_DIV_COMB_LNA1]);
+ len += scnprintf(buf + len, size - len, "%-14s:%15d%15d\n",
+ "LNA2",
+ as_main->lna_attempt_cnt[ATH_ANT_DIV_COMB_LNA2],
+ as_alt->lna_attempt_cnt[ATH_ANT_DIV_COMB_LNA2]);
+ len += scnprintf(buf + len, size - len, "%-14s:%15d%15d\n",
+ "LNA1 + LNA2",
+ as_main->lna_attempt_cnt[ATH_ANT_DIV_COMB_LNA1_PLUS_LNA2],
+ as_alt->lna_attempt_cnt[ATH_ANT_DIV_COMB_LNA1_PLUS_LNA2]);
+ len += scnprintf(buf + len, size - len, "%-14s:%15d%15d\n",
+ "LNA1 - LNA2",
+ as_main->lna_attempt_cnt[ATH_ANT_DIV_COMB_LNA1_MINUS_LNA2],
+ as_alt->lna_attempt_cnt[ATH_ANT_DIV_COMB_LNA1_MINUS_LNA2]);
exit:
if (len > size)
@@ -385,21 +385,21 @@ static ssize_t read_file_dma(struct file *file, char __user *user_buf,
(AR_MACMISC_MISC_OBS_BUS_1 <<
AR_MACMISC_MISC_OBS_BUS_MSB_S)));
- len += snprintf(buf + len, DMA_BUF_LEN - len,
- "Raw DMA Debug values:\n");
+ len += scnprintf(buf + len, DMA_BUF_LEN - len,
+ "Raw DMA Debug values:\n");
for (i = 0; i < ATH9K_NUM_DMA_DEBUG_REGS; i++) {
if (i % 4 == 0)
- len += snprintf(buf + len, DMA_BUF_LEN - len, "\n");
+ len += scnprintf(buf + len, DMA_BUF_LEN - len, "\n");
val[i] = REG_READ_D(ah, AR_DMADBG_0 + (i * sizeof(u32)));
- len += snprintf(buf + len, DMA_BUF_LEN - len, "%d: %08x ",
- i, val[i]);
+ len += scnprintf(buf + len, DMA_BUF_LEN - len, "%d: %08x ",
+ i, val[i]);
}
- len += snprintf(buf + len, DMA_BUF_LEN - len, "\n\n");
- len += snprintf(buf + len, DMA_BUF_LEN - len,
- "Num QCU: chain_st fsp_ok fsp_st DCU: chain_st\n");
+ len += scnprintf(buf + len, DMA_BUF_LEN - len, "\n\n");
+ len += scnprintf(buf + len, DMA_BUF_LEN - len,
+ "Num QCU: chain_st fsp_ok fsp_st DCU: chain_st\n");
for (i = 0; i < ATH9K_NUM_QUEUES; i++, qcuOffset += 4, dcuOffset += 5) {
if (i == 8) {
@@ -412,39 +412,39 @@ static ssize_t read_file_dma(struct file *file, char __user *user_buf,
dcuBase++;
}
- len += snprintf(buf + len, DMA_BUF_LEN - len,
- "%2d %2x %1x %2x %2x\n",
- i, (*qcuBase & (0x7 << qcuOffset)) >> qcuOffset,
- (*qcuBase & (0x8 << qcuOffset)) >> (qcuOffset + 3),
- val[2] & (0x7 << (i * 3)) >> (i * 3),
- (*dcuBase & (0x1f << dcuOffset)) >> dcuOffset);
+ len += scnprintf(buf + len, DMA_BUF_LEN - len,
+ "%2d %2x %1x %2x %2x\n",
+ i, (*qcuBase & (0x7 << qcuOffset)) >> qcuOffset,
+ (*qcuBase & (0x8 << qcuOffset)) >> (qcuOffset + 3),
+ val[2] & (0x7 << (i * 3)) >> (i * 3),
+ (*dcuBase & (0x1f << dcuOffset)) >> dcuOffset);
}
- len += snprintf(buf + len, DMA_BUF_LEN - len, "\n");
+ len += scnprintf(buf + len, DMA_BUF_LEN - len, "\n");
- len += snprintf(buf + len, DMA_BUF_LEN - len,
+ len += scnprintf(buf + len, DMA_BUF_LEN - len,
"qcu_stitch state: %2x qcu_fetch state: %2x\n",
(val[3] & 0x003c0000) >> 18, (val[3] & 0x03c00000) >> 22);
- len += snprintf(buf + len, DMA_BUF_LEN - len,
+ len += scnprintf(buf + len, DMA_BUF_LEN - len,
"qcu_complete state: %2x dcu_complete state: %2x\n",
(val[3] & 0x1c000000) >> 26, (val[6] & 0x3));
- len += snprintf(buf + len, DMA_BUF_LEN - len,
+ len += scnprintf(buf + len, DMA_BUF_LEN - len,
"dcu_arb state: %2x dcu_fp state: %2x\n",
(val[5] & 0x06000000) >> 25, (val[5] & 0x38000000) >> 27);
- len += snprintf(buf + len, DMA_BUF_LEN - len,
+ len += scnprintf(buf + len, DMA_BUF_LEN - len,
"chan_idle_dur: %3d chan_idle_dur_valid: %1d\n",
(val[6] & 0x000003fc) >> 2, (val[6] & 0x00000400) >> 10);
- len += snprintf(buf + len, DMA_BUF_LEN - len,
+ len += scnprintf(buf + len, DMA_BUF_LEN - len,
"txfifo_valid_0: %1d txfifo_valid_1: %1d\n",
(val[6] & 0x00000800) >> 11, (val[6] & 0x00001000) >> 12);
- len += snprintf(buf + len, DMA_BUF_LEN - len,
+ len += scnprintf(buf + len, DMA_BUF_LEN - len,
"txfifo_dcu_num_0: %2d txfifo_dcu_num_1: %2d\n",
(val[6] & 0x0001e000) >> 13, (val[6] & 0x001e0000) >> 17);
- len += snprintf(buf + len, DMA_BUF_LEN - len, "pcu observe: 0x%x\n",
- REG_READ_D(ah, AR_OBS_BUS_1));
- len += snprintf(buf + len, DMA_BUF_LEN - len,
- "AR_CR: 0x%x\n", REG_READ_D(ah, AR_CR));
+ len += scnprintf(buf + len, DMA_BUF_LEN - len, "pcu observe: 0x%x\n",
+ REG_READ_D(ah, AR_OBS_BUS_1));
+ len += scnprintf(buf + len, DMA_BUF_LEN - len,
+ "AR_CR: 0x%x\n", REG_READ_D(ah, AR_CR));
ath9k_ps_restore(sc);
@@ -530,9 +530,9 @@ static ssize_t read_file_interrupt(struct file *file, char __user *user_buf,
#define PR_IS(a, s) \
do { \
- len += snprintf(buf + len, mxlen - len, \
- "%21s: %10u\n", a, \
- sc->debug.stats.istats.s); \
+ len += scnprintf(buf + len, mxlen - len, \
+ "%21s: %10u\n", a, \
+ sc->debug.stats.istats.s); \
} while (0)
if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_EDMA) {
@@ -563,8 +563,8 @@ static ssize_t read_file_interrupt(struct file *file, char __user *user_buf,
PR_IS("GENTIMER", gen_timer);
PR_IS("TOTAL", total);
- len += snprintf(buf + len, mxlen - len,
- "SYNC_CAUSE stats:\n");
+ len += scnprintf(buf + len, mxlen - len,
+ "SYNC_CAUSE stats:\n");
PR_IS("Sync-All", sync_cause_all);
PR_IS("RTC-IRQ", sync_rtc_irq);
@@ -655,16 +655,16 @@ static ssize_t print_queue(struct ath_softc *sc, struct ath_txq *txq,
ath_txq_lock(sc, txq);
- len += snprintf(buf + len, size - len, "%s: %d ",
- "qnum", txq->axq_qnum);
- len += snprintf(buf + len, size - len, "%s: %2d ",
- "qdepth", txq->axq_depth);
- len += snprintf(buf + len, size - len, "%s: %2d ",
- "ampdu-depth", txq->axq_ampdu_depth);
- len += snprintf(buf + len, size - len, "%s: %3d ",
- "pending", txq->pending_frames);
- len += snprintf(buf + len, size - len, "%s: %d\n",
- "stopped", txq->stopped);
+ len += scnprintf(buf + len, size - len, "%s: %d ",
+ "qnum", txq->axq_qnum);
+ len += scnprintf(buf + len, size - len, "%s: %2d ",
+ "qdepth", txq->axq_depth);
+ len += scnprintf(buf + len, size - len, "%s: %2d ",
+ "ampdu-depth", txq->axq_ampdu_depth);
+ len += scnprintf(buf + len, size - len, "%s: %3d ",
+ "pending", txq->pending_frames);
+ len += scnprintf(buf + len, size - len, "%s: %d\n",
+ "stopped", txq->stopped);
ath_txq_unlock(sc, txq);
return len;
@@ -687,11 +687,11 @@ static ssize_t read_file_queues(struct file *file, char __user *user_buf,
for (i = 0; i < IEEE80211_NUM_ACS; i++) {
txq = sc->tx.txq_map[i];
- len += snprintf(buf + len, size - len, "(%s): ", qname[i]);
+ len += scnprintf(buf + len, size - len, "(%s): ", qname[i]);
len += print_queue(sc, txq, buf + len, size - len);
}
- len += snprintf(buf + len, size - len, "(CAB): ");
+ len += scnprintf(buf + len, size - len, "(CAB): ");
len += print_queue(sc, sc->beacon.cabq, buf + len, size - len);
if (len > size)
@@ -716,80 +716,82 @@ static ssize_t read_file_misc(struct file *file, char __user *user_buf,
unsigned int reg;
u32 rxfilter;
- len += snprintf(buf + len, sizeof(buf) - len,
- "BSSID: %pM\n", common->curbssid);
- len += snprintf(buf + len, sizeof(buf) - len,
- "BSSID-MASK: %pM\n", common->bssidmask);
- len += snprintf(buf + len, sizeof(buf) - len,
- "OPMODE: %s\n", ath_opmode_to_string(sc->sc_ah->opmode));
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "BSSID: %pM\n", common->curbssid);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "BSSID-MASK: %pM\n", common->bssidmask);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "OPMODE: %s\n",
+ ath_opmode_to_string(sc->sc_ah->opmode));
ath9k_ps_wakeup(sc);
rxfilter = ath9k_hw_getrxfilter(sc->sc_ah);
ath9k_ps_restore(sc);
- len += snprintf(buf + len, sizeof(buf) - len,
- "RXFILTER: 0x%x", rxfilter);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "RXFILTER: 0x%x", rxfilter);
if (rxfilter & ATH9K_RX_FILTER_UCAST)
- len += snprintf(buf + len, sizeof(buf) - len, " UCAST");
+ len += scnprintf(buf + len, sizeof(buf) - len, " UCAST");
if (rxfilter & ATH9K_RX_FILTER_MCAST)
- len += snprintf(buf + len, sizeof(buf) - len, " MCAST");
+ len += scnprintf(buf + len, sizeof(buf) - len, " MCAST");
if (rxfilter & ATH9K_RX_FILTER_BCAST)
- len += snprintf(buf + len, sizeof(buf) - len, " BCAST");
+ len += scnprintf(buf + len, sizeof(buf) - len, " BCAST");
if (rxfilter & ATH9K_RX_FILTER_CONTROL)
- len += snprintf(buf + len, sizeof(buf) - len, " CONTROL");
+ len += scnprintf(buf + len, sizeof(buf) - len, " CONTROL");
if (rxfilter & ATH9K_RX_FILTER_BEACON)
- len += snprintf(buf + len, sizeof(buf) - len, " BEACON");
+ len += scnprintf(buf + len, sizeof(buf) - len, " BEACON");
if (rxfilter & ATH9K_RX_FILTER_PROM)
- len += snprintf(buf + len, sizeof(buf) - len, " PROM");
+ len += scnprintf(buf + len, sizeof(buf) - len, " PROM");
if (rxfilter & ATH9K_RX_FILTER_PROBEREQ)
- len += snprintf(buf + len, sizeof(buf) - len, " PROBEREQ");
+ len += scnprintf(buf + len, sizeof(buf) - len, " PROBEREQ");
if (rxfilter & ATH9K_RX_FILTER_PHYERR)
- len += snprintf(buf + len, sizeof(buf) - len, " PHYERR");
+ len += scnprintf(buf + len, sizeof(buf) - len, " PHYERR");
if (rxfilter & ATH9K_RX_FILTER_MYBEACON)
- len += snprintf(buf + len, sizeof(buf) - len, " MYBEACON");
+ len += scnprintf(buf + len, sizeof(buf) - len, " MYBEACON");
if (rxfilter & ATH9K_RX_FILTER_COMP_BAR)
- len += snprintf(buf + len, sizeof(buf) - len, " COMP_BAR");
+ len += scnprintf(buf + len, sizeof(buf) - len, " COMP_BAR");
if (rxfilter & ATH9K_RX_FILTER_PSPOLL)
- len += snprintf(buf + len, sizeof(buf) - len, " PSPOLL");
+ len += scnprintf(buf + len, sizeof(buf) - len, " PSPOLL");
if (rxfilter & ATH9K_RX_FILTER_PHYRADAR)
- len += snprintf(buf + len, sizeof(buf) - len, " PHYRADAR");
+ len += scnprintf(buf + len, sizeof(buf) - len, " PHYRADAR");
if (rxfilter & ATH9K_RX_FILTER_MCAST_BCAST_ALL)
- len += snprintf(buf + len, sizeof(buf) - len, " MCAST_BCAST_ALL");
+ len += scnprintf(buf + len, sizeof(buf) - len, " MCAST_BCAST_ALL");
if (rxfilter & ATH9K_RX_FILTER_CONTROL_WRAPPER)
- len += snprintf(buf + len, sizeof(buf) - len, " CONTROL_WRAPPER");
+ len += scnprintf(buf + len, sizeof(buf) - len, " CONTROL_WRAPPER");
- len += snprintf(buf + len, sizeof(buf) - len, "\n");
+ len += scnprintf(buf + len, sizeof(buf) - len, "\n");
reg = sc->sc_ah->imask;
- len += snprintf(buf + len, sizeof(buf) - len, "INTERRUPT-MASK: 0x%x", reg);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "INTERRUPT-MASK: 0x%x", reg);
if (reg & ATH9K_INT_SWBA)
- len += snprintf(buf + len, sizeof(buf) - len, " SWBA");
+ len += scnprintf(buf + len, sizeof(buf) - len, " SWBA");
if (reg & ATH9K_INT_BMISS)
- len += snprintf(buf + len, sizeof(buf) - len, " BMISS");
+ len += scnprintf(buf + len, sizeof(buf) - len, " BMISS");
if (reg & ATH9K_INT_CST)
- len += snprintf(buf + len, sizeof(buf) - len, " CST");
+ len += scnprintf(buf + len, sizeof(buf) - len, " CST");
if (reg & ATH9K_INT_RX)
- len += snprintf(buf + len, sizeof(buf) - len, " RX");
+ len += scnprintf(buf + len, sizeof(buf) - len, " RX");
if (reg & ATH9K_INT_RXHP)
- len += snprintf(buf + len, sizeof(buf) - len, " RXHP");
+ len += scnprintf(buf + len, sizeof(buf) - len, " RXHP");
if (reg & ATH9K_INT_RXLP)
- len += snprintf(buf + len, sizeof(buf) - len, " RXLP");
+ len += scnprintf(buf + len, sizeof(buf) - len, " RXLP");
if (reg & ATH9K_INT_BB_WATCHDOG)
- len += snprintf(buf + len, sizeof(buf) - len, " BB_WATCHDOG");
+ len += scnprintf(buf + len, sizeof(buf) - len, " BB_WATCHDOG");
- len += snprintf(buf + len, sizeof(buf) - len, "\n");
+ len += scnprintf(buf + len, sizeof(buf) - len, "\n");
ath9k_calculate_iter_data(hw, NULL, &iter_data);
- len += snprintf(buf + len, sizeof(buf) - len,
- "VIF-COUNTS: AP: %i STA: %i MESH: %i WDS: %i"
- " ADHOC: %i TOTAL: %hi BEACON-VIF: %hi\n",
- iter_data.naps, iter_data.nstations, iter_data.nmeshes,
- iter_data.nwds, iter_data.nadhocs,
- sc->nvifs, sc->nbcnvifs);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "VIF-COUNTS: AP: %i STA: %i MESH: %i WDS: %i"
+ " ADHOC: %i TOTAL: %hi BEACON-VIF: %hi\n",
+ iter_data.naps, iter_data.nstations, iter_data.nmeshes,
+ iter_data.nwds, iter_data.nadhocs,
+ sc->nvifs, sc->nbcnvifs);
if (len > sizeof(buf))
len = sizeof(buf);
@@ -805,27 +807,27 @@ static ssize_t read_file_reset(struct file *file, char __user *user_buf,
char buf[512];
unsigned int len = 0;
- len += snprintf(buf + len, sizeof(buf) - len,
- "%17s: %2d\n", "Baseband Hang",
- sc->debug.stats.reset[RESET_TYPE_BB_HANG]);
- len += snprintf(buf + len, sizeof(buf) - len,
- "%17s: %2d\n", "Baseband Watchdog",
- sc->debug.stats.reset[RESET_TYPE_BB_WATCHDOG]);
- len += snprintf(buf + len, sizeof(buf) - len,
- "%17s: %2d\n", "Fatal HW Error",
- sc->debug.stats.reset[RESET_TYPE_FATAL_INT]);
- len += snprintf(buf + len, sizeof(buf) - len,
- "%17s: %2d\n", "TX HW error",
- sc->debug.stats.reset[RESET_TYPE_TX_ERROR]);
- len += snprintf(buf + len, sizeof(buf) - len,
- "%17s: %2d\n", "TX Path Hang",
- sc->debug.stats.reset[RESET_TYPE_TX_HANG]);
- len += snprintf(buf + len, sizeof(buf) - len,
- "%17s: %2d\n", "PLL RX Hang",
- sc->debug.stats.reset[RESET_TYPE_PLL_HANG]);
- len += snprintf(buf + len, sizeof(buf) - len,
- "%17s: %2d\n", "MCI Reset",
- sc->debug.stats.reset[RESET_TYPE_MCI]);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%17s: %2d\n", "Baseband Hang",
+ sc->debug.stats.reset[RESET_TYPE_BB_HANG]);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%17s: %2d\n", "Baseband Watchdog",
+ sc->debug.stats.reset[RESET_TYPE_BB_WATCHDOG]);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%17s: %2d\n", "Fatal HW Error",
+ sc->debug.stats.reset[RESET_TYPE_FATAL_INT]);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%17s: %2d\n", "TX HW error",
+ sc->debug.stats.reset[RESET_TYPE_TX_ERROR]);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%17s: %2d\n", "TX Path Hang",
+ sc->debug.stats.reset[RESET_TYPE_TX_HANG]);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%17s: %2d\n", "PLL RX Hang",
+ sc->debug.stats.reset[RESET_TYPE_PLL_HANG]);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%17s: %2d\n", "MCI Reset",
+ sc->debug.stats.reset[RESET_TYPE_MCI]);
if (len > sizeof(buf))
len = sizeof(buf);
@@ -902,14 +904,14 @@ static ssize_t read_file_recv(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{
#define PHY_ERR(s, p) \
- len += snprintf(buf + len, size - len, "%22s : %10u\n", s, \
- sc->debug.stats.rxstats.phy_err_stats[p]);
+ len += scnprintf(buf + len, size - len, "%22s : %10u\n", s, \
+ sc->debug.stats.rxstats.phy_err_stats[p]);
#define RXS_ERR(s, e) \
do { \
- len += snprintf(buf + len, size - len, \
- "%22s : %10u\n", s, \
- sc->debug.stats.rxstats.e); \
+ len += scnprintf(buf + len, size - len, \
+ "%22s : %10u\n", s, \
+ sc->debug.stats.rxstats.e);\
} while (0)
struct ath_softc *sc = file->private_data;
@@ -1439,22 +1441,22 @@ static ssize_t read_file_dump_nfcal(struct file *file, char __user *user_buf,
if (!buf)
return -ENOMEM;
- len += snprintf(buf + len, size - len,
- "Channel Noise Floor : %d\n", ah->noise);
- len += snprintf(buf + len, size - len,
- "Chain | privNF | # Readings | NF Readings\n");
+ len += scnprintf(buf + len, size - len,
+ "Channel Noise Floor : %d\n", ah->noise);
+ len += scnprintf(buf + len, size - len,
+ "Chain | privNF | # Readings | NF Readings\n");
for (i = 0; i < NUM_NF_READINGS; i++) {
if (!(chainmask & (1 << i)) ||
((i >= AR5416_MAX_CHAINS) && !conf_is_ht40(conf)))
continue;
nread = AR_PHY_CCA_FILTERWINDOW_LENGTH - h[i].invalidNFcount;
- len += snprintf(buf + len, size - len, " %d\t %d\t %d\t\t",
- i, h[i].privNF, nread);
+ len += scnprintf(buf + len, size - len, " %d\t %d\t %d\t\t",
+ i, h[i].privNF, nread);
for (j = 0; j < nread; j++)
- len += snprintf(buf + len, size - len,
- " %d", h[i].nfCalBuffer[j]);
- len += snprintf(buf + len, size - len, "\n");
+ len += scnprintf(buf + len, size - len,
+ " %d", h[i].nfCalBuffer[j]);
+ len += scnprintf(buf + len, size - len, "\n");
}
if (len > size)
@@ -1543,8 +1545,8 @@ static ssize_t read_file_btcoex(struct file *file, char __user *user_buf,
return -ENOMEM;
if (!sc->sc_ah->common.btcoex_enabled) {
- len = snprintf(buf, size, "%s\n",
- "BTCOEX is disabled");
+ len = scnprintf(buf, size, "%s\n",
+ "BTCOEX is disabled");
goto exit;
}
@@ -1582,43 +1584,43 @@ static ssize_t read_file_node_stat(struct file *file, char __user *user_buf,
return -ENOMEM;
if (!an->sta->ht_cap.ht_supported) {
- len = snprintf(buf, size, "%s\n",
- "HT not supported");
+ len = scnprintf(buf, size, "%s\n",
+ "HT not supported");
goto exit;
}
- len = snprintf(buf, size, "Max-AMPDU: %d\n",
- an->maxampdu);
- len += snprintf(buf + len, size - len, "MPDU Density: %d\n\n",
- an->mpdudensity);
+ len = scnprintf(buf, size, "Max-AMPDU: %d\n",
+ an->maxampdu);
+ len += scnprintf(buf + len, size - len, "MPDU Density: %d\n\n",
+ an->mpdudensity);
- len += snprintf(buf + len, size - len,
- "%2s%7s\n", "AC", "SCHED");
+ len += scnprintf(buf + len, size - len,
+ "%2s%7s\n", "AC", "SCHED");
for (acno = 0, ac = &an->ac[acno];
acno < IEEE80211_NUM_ACS; acno++, ac++) {
txq = ac->txq;
ath_txq_lock(sc, txq);
- len += snprintf(buf + len, size - len,
- "%2d%7d\n",
- acno, ac->sched);
+ len += scnprintf(buf + len, size - len,
+ "%2d%7d\n",
+ acno, ac->sched);
ath_txq_unlock(sc, txq);
}
- len += snprintf(buf + len, size - len,
- "\n%3s%11s%10s%10s%10s%10s%9s%6s%8s\n",
- "TID", "SEQ_START", "SEQ_NEXT", "BAW_SIZE",
- "BAW_HEAD", "BAW_TAIL", "BAR_IDX", "SCHED", "PAUSED");
+ len += scnprintf(buf + len, size - len,
+ "\n%3s%11s%10s%10s%10s%10s%9s%6s%8s\n",
+ "TID", "SEQ_START", "SEQ_NEXT", "BAW_SIZE",
+ "BAW_HEAD", "BAW_TAIL", "BAR_IDX", "SCHED", "PAUSED");
for (tidno = 0, tid = &an->tid[tidno];
tidno < IEEE80211_NUM_TIDS; tidno++, tid++) {
txq = tid->ac->txq;
ath_txq_lock(sc, txq);
- len += snprintf(buf + len, size - len,
- "%3d%11d%10d%10d%10d%10d%9d%6d%8d\n",
- tid->tidno, tid->seq_start, tid->seq_next,
- tid->baw_size, tid->baw_head, tid->baw_tail,
- tid->bar_index, tid->sched, tid->paused);
+ len += scnprintf(buf + len, size - len,
+ "%3d%11d%10d%10d%10d%10d%9d%6d%8d\n",
+ tid->tidno, tid->seq_start, tid->seq_next,
+ tid->baw_size, tid->baw_head, tid->baw_tail,
+ tid->bar_index, tid->sched, tid->paused);
ath_txq_unlock(sc, txq);
}
exit:
diff --git a/drivers/net/wireless/ath/ath9k/debug.h b/drivers/net/wireless/ath/ath9k/debug.h
index 6e1556f..d6e3fa4 100644
--- a/drivers/net/wireless/ath/ath9k/debug.h
+++ b/drivers/net/wireless/ath/ath9k/debug.h
@@ -193,12 +193,12 @@ struct ath_tx_stats {
#define TXSTATS sc->debug.stats.txstats
#define PR(str, elem) \
do { \
- len += snprintf(buf + len, size - len, \
- "%s%13u%11u%10u%10u\n", str, \
- TXSTATS[PR_QNUM(IEEE80211_AC_BE)].elem, \
- TXSTATS[PR_QNUM(IEEE80211_AC_BK)].elem, \
- TXSTATS[PR_QNUM(IEEE80211_AC_VI)].elem, \
- TXSTATS[PR_QNUM(IEEE80211_AC_VO)].elem); \
+ len += scnprintf(buf + len, size - len, \
+ "%s%13u%11u%10u%10u\n", str, \
+ TXSTATS[PR_QNUM(IEEE80211_AC_BE)].elem,\
+ TXSTATS[PR_QNUM(IEEE80211_AC_BK)].elem,\
+ TXSTATS[PR_QNUM(IEEE80211_AC_VI)].elem,\
+ TXSTATS[PR_QNUM(IEEE80211_AC_VO)].elem); \
} while(0)
#define RX_STAT_INC(c) (sc->debug.stats.rxstats.c++)
diff --git a/drivers/net/wireless/ath/ath9k/dfs_debug.c b/drivers/net/wireless/ath/ath9k/dfs_debug.c
index 1aa0d92..371b999 100644
--- a/drivers/net/wireless/ath/ath9k/dfs_debug.c
+++ b/drivers/net/wireless/ath/ath9k/dfs_debug.c
@@ -25,11 +25,11 @@
struct ath_dfs_pool_stats global_dfs_pool_stats = { 0 };
#define ATH9K_DFS_STAT(s, p) \
- len += snprintf(buf + len, size - len, "%28s : %10u\n", s, \
- sc->debug.stats.dfs_stats.p);
+ len += scnprintf(buf + len, size - len, "%28s : %10u\n", s, \
+ sc->debug.stats.dfs_stats.p);
#define ATH9K_DFS_POOL_STAT(s, p) \
- len += snprintf(buf + len, size - len, "%28s : %10u\n", s, \
- global_dfs_pool_stats.p);
+ len += scnprintf(buf + len, size - len, "%28s : %10u\n", s, \
+ global_dfs_pool_stats.p);
static ssize_t read_file_dfs(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
@@ -44,12 +44,12 @@ static ssize_t read_file_dfs(struct file *file, char __user *user_buf,
if (buf == NULL)
return -ENOMEM;
- len += snprintf(buf + len, size - len, "DFS support for "
- "macVersion = 0x%x, macRev = 0x%x: %s\n",
- hw_ver->macVersion, hw_ver->macRev,
- (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_DFS) ?
+ len += scnprintf(buf + len, size - len, "DFS support for "
+ "macVersion = 0x%x, macRev = 0x%x: %s\n",
+ hw_ver->macVersion, hw_ver->macRev,
+ (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_DFS) ?
"enabled" : "disabled");
- len += snprintf(buf + len, size - len, "Pulse detector statistics:\n");
+ len += scnprintf(buf + len, size - len, "Pulse detector statistics:\n");
ATH9K_DFS_STAT("pulse events reported ", pulses_total);
ATH9K_DFS_STAT("invalid pulse events ", pulses_no_dfs);
ATH9K_DFS_STAT("DFS pulses detected ", pulses_detected);
@@ -59,11 +59,12 @@ static ssize_t read_file_dfs(struct file *file, char __user *user_buf,
ATH9K_DFS_STAT("Primary channel pulses ", pri_phy_errors);
ATH9K_DFS_STAT("Secondary channel pulses", ext_phy_errors);
ATH9K_DFS_STAT("Dual channel pulses ", dc_phy_errors);
- len += snprintf(buf + len, size - len, "Radar detector statistics "
- "(current DFS region: %d)\n", sc->dfs_detector->region);
+ len += scnprintf(buf + len, size - len, "Radar detector statistics "
+ "(current DFS region: %d)\n",
+ sc->dfs_detector->region);
ATH9K_DFS_STAT("Pulse events processed ", pulses_processed);
ATH9K_DFS_STAT("Radars detected ", radar_detected);
- len += snprintf(buf + len, size - len, "Global Pool statistics:\n");
+ len += scnprintf(buf + len, size - len, "Global Pool statistics:\n");
ATH9K_DFS_POOL_STAT("Pool references ", pool_reference);
ATH9K_DFS_POOL_STAT("Pulses allocated ", pulse_allocated);
ATH9K_DFS_POOL_STAT("Pulses alloc error ", pulse_alloc_error);
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_4k.c b/drivers/net/wireless/ath/ath9k/eeprom_4k.c
index 9ea8e4b..b409171 100644
--- a/drivers/net/wireless/ath/ath9k/eeprom_4k.c
+++ b/drivers/net/wireless/ath/ath9k/eeprom_4k.c
@@ -129,10 +129,10 @@ static u32 ath9k_hw_4k_dump_eeprom(struct ath_hw *ah, bool dump_base_hdr,
struct base_eep_header_4k *pBase = &eep->baseEepHeader;
if (!dump_base_hdr) {
- len += snprintf(buf + len, size - len,
- "%20s :\n", "2GHz modal Header");
+ len += scnprintf(buf + len, size - len,
+ "%20s :\n", "2GHz modal Header");
len = ath9k_dump_4k_modal_eeprom(buf, len, size,
- &eep->modalHeader);
+ &eep->modalHeader);
goto out;
}
@@ -160,8 +160,8 @@ static u32 ath9k_hw_4k_dump_eeprom(struct ath_hw *ah, bool dump_base_hdr,
PR_EEP("Cal Bin Build", (pBase->binBuildNumber >> 8) & 0xFF);
PR_EEP("TX Gain type", pBase->txGainType);
- len += snprintf(buf + len, size - len, "%20s : %pM\n", "MacAddress",
- pBase->macAddr);
+ len += scnprintf(buf + len, size - len, "%20s : %pM\n", "MacAddress",
+ pBase->macAddr);
out:
if (len > size)
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_9287.c b/drivers/net/wireless/ath/ath9k/eeprom_9287.c
index 3ae1f3d..e1d0c21 100644
--- a/drivers/net/wireless/ath/ath9k/eeprom_9287.c
+++ b/drivers/net/wireless/ath/ath9k/eeprom_9287.c
@@ -125,8 +125,8 @@ static u32 ath9k_hw_ar9287_dump_eeprom(struct ath_hw *ah, bool dump_base_hdr,
struct base_eep_ar9287_header *pBase = &eep->baseEepHeader;
if (!dump_base_hdr) {
- len += snprintf(buf + len, size - len,
- "%20s :\n", "2GHz modal Header");
+ len += scnprintf(buf + len, size - len,
+ "%20s :\n", "2GHz modal Header");
len = ar9287_dump_modal_eeprom(buf, len, size,
&eep->modalHeader);
goto out;
@@ -157,8 +157,8 @@ static u32 ath9k_hw_ar9287_dump_eeprom(struct ath_hw *ah, bool dump_base_hdr,
PR_EEP("Power Table Offset", pBase->pwrTableOffset);
PR_EEP("OpenLoop Power Ctrl", pBase->openLoopPwrCntl);
- len += snprintf(buf + len, size - len, "%20s : %pM\n", "MacAddress",
- pBase->macAddr);
+ len += scnprintf(buf + len, size - len, "%20s : %pM\n", "MacAddress",
+ pBase->macAddr);
out:
if (len > size)
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_def.c b/drivers/net/wireless/ath/ath9k/eeprom_def.c
index 1c25368..39107e3 100644
--- a/drivers/net/wireless/ath/ath9k/eeprom_def.c
+++ b/drivers/net/wireless/ath/ath9k/eeprom_def.c
@@ -205,12 +205,12 @@ static u32 ath9k_hw_def_dump_eeprom(struct ath_hw *ah, bool dump_base_hdr,
struct base_eep_header *pBase = &eep->baseEepHeader;
if (!dump_base_hdr) {
- len += snprintf(buf + len, size - len,
- "%20s :\n", "2GHz modal Header");
+ len += scnprintf(buf + len, size - len,
+ "%20s :\n", "2GHz modal Header");
len = ath9k_def_dump_modal_eeprom(buf, len, size,
&eep->modalHeader[0]);
- len += snprintf(buf + len, size - len,
- "%20s :\n", "5GHz modal Header");
+ len += scnprintf(buf + len, size - len,
+ "%20s :\n", "5GHz modal Header");
len = ath9k_def_dump_modal_eeprom(buf, len, size,
&eep->modalHeader[1]);
goto out;
@@ -240,8 +240,8 @@ static u32 ath9k_hw_def_dump_eeprom(struct ath_hw *ah, bool dump_base_hdr,
PR_EEP("Cal Bin Build", (pBase->binBuildNumber >> 8) & 0xFF);
PR_EEP("OpenLoop Power Ctrl", pBase->openLoopPwrCntl);
- len += snprintf(buf + len, size - len, "%20s : %pM\n", "MacAddress",
- pBase->macAddr);
+ len += scnprintf(buf + len, size - len, "%20s : %pM\n", "MacAddress",
+ pBase->macAddr);
out:
if (len > size)
diff --git a/drivers/net/wireless/ath/ath9k/gpio.c b/drivers/net/wireless/ath/ath9k/gpio.c
index 4b412aa..c34f212 100644
--- a/drivers/net/wireless/ath/ath9k/gpio.c
+++ b/drivers/net/wireless/ath/ath9k/gpio.c
@@ -522,22 +522,22 @@ static int ath9k_dump_mci_btcoex(struct ath_softc *sc, u8 *buf, u32 size)
ATH_DUMP_BTCOEX("Concurrent Tx", btcoex_hw->mci.concur_tx);
ATH_DUMP_BTCOEX("Concurrent RSSI cnt", btcoex->rssi_count);
- len += snprintf(buf + len, size - len, "BT Weights: ");
+ len += scnprintf(buf + len, size - len, "BT Weights: ");
for (i = 0; i < AR9300_NUM_BT_WEIGHTS; i++)
- len += snprintf(buf + len, size - len, "%08x ",
- btcoex_hw->bt_weight[i]);
- len += snprintf(buf + len, size - len, "\n");
- len += snprintf(buf + len, size - len, "WLAN Weights: ");
+ len += scnprintf(buf + len, size - len, "%08x ",
+ btcoex_hw->bt_weight[i]);
+ len += scnprintf(buf + len, size - len, "\n");
+ len += scnprintf(buf + len, size - len, "WLAN Weights: ");
for (i = 0; i < AR9300_NUM_BT_WEIGHTS; i++)
- len += snprintf(buf + len, size - len, "%08x ",
- btcoex_hw->wlan_weight[i]);
- len += snprintf(buf + len, size - len, "\n");
- len += snprintf(buf + len, size - len, "Tx Priorities: ");
+ len += scnprintf(buf + len, size - len, "%08x ",
+ btcoex_hw->wlan_weight[i]);
+ len += scnprintf(buf + len, size - len, "\n");
+ len += scnprintf(buf + len, size - len, "Tx Priorities: ");
for (i = 0; i < ATH_BTCOEX_STOMP_MAX; i++)
- len += snprintf(buf + len, size - len, "%08x ",
+ len += scnprintf(buf + len, size - len, "%08x ",
btcoex_hw->tx_prio[i]);
- len += snprintf(buf + len, size - len, "\n");
+ len += scnprintf(buf + len, size - len, "\n");
return len;
}
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_debug.c b/drivers/net/wireless/ath/ath9k/htc_drv_debug.c
index c1b45e2..fb071ee 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_debug.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_debug.c
@@ -37,29 +37,29 @@ static ssize_t read_file_tgt_int_stats(struct file *file, char __user *user_buf,
ath9k_htc_ps_restore(priv);
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "RX",
- be32_to_cpu(cmd_rsp.rx));
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "RX",
+ be32_to_cpu(cmd_rsp.rx));
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "RXORN",
- be32_to_cpu(cmd_rsp.rxorn));
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "RXORN",
+ be32_to_cpu(cmd_rsp.rxorn));
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "RXEOL",
- be32_to_cpu(cmd_rsp.rxeol));
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "RXEOL",
+ be32_to_cpu(cmd_rsp.rxeol));
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "TXURN",
- be32_to_cpu(cmd_rsp.txurn));
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "TXURN",
+ be32_to_cpu(cmd_rsp.txurn));
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "TXTO",
- be32_to_cpu(cmd_rsp.txto));
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "TXTO",
+ be32_to_cpu(cmd_rsp.txto));
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "CST",
- be32_to_cpu(cmd_rsp.cst));
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "CST",
+ be32_to_cpu(cmd_rsp.cst));
if (len > sizeof(buf))
len = sizeof(buf);
@@ -95,41 +95,41 @@ static ssize_t read_file_tgt_tx_stats(struct file *file, char __user *user_buf,
ath9k_htc_ps_restore(priv);
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "Xretries",
- be32_to_cpu(cmd_rsp.xretries));
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "Xretries",
+ be32_to_cpu(cmd_rsp.xretries));
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "FifoErr",
- be32_to_cpu(cmd_rsp.fifoerr));
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "FifoErr",
+ be32_to_cpu(cmd_rsp.fifoerr));
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "Filtered",
- be32_to_cpu(cmd_rsp.filtered));
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "Filtered",
+ be32_to_cpu(cmd_rsp.filtered));
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "TimerExp",
- be32_to_cpu(cmd_rsp.timer_exp));
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "TimerExp",
+ be32_to_cpu(cmd_rsp.timer_exp));
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "ShortRetries",
- be32_to_cpu(cmd_rsp.shortretries));
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "ShortRetries",
+ be32_to_cpu(cmd_rsp.shortretries));
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "LongRetries",
- be32_to_cpu(cmd_rsp.longretries));
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "LongRetries",
+ be32_to_cpu(cmd_rsp.longretries));
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "QueueNull",
- be32_to_cpu(cmd_rsp.qnull));
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "QueueNull",
+ be32_to_cpu(cmd_rsp.qnull));
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "EncapFail",
- be32_to_cpu(cmd_rsp.encap_fail));
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "EncapFail",
+ be32_to_cpu(cmd_rsp.encap_fail));
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "NoBuf",
- be32_to_cpu(cmd_rsp.nobuf));
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "NoBuf",
+ be32_to_cpu(cmd_rsp.nobuf));
if (len > sizeof(buf))
len = sizeof(buf);
@@ -165,17 +165,17 @@ static ssize_t read_file_tgt_rx_stats(struct file *file, char __user *user_buf,
ath9k_htc_ps_restore(priv);
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "NoBuf",
- be32_to_cpu(cmd_rsp.nobuf));
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "NoBuf",
+ be32_to_cpu(cmd_rsp.nobuf));
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "HostSend",
- be32_to_cpu(cmd_rsp.host_send));
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "HostSend",
+ be32_to_cpu(cmd_rsp.host_send));
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "HostDone",
- be32_to_cpu(cmd_rsp.host_done));
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "HostDone",
+ be32_to_cpu(cmd_rsp.host_done));
if (len > sizeof(buf))
len = sizeof(buf);
@@ -197,37 +197,37 @@ static ssize_t read_file_xmit(struct file *file, char __user *user_buf,
char buf[512];
unsigned int len = 0;
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "Buffers queued",
- priv->debug.tx_stats.buf_queued);
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "Buffers completed",
- priv->debug.tx_stats.buf_completed);
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "SKBs queued",
- priv->debug.tx_stats.skb_queued);
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "SKBs success",
- priv->debug.tx_stats.skb_success);
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "SKBs failed",
- priv->debug.tx_stats.skb_failed);
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "CAB queued",
- priv->debug.tx_stats.cab_queued);
-
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "BE queued",
- priv->debug.tx_stats.queue_stats[IEEE80211_AC_BE]);
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "BK queued",
- priv->debug.tx_stats.queue_stats[IEEE80211_AC_BK]);
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "VI queued",
- priv->debug.tx_stats.queue_stats[IEEE80211_AC_VI]);
- len += snprintf(buf + len, sizeof(buf) - len,
- "%20s : %10u\n", "VO queued",
- priv->debug.tx_stats.queue_stats[IEEE80211_AC_VO]);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "Buffers queued",
+ priv->debug.tx_stats.buf_queued);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "Buffers completed",
+ priv->debug.tx_stats.buf_completed);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "SKBs queued",
+ priv->debug.tx_stats.skb_queued);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "SKBs success",
+ priv->debug.tx_stats.skb_success);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "SKBs failed",
+ priv->debug.tx_stats.skb_failed);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "CAB queued",
+ priv->debug.tx_stats.cab_queued);
+
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "BE queued",
+ priv->debug.tx_stats.queue_stats[IEEE80211_AC_BE]);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "BK queued",
+ priv->debug.tx_stats.queue_stats[IEEE80211_AC_BK]);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "VI queued",
+ priv->debug.tx_stats.queue_stats[IEEE80211_AC_VI]);
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "%20s : %10u\n", "VO queued",
+ priv->debug.tx_stats.queue_stats[IEEE80211_AC_VO]);
if (len > sizeof(buf))
len = sizeof(buf);
@@ -273,8 +273,8 @@ static ssize_t read_file_recv(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{
#define PHY_ERR(s, p) \
- len += snprintf(buf + len, size - len, "%20s : %10u\n", s, \
- priv->debug.rx_stats.err_phy_stats[p]);
+ len += scnprintf(buf + len, size - len, "%20s : %10u\n", s, \
+ priv->debug.rx_stats.err_phy_stats[p]);
struct ath9k_htc_priv *priv = file->private_data;
char *buf;
@@ -285,37 +285,37 @@ static ssize_t read_file_recv(struct file *file, char __user *user_buf,
if (buf == NULL)
return -ENOMEM;
- len += snprintf(buf + len, size - len,
- "%20s : %10u\n", "SKBs allocated",
- priv->debug.rx_stats.skb_allocated);
- len += snprintf(buf + len, size - len,
- "%20s : %10u\n", "SKBs completed",
- priv->debug.rx_stats.skb_completed);
- len += snprintf(buf + len, size - len,
- "%20s : %10u\n", "SKBs Dropped",
- priv->debug.rx_stats.skb_dropped);
-
- len += snprintf(buf + len, size - len,
- "%20s : %10u\n", "CRC ERR",
- priv->debug.rx_stats.err_crc);
- len += snprintf(buf + len, size - len,
- "%20s : %10u\n", "DECRYPT CRC ERR",
- priv->debug.rx_stats.err_decrypt_crc);
- len += snprintf(buf + len, size - len,
- "%20s : %10u\n", "MIC ERR",
- priv->debug.rx_stats.err_mic);
- len += snprintf(buf + len, size - len,
- "%20s : %10u\n", "PRE-DELIM CRC ERR",
- priv->debug.rx_stats.err_pre_delim);
- len += snprintf(buf + len, size - len,
- "%20s : %10u\n", "POST-DELIM CRC ERR",
- priv->debug.rx_stats.err_post_delim);
- len += snprintf(buf + len, size - len,
- "%20s : %10u\n", "DECRYPT BUSY ERR",
- priv->debug.rx_stats.err_decrypt_busy);
- len += snprintf(buf + len, size - len,
- "%20s : %10u\n", "TOTAL PHY ERR",
- priv->debug.rx_stats.err_phy);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10u\n", "SKBs allocated",
+ priv->debug.rx_stats.skb_allocated);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10u\n", "SKBs completed",
+ priv->debug.rx_stats.skb_completed);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10u\n", "SKBs Dropped",
+ priv->debug.rx_stats.skb_dropped);
+
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10u\n", "CRC ERR",
+ priv->debug.rx_stats.err_crc);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10u\n", "DECRYPT CRC ERR",
+ priv->debug.rx_stats.err_decrypt_crc);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10u\n", "MIC ERR",
+ priv->debug.rx_stats.err_mic);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10u\n", "PRE-DELIM CRC ERR",
+ priv->debug.rx_stats.err_pre_delim);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10u\n", "POST-DELIM CRC ERR",
+ priv->debug.rx_stats.err_post_delim);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10u\n", "DECRYPT BUSY ERR",
+ priv->debug.rx_stats.err_decrypt_busy);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10u\n", "TOTAL PHY ERR",
+ priv->debug.rx_stats.err_phy);
PHY_ERR("UNDERRUN", ATH9K_PHYERR_UNDERRUN);
@@ -372,16 +372,16 @@ static ssize_t read_file_slot(struct file *file, char __user *user_buf,
spin_lock_bh(&priv->tx.tx_lock);
- len += snprintf(buf + len, sizeof(buf) - len, "TX slot bitmap : ");
+ len += scnprintf(buf + len, sizeof(buf) - len, "TX slot bitmap : ");
len += bitmap_scnprintf(buf + len, sizeof(buf) - len,
priv->tx.tx_slot, MAX_TX_BUF_NUM);
- len += snprintf(buf + len, sizeof(buf) - len, "\n");
+ len += scnprintf(buf + len, sizeof(buf) - len, "\n");
- len += snprintf(buf + len, sizeof(buf) - len,
- "Used slots : %d\n",
- bitmap_weight(priv->tx.tx_slot, MAX_TX_BUF_NUM));
+ len += scnprintf(buf + len, sizeof(buf) - len,
+ "Used slots : %d\n",
+ bitmap_weight(priv->tx.tx_slot, MAX_TX_BUF_NUM));
spin_unlock_bh(&priv->tx.tx_lock);
@@ -405,30 +405,30 @@ static ssize_t read_file_queue(struct file *file, char __user *user_buf,
char buf[512];
unsigned int len = 0;
- len += snprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n",
- "Mgmt endpoint", skb_queue_len(&priv->tx.mgmt_ep_queue));
+ len += scnprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n",
+ "Mgmt endpoint", skb_queue_len(&priv->tx.mgmt_ep_queue));
- len += snprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n",
- "Cab endpoint", skb_queue_len(&priv->tx.cab_ep_queue));
+ len += scnprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n",
+ "Cab endpoint", skb_queue_len(&priv->tx.cab_ep_queue));
- len += snprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n",
- "Data BE endpoint", skb_queue_len(&priv->tx.data_be_queue));
+ len += scnprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n",
+ "Data BE endpoint", skb_queue_len(&priv->tx.data_be_queue));
- len += snprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n",
- "Data BK endpoint", skb_queue_len(&priv->tx.data_bk_queue));
+ len += scnprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n",
+ "Data BK endpoint", skb_queue_len(&priv->tx.data_bk_queue));
- len += snprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n",
- "Data VI endpoint", skb_queue_len(&priv->tx.data_vi_queue));
+ len += scnprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n",
+ "Data VI endpoint", skb_queue_len(&priv->tx.data_vi_queue));
- len += snprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n",
- "Data VO endpoint", skb_queue_len(&priv->tx.data_vo_queue));
+ len += scnprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n",
+ "Data VO endpoint", skb_queue_len(&priv->tx.data_vo_queue));
- len += snprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n",
- "Failed queue", skb_queue_len(&priv->tx.tx_failed));
+ len += scnprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n",
+ "Failed queue", skb_queue_len(&priv->tx.tx_failed));
spin_lock_bh(&priv->tx.tx_lock);
- len += snprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n",
- "Queued count", priv->tx.queued_cnt);
+ len += scnprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n",
+ "Queued count", priv->tx.queued_cnt);
spin_unlock_bh(&priv->tx.tx_lock);
if (len > sizeof(buf))
@@ -507,70 +507,70 @@ static ssize_t read_file_base_eeprom(struct file *file, char __user *user_buf,
if (buf == NULL)
return -ENOMEM;
- len += snprintf(buf + len, size - len,
- "%20s : %10d\n", "Major Version",
- pBase->version >> 12);
- len += snprintf(buf + len, size - len,
- "%20s : %10d\n", "Minor Version",
- pBase->version & 0xFFF);
- len += snprintf(buf + len, size - len,
- "%20s : %10d\n", "Checksum",
- pBase->checksum);
- len += snprintf(buf + len, size - len,
- "%20s : %10d\n", "Length",
- pBase->length);
- len += snprintf(buf + len, size - len,
- "%20s : %10d\n", "RegDomain1",
- pBase->regDmn[0]);
- len += snprintf(buf + len, size - len,
- "%20s : %10d\n", "RegDomain2",
- pBase->regDmn[1]);
- len += snprintf(buf + len, size - len,
- "%20s : %10d\n",
- "TX Mask", pBase->txMask);
- len += snprintf(buf + len, size - len,
- "%20s : %10d\n",
- "RX Mask", pBase->rxMask);
- len += snprintf(buf + len, size - len,
- "%20s : %10d\n",
- "Allow 5GHz",
- !!(pBase->opCapFlags & AR5416_OPFLAGS_11A));
- len += snprintf(buf + len, size - len,
- "%20s : %10d\n",
- "Allow 2GHz",
- !!(pBase->opCapFlags & AR5416_OPFLAGS_11G));
- len += snprintf(buf + len, size - len,
- "%20s : %10d\n",
- "Disable 2GHz HT20",
- !!(pBase->opCapFlags & AR5416_OPFLAGS_N_2G_HT20));
- len += snprintf(buf + len, size - len,
- "%20s : %10d\n",
- "Disable 2GHz HT40",
- !!(pBase->opCapFlags & AR5416_OPFLAGS_N_2G_HT40));
- len += snprintf(buf + len, size - len,
- "%20s : %10d\n",
- "Disable 5Ghz HT20",
- !!(pBase->opCapFlags & AR5416_OPFLAGS_N_5G_HT20));
- len += snprintf(buf + len, size - len,
- "%20s : %10d\n",
- "Disable 5Ghz HT40",
- !!(pBase->opCapFlags & AR5416_OPFLAGS_N_5G_HT40));
- len += snprintf(buf + len, size - len,
- "%20s : %10d\n",
- "Big Endian",
- !!(pBase->eepMisc & 0x01));
- len += snprintf(buf + len, size - len,
- "%20s : %10d\n",
- "Cal Bin Major Ver",
- (pBase->binBuildNumber >> 24) & 0xFF);
- len += snprintf(buf + len, size - len,
- "%20s : %10d\n",
- "Cal Bin Minor Ver",
- (pBase->binBuildNumber >> 16) & 0xFF);
- len += snprintf(buf + len, size - len,
- "%20s : %10d\n",
- "Cal Bin Build",
- (pBase->binBuildNumber >> 8) & 0xFF);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10d\n", "Major Version",
+ pBase->version >> 12);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10d\n", "Minor Version",
+ pBase->version & 0xFFF);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10d\n", "Checksum",
+ pBase->checksum);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10d\n", "Length",
+ pBase->length);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10d\n", "RegDomain1",
+ pBase->regDmn[0]);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10d\n", "RegDomain2",
+ pBase->regDmn[1]);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10d\n",
+ "TX Mask", pBase->txMask);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10d\n",
+ "RX Mask", pBase->rxMask);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10d\n",
+ "Allow 5GHz",
+ !!(pBase->opCapFlags & AR5416_OPFLAGS_11A));
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10d\n",
+ "Allow 2GHz",
+ !!(pBase->opCapFlags & AR5416_OPFLAGS_11G));
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10d\n",
+ "Disable 2GHz HT20",
+ !!(pBase->opCapFlags & AR5416_OPFLAGS_N_2G_HT20));
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10d\n",
+ "Disable 2GHz HT40",
+ !!(pBase->opCapFlags & AR5416_OPFLAGS_N_2G_HT40));
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10d\n",
+ "Disable 5Ghz HT20",
+ !!(pBase->opCapFlags & AR5416_OPFLAGS_N_5G_HT20));
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10d\n",
+ "Disable 5Ghz HT40",
+ !!(pBase->opCapFlags & AR5416_OPFLAGS_N_5G_HT40));
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10d\n",
+ "Big Endian",
+ !!(pBase->eepMisc & 0x01));
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10d\n",
+ "Cal Bin Major Ver",
+ (pBase->binBuildNumber >> 24) & 0xFF);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10d\n",
+ "Cal Bin Minor Ver",
+ (pBase->binBuildNumber >> 16) & 0xFF);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10d\n",
+ "Cal Bin Build",
+ (pBase->binBuildNumber >> 8) & 0xFF);
/*
* UB91 specific data.
@@ -579,10 +579,10 @@ static ssize_t read_file_base_eeprom(struct file *file, char __user *user_buf,
struct base_eep_header_4k *pBase4k =
&priv->ah->eeprom.map4k.baseEepHeader;
- len += snprintf(buf + len, size - len,
- "%20s : %10d\n",
- "TX Gain type",
- pBase4k->txGainType);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10d\n",
+ "TX Gain type",
+ pBase4k->txGainType);
}
/*
@@ -592,19 +592,19 @@ static ssize_t read_file_base_eeprom(struct file *file, char __user *user_buf,
struct base_eep_ar9287_header *pBase9287 =
&priv->ah->eeprom.map9287.baseEepHeader;
- len += snprintf(buf + len, size - len,
- "%20s : %10ddB\n",
- "Power Table Offset",
- pBase9287->pwrTableOffset);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10ddB\n",
+ "Power Table Offset",
+ pBase9287->pwrTableOffset);
- len += snprintf(buf + len, size - len,
- "%20s : %10d\n",
- "OpenLoop Power Ctrl",
- pBase9287->openLoopPwrCntl);
+ len += scnprintf(buf + len, size - len,
+ "%20s : %10d\n",
+ "OpenLoop Power Ctrl",
+ pBase9287->openLoopPwrCntl);
}
- len += snprintf(buf + len, size - len, "%20s : %pM\n", "MacAddress",
- pBase->macAddr);
+ len += scnprintf(buf + len, size - len, "%20s : %pM\n", "MacAddress",
+ pBase->macAddr);
if (len > size)
len = size;
@@ -627,8 +627,8 @@ static ssize_t read_4k_modal_eeprom(struct file *file,
{
#define PR_EEP(_s, _val) \
do { \
- len += snprintf(buf + len, size - len, "%20s : %10d\n", \
- _s, (_val)); \
+ len += scnprintf(buf + len, size - len, "%20s : %10d\n",\
+ _s, (_val)); \
} while (0)
struct ath9k_htc_priv *priv = file->private_data;
@@ -708,12 +708,12 @@ static ssize_t read_def_modal_eeprom(struct file *file,
do { \
if (pBase->opCapFlags & AR5416_OPFLAGS_11G) { \
pModal = &priv->ah->eeprom.def.modalHeader[1]; \
- len += snprintf(buf + len, size - len, "%20s : %8d%7s", \
- _s, (_val), "|"); \
+ len += scnprintf(buf + len, size - len, "%20s : %8d%7s", \
+ _s, (_val), "|"); \
} \
if (pBase->opCapFlags & AR5416_OPFLAGS_11A) { \
pModal = &priv->ah->eeprom.def.modalHeader[0]; \
- len += snprintf(buf + len, size - len, "%9d\n", \
+ len += scnprintf(buf + len, size - len, "%9d\n",\
(_val)); \
} \
} while (0)
@@ -729,10 +729,10 @@ static ssize_t read_def_modal_eeprom(struct file *file,
if (buf == NULL)
return -ENOMEM;
- len += snprintf(buf + len, size - len,
- "%31s %15s\n", "2G", "5G");
- len += snprintf(buf + len, size - len,
- "%32s %16s\n", "====", "====\n");
+ len += scnprintf(buf + len, size - len,
+ "%31s %15s\n", "2G", "5G");
+ len += scnprintf(buf + len, size - len,
+ "%32s %16s\n", "====", "====\n");
PR_EEP("Chain0 Ant. Control", pModal->antCtrlChain[0]);
PR_EEP("Chain1 Ant. Control", pModal->antCtrlChain[1]);
@@ -814,8 +814,8 @@ static ssize_t read_9287_modal_eeprom(struct file *file,
{
#define PR_EEP(_s, _val) \
do { \
- len += snprintf(buf + len, size - len, "%20s : %10d\n", \
- _s, (_val)); \
+ len += scnprintf(buf + len, size - len, "%20s : %10d\n",\
+ _s, (_val)); \
} while (0)
struct ath9k_htc_priv *priv = file->private_data;
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index ecc6ec4..10d6c7b 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -3240,19 +3240,19 @@ void ath9k_hw_name(struct ath_hw *ah, char *hw_name, size_t len)
/* chipsets >= AR9280 are single-chip */
if (AR_SREV_9280_20_OR_LATER(ah)) {
- used = snprintf(hw_name, len,
- "Atheros AR%s Rev:%x",
- ath9k_hw_mac_bb_name(ah->hw_version.macVersion),
- ah->hw_version.macRev);
+ used = scnprintf(hw_name, len,
+ "Atheros AR%s Rev:%x",
+ ath9k_hw_mac_bb_name(ah->hw_version.macVersion),
+ ah->hw_version.macRev);
}
else {
- used = snprintf(hw_name, len,
- "Atheros AR%s MAC/BB Rev:%x AR%s RF Rev:%x",
- ath9k_hw_mac_bb_name(ah->hw_version.macVersion),
- ah->hw_version.macRev,
- ath9k_hw_rf_name((ah->hw_version.analog5GhzRev &
- AR_RADIO_SREV_MAJOR)),
- ah->hw_version.phyRev);
+ used = scnprintf(hw_name, len,
+ "Atheros AR%s MAC/BB Rev:%x AR%s RF Rev:%x",
+ ath9k_hw_mac_bb_name(ah->hw_version.macVersion),
+ ah->hw_version.macRev,
+ ath9k_hw_rf_name((ah->hw_version.analog5GhzRev
+ & AR_RADIO_SREV_MAJOR)),
+ ah->hw_version.phyRev);
}
hw_name[used] = '\0';
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h
index 69a907b..ab2f1ff 100644
--- a/drivers/net/wireless/ath/ath9k/hw.h
+++ b/drivers/net/wireless/ath/ath9k/hw.h
@@ -98,8 +98,8 @@
#define PR_EEP(_s, _val) \
do { \
- len += snprintf(buf + len, size - len, "%20s : %10d\n", \
- _s, (_val)); \
+ len += scnprintf(buf + len, size - len, "%20s : %10d\n",\
+ _s, (_val)); \
} while (0)
#define SM(_v, _f) (((_v) << _f##_S) & _f)
diff --git a/drivers/net/wireless/ath/ath9k/rc.c b/drivers/net/wireless/ath/ath9k/rc.c
index d3d7c51..d829bb6 100644
--- a/drivers/net/wireless/ath/ath9k/rc.c
+++ b/drivers/net/wireless/ath/ath9k/rc.c
@@ -1387,31 +1387,31 @@ static ssize_t read_file_rcstat(struct file *file, char __user *user_buf,
int used_mcs = 0, used_htmode = 0;
if (WLAN_RC_PHY_HT(rc->rate_table->info[i].phy)) {
- used_mcs = snprintf(mcs, 5, "%d",
- rc->rate_table->info[i].ratecode);
+ used_mcs = scnprintf(mcs, 5, "%d",
+ rc->rate_table->info[i].ratecode);
if (WLAN_RC_PHY_40(rc->rate_table->info[i].phy))
- used_htmode = snprintf(htmode, 5, "HT40");
+ used_htmode = scnprintf(htmode, 5, "HT40");
else if (WLAN_RC_PHY_20(rc->rate_table->info[i].phy))
- used_htmode = snprintf(htmode, 5, "HT20");
+ used_htmode = scnprintf(htmode, 5, "HT20");
else
- used_htmode = snprintf(htmode, 5, "????");
+ used_htmode = scnprintf(htmode, 5, "????");
}
mcs[used_mcs] = '\0';
htmode[used_htmode] = '\0';
- len += snprintf(buf + len, max - len,
- "%6s %6s %3u.%d: "
- "%10u %10u %10u %10u\n",
- htmode,
- mcs,
- ratekbps / 1000,
- (ratekbps % 1000) / 100,
- stats->success,
- stats->retries,
- stats->xretries,
- stats->per);
+ len += scnprintf(buf + len, max - len,
+ "%6s %6s %3u.%d: "
+ "%10u %10u %10u %10u\n",
+ htmode,
+ mcs,
+ ratekbps / 1000,
+ (ratekbps % 1000) / 100,
+ stats->success,
+ stats->retries,
+ stats->xretries,
+ stats->per);
}
if (len > max)
--
1.8.1.2
^ permalink raw reply related
* Error:ACS not working even after the Makefile and the configuration options are set.
From: Abbas Chunawala @ 2013-09-05 11:33 UTC (permalink / raw)
To: linux-wireless
Hi,
Greetings.
No ACS prints.
Instead an error
ath0 : IEEE 802.11 : Fetching channel rate/frequency not supported
The channel variable is set right in the configuration file.
How to get the acs prints.
The command for the hostapd invocation is a s follows:-
hostapd -B /tmp/secath0 -dd -e /etc/wpa2/entropy.
Thanks
Regards
Abbas Chunawala
(System Level Solutions (I) Pvt. Ltd. )
^ permalink raw reply
* Re: WARNING with ath9k_htc on TL-WN721N
From: Antonio Quartulli @ 2013-09-05 10:32 UTC (permalink / raw)
To: Oleksij Rempel; +Cc: ath9k-devel, linux-wireless
In-Reply-To: <52285C02.8050205@rempel-privat.de>
[-- Attachment #1: Type: text/plain, Size: 3713 bytes --]
lsusb:
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 1bcf:280b Sunplus Innovation Technology Inc.
Bus 002 Device 003: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Bus 002 Device 011: ID 03f0:8607 Hewlett-Packard Optical Mobile Mouse
Bus 002 Device 005: ID 0403:6001 Future Technology Devices International, Ltd
FT232 USB-Serial (UART) IC
Bus 002 Device 006: ID 413c:8187 Dell Computer Corp. DW375 Bluetooth Module
lspci:
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM
Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core
Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset
Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family
USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High
Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI
Express Root Port 1 (rev b4)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI
Express Root Port 2 (rev b4)
00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI
Express Root Port 3 (rev b4)
00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI
Express Root Port 6 (rev b4)
00:1c.6 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI
Express Root Port 7 (rev b4)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family
USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller
(rev 04)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6
port SATA AHCI Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus
Controller (rev 04)
02:00.0 Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor
Peak] (rev 34)
03:00.0 CardBus bridge: O2 Micro, Inc. Device 8134 (rev 06)
09:00.0 FireWire (IEEE 1394): O2 Micro, Inc. 1394 OHCI Compliant Host Controller
(rev 05)
09:00.1 SD Host controller: O2 Micro, Inc. Integrated MMC/SD controller (rev 05)
09:00.2 Mass storage controller: O2 Micro, Inc. O2 Flash Memory Card (rev 05)
0a:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5761 Gigabit
Ethernet PCIe (rev 10)
I'm not using the Intel card listed in lspci. (the iwldvm module is loaded but
the interface is down).
Cheers,
On Thu, Sep 05, 2013 at 12:25:06PM +0200, Oleksij Rempel wrote:
> Am 05.09.2013 12:09, schrieb Antonio Quartulli:
> > Hello list,
> >
> > I ma connected to my WPA2-PSK protected network and from time to time I get the
> > following warning in dmesg. I don't experience any malfunctionng but I thought
> > it was worth reporting. My kernel version is linux-3.10.10. I remember I've seen
> > this warning also with previous versions.
> >
> > The device I use is a TP-LINK TL-WN721N.
> > lsusb says:
> >
> > Bus 002 Device 003: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
> >
> > Cheers,
> >
>
> Hi Antonio,
>
> pleas send out of lsusb and lspci.
>
>
> --
> Regards,
> Oleksij
--
Antonio Quartulli
..each of us alone is worth nothing..
Ernesto "Che" Guevara
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply
* Re: WARNING with ath9k_htc on TL-WN721N
From: Oleksij Rempel @ 2013-09-05 10:25 UTC (permalink / raw)
To: Antonio Quartulli; +Cc: ath9k-devel, linux-wireless
In-Reply-To: <20130905100914.GA1570@ritirata.org>
Am 05.09.2013 12:09, schrieb Antonio Quartulli:
> Hello list,
>
> I ma connected to my WPA2-PSK protected network and from time to time I get the
> following warning in dmesg. I don't experience any malfunctionng but I thought
> it was worth reporting. My kernel version is linux-3.10.10. I remember I've seen
> this warning also with previous versions.
>
> The device I use is a TP-LINK TL-WN721N.
> lsusb says:
>
> Bus 002 Device 003: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
>
> Cheers,
>
Hi Antonio,
pleas send out of lsusb and lspci.
--
Regards,
Oleksij
^ permalink raw reply
* WARNING with ath9k_htc on TL-WN721N
From: Antonio Quartulli @ 2013-09-05 10:09 UTC (permalink / raw)
To: ath9k-devel, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 3595 bytes --]
Hello list,
I ma connected to my WPA2-PSK protected network and from time to time I get the
following warning in dmesg. I don't experience any malfunctionng but I thought
it was worth reporting. My kernel version is linux-3.10.10. I remember I've seen
this warning also with previous versions.
The device I use is a TP-LINK TL-WN721N.
lsusb says:
Bus 002 Device 003: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Cheers,
[ 7762.963117] ------------[ cut here ]------------
[ 7762.963127] WARNING: at drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:501
ath9k_htc_tx_process+0x36b/0x380 [ath9k_htc]()
[ 7762.963129] Modules linked in: usbhid btusb bluetooth ftdi_sio usbserial
ath9k_htc ath9k_common ath9k_hw ath acpi_cpufreq mperf kvm_intel kvm
crc32c_intel iwldvm mac80211 ghash_clmulni_intel snd_hda_codec_hdmi
snd_hda_codec_idt aesni_intel ehci_pci iwlwifi snd_hda_intel snd_hda_codec
ehci_hcd snd_hwdep cfg80211 aes_x86_64 snd_pcm snd_page_alloc snd_timer usbcore
snd lrw gf128mul lpc_ich glue_helper usb_common ablk_helper psmouse soundcore
cryptd
[ 7762.963159] CPU: 0 PID: 512 Comm: X Tainted: G W 3.10.10-gentoo #2
[ 7762.963161] Hardware name: Dell Inc. Latitude E5420/0675PR, BIOS A01
04/20/2011
[ 7762.963163] ffffffff814bf8ea ffffffff81034886 ffff8802249a9cf0
ffff880221bf17a0
[ 7762.963166] ffff880221bf1d50 0000000000000000 0000000000004188
ffffffffa05a316b
[ 7762.963169] ffffffffa05a2d9c 0000000000000000 ffff88022489860d
ffff880221bf17a0
[ 7762.963172] Call Trace:
[ 7762.963174] <IRQ> [<ffffffff814bf8ea>] ? dump_stack+0xc/0x15
[ 7762.963183] [<ffffffff81034886>] ? warn_slowpath_common+0x56/0x70
[ 7762.963187] [<ffffffffa05a316b>] ? ath9k_htc_tx_process+0x36b/0x380
[ath9k_htc]
[ 7762.963191] [<ffffffffa05a2d9c>] ? ath9k_htc_tx_get_packet+0x12c/0x190
[ath9k_htc]
[ 7762.963195] [<ffffffffa05a3a7e>] ? ath9k_htc_txstatus+0x2e/0x120 [ath9k_htc]
[ 7762.963198] [<ffffffffa05a274e>] ? ath9k_wmi_event_tasklet+0x12e/0x150
[ath9k_htc]
[ 7762.963202] [<ffffffff8103b44a>] ? tasklet_action+0x5a/0xc0
[ 7762.963205] [<ffffffff8103b9b6>] ? __do_softirq+0xd6/0x1b0
[ 7762.963209] [<ffffffff8103bbfd>] ? irq_exit+0xbd/0xd0
[ 7762.963212] [<ffffffff81004819>] ? do_IRQ+0x49/0xb0
[ 7762.963215] [<ffffffff814c51aa>] ? common_interrupt+0x6a/0x6a
[ 7762.963216] <EOI> [<ffffffff81080f62>] ? smp_call_function_many+0x222/0x280
[ 7762.963224] [<ffffffff812dc7c0>] ? i915_restore_state+0x960/0x960
[ 7762.963226] [<ffffffff812dc7c0>] ? i915_restore_state+0x960/0x960
[ 7762.963229] [<ffffffff81080fe9>] ? smp_call_function+0x29/0x60
[ 7762.963232] [<ffffffff81081041>] ? on_each_cpu+0x21/0x70
[ 7762.963235] [<ffffffff812dcd23>] ? i915_gem_object_update_fence+0xf3/0x100
[ 7762.963238] [<ffffffff812df18d>] ? i915_gem_object_get_fence+0x6d/0x1f0
[ 7762.963241] [<ffffffff812e12f0>] ? i915_gem_fault+0x1c0/0x210
[ 7762.963244] [<ffffffff810d6516>] ? __do_fault+0x66/0x4f0
[ 7762.963248] [<ffffffff812b57a5>] ? drm_gem_object_lookup+0x55/0xa0
[ 7762.963251] [<ffffffff810d92b7>] ? handle_pte_fault+0x87/0x850
[ 7762.963254] [<ffffffff8102a38d>] ? __do_page_fault+0x11d/0x440
[ 7762.963257] [<ffffffff810e0678>] ? do_mmap_pgoff+0x2f8/0x3b0
[ 7762.963261] [<ffffffff8106ac71>] ? cpuacct_account_field+0x11/0x60
[ 7762.963264] [<ffffffff8102a6f2>] ? do_page_fault+0x22/0x40
[ 7762.963267] [<ffffffff814c53e2>] ? page_fault+0x22/0x30
[ 7762.963269] ---[ end trace 3c536c5012f2e043 ]---
--
Antonio Quartulli
..each of us alone is worth nothing..
Ernesto "Che" Guevara
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply
* Re: [PATCH 2/2] qca-swiss-army-knife: add ath10k trace-cmd plugin
From: Joe Perches @ 2013-09-05 5:38 UTC (permalink / raw)
To: Kalle Valo; +Cc: Luis R. Rodriguez, linux-wireless
In-Reply-To: <87sixjrhan.fsf@kamboji.qca.qualcomm.com>
On Thu, 2013-09-05 at 08:03 +0300, Kalle Valo wrote:
> Joe Perches <joe@perches.com> writes:
>
> > On Thu, 2013-09-05 at 07:49 +0300, Kalle Valo wrote:
> >> "Luis R. Rodriguez" <rodrigue@qca.qualcomm.com> writes:
> >> > I just removed 3 trailing spaces on the 2 patches. One had two
> >> > trailing spaces, the last patch had one.
> >>
> >> Oh, sorry about that. Any ideas how I could check for those myself?
> >
> > scripts/checkpatch.pl <patch>
>
> Checkpatch works also with trace-cmd plugins written in python?
Don't see why not.
Trailing spaces are trailing spaces and the trailing
space test is done way before looking at file type
specific tests.
> > git am <patch>
>
> Yeah, I guess I could do that, it's just a bit inconvienient.
scripting a git am script for a patch
set is just a for loop...
You could also use scripts/cleanpatch
^ permalink raw reply
page: next (older) | prev (newer) | latest
- recent:[subjects (threaded)|topics (new)|topics (active)]
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox