04 Jun, 2010
1 commit
-
This patch reduces the binary size by around 25k (measured on MIPS,
with CONFIG_MAC80211_DEBUG_COUNTERS enabled).Signed-off-by: Felix Fietkau
Signed-off-by: John W. Linville
09 Feb, 2010
1 commit
-
This file helps debugging HT channels since it displays if we are on
ht20 or ht40+/ht40-Signed-off-by: Benoit Papillault
Signed-off-by: John W. Linville
13 Jan, 2010
1 commit
-
Because it's not yet decided how to configure which queues are U-APSD
enabled, add a debugfs interface for testing purposes.Signed-off-by: Kalle Valo
Signed-off-by: John W. Linville
19 Nov, 2009
1 commit
-
Some devices implement the entire rate control in
firmware in some way, like wl1271 or like iwlwifi
which does some things in software but not a lot.
Therefore generic software rate control is rather
useless for them and just adds avoidable overhead
to the transmit path.It's fairly simple to let drivers indicate that
they do not need rate control, but they need to
fulfil a number of conditions that we encode in
WARN_ONs.Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville
31 Oct, 2009
1 commit
-
We can save a lot of code and pointers in the structs
by using debugfs_remove_recursive().First, change cfg80211 to use debugfs_remove_recursive()
so that drivers do not need to clean up any files they
added to the per-wiphy debugfs (if and only if they are
ok to be accessed until after wiphy_unregister!).Then also make mac80211 use debugfs_remove_recursive()
where necessary -- it need not remove per-wiphy files
as cfg80211 now removes those, but netdev etc. files
still need to be handled but can now be removed without
needing struct dentry pointers to all of them.Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville
25 Jul, 2009
1 commit
-
With the internal 'pending' queue system in place, we can simply
put packets there instead of pushing them off to the master dev,
getting rid of the master interface completely.Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville
16 Jun, 2009
1 commit
-
I suspect that some driver bugs can cause queues to be
stopped while they shouldn't be, but it's hard to find
out whether that is the case or not without having any
visible information about the queues. This adds a file
to debugfs that allows us to see the queues' statuses.Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville
21 May, 2009
1 commit
-
This moves the cfg80211 specific stuff to new cfg80211 debugfs
entries. Non-mac80211 will also get these entries now. There were
only 4 which we take:rts_threshold
fragmentation_threshold
short_retry_limit
long_retry_limitSigned-off-by: Luis R. Rodriguez
Signed-off-by: John W. Linville
14 May, 2009
1 commit
-
There's this internal wifi_wme_noack_test variable that
we use to set the QoS control if set. For one, it is
unlikely that it is set. Secondly, if set it needs to
influence the IEEE80211_TX_CTL_NO_ACK TX control flag,
and finally we should also be able to set it at all, so
make it available in debugfs.Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville
07 May, 2009
1 commit
-
In order to later add tracing or verifications to the driver
calls mac80211 makes, this patch adds static inline wrappers
for all operations.All calls are now written as
drv_(local, ...);
instead of
local->ops->(&local->hw, ...);
Where necessary, the wrappers also do existence checking and
return default values as appropriate.Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville
23 Apr, 2009
1 commit
-
Add new nl80211 attributes that can be used with NL80211_CMD_SET_WIPHY
and NL80211_CMD_GET_WIPHY to manage fragmentation/RTS threshold and
retry limits.Since these values are stored in struct wiphy, remove the local copy
from mac80211 where feasible (frag & rts threshold). The retry limits
are currently needed in struct ieee80211_conf, but these could be
eventually removed since the driver should have access to the values
in struct wiphy.Signed-off-by: Jouni Malinen
Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville
28 Mar, 2009
1 commit
-
When mac80211 resumes, it currently doesn't reconfigure the interfaces
entirely and also doesn't reconfigure BSS information -- fix this.Also, to be able to test this, add a debugfs file that just calls
the suspend/resume code to see what happens when we go through that,
without needing the time-consuming suspend/resume cycle.(Original version broke the build for CONFIG_PM=n. Define alternative
functions for that situation. -- JWL)Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville
30 Jan, 2009
3 commits
-
This patch enables low-level driver independent debugging of the TSF and remove the driver specific things of ath5k and ath9k from the debugfs.
Signed-off-by: Alina Friedrichsen
Signed-off-by: John W. Linville -
This patch adds an low-level driver independent entry to read the TSF value into the debugfs of mac80211. This makes debugging the IBSS handling of wifi drivers easier.
Signed-off-by: Alina Friedrichsen
Signed-off-by: John W. Linville -
This patch removes an unused declaration of dot11WEPUndecryptableCount
(an snmp counter) in ieee80211_local structure and its usage in
debugfs.c since this counter is not incremented/decremented anywhere.Signed-off-by: Rami Rosen
Signed-off-by: John W. Linville
01 Nov, 2008
2 commits
-
Instead of having a separate callback, use the HW config callback
with a new flag to change retry limits.Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville -
Never actually used.
Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville
16 Sep, 2008
1 commit
-
The bridge_packets configuration really should be per virtual
interface (theoretically per AP/VLAN, but this is much easier);
there currently is no way to set it yet though. Also invert
the option to "NO_BRIDGE_PACKETS" so the default is to bridge.While at it, also document the flags properly.
Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville
15 Jul, 2008
1 commit
-
This patch revamps the virtual interface handling and makes the
code much easier to follow. Fewer functions, better names, less
spaghetti code.Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville
08 May, 2008
1 commit
-
This
* makes the queue number passed to drivers a u16
(as it will be with skb_get_queue_mapping)
* removes the useless queue number defines
* splits hw->queues into hw->queues/ampdu_queues
* removes the debugfs files for per-queue counters
* removes some dead QoS code
* removes the beacon queue configuration for IBSS
so that the drivers now never get a queue number
bigger than (hw->queues + hw->ampdu_queues - 1)
for tx and only in the range 0..hw->queues-1 for
conf_tx.Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville
09 Apr, 2008
2 commits
-
This patch renames all mac80211 files (except ieee80211_i.h) to get rid
of the useless ieee80211_ prefix.Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville -
Unfortunately, debugfs can be made to access invalid memory by
open()ing a file and then waiting until the corresponding debugfs
file has been removed (and, probably, the underlying object.)That could be exploited by any user if the user is able to open
debugfs files and can cause networking devices, STA entries or
similar to disappear which is quite easy to do.Hence, all debugfs files should be root-only.
Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville
01 Mar, 2008
1 commit
-
This patch creates new cfg80211 wiphy API for channel and bitrate
registration and converts mac80211 and drivers to the new API. The
old mac80211 API is completely ripped out. All drivers (except ath5k)
are updated to the new API, in many cases I expect that optimisations
can be done.Along with the regulatory code I've also ripped out the
IEEE80211_HW_DEFAULT_REG_DOMAIN_CONFIGURED flag, I believe it to be
unnecessary if the hardware simply gives us whatever channels it wants
to support and we then enable/disable them as required, which is pretty
much required for travelling.Additionally, the patch adds proper "basic" rate handling for STA
mode interface, AP mode interface will have to have new API added
to allow userspace to set the basic rate set, currently it'll be
empty... However, the basic rate handling will need to be moved to
the BSS conf stuff.I do expect there to be bugs in this, especially wrt. transmit
power handling where I'm basically clueless about how it should work.Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville
11 Oct, 2007
4 commits
-
This patch removes the key threshold stuff from mac80211.
I have patches for later that add it as a per-key setting
to nl/cfg80211.Signed-off-by: Johannes Berg
Signed-off-by: Michael Wu
Signed-off-by: John W. Linville
Signed-off-by: David S. Miller -
This patch removes all mention of the atheros turbo modes that
can't possibly work properly anyway since in some places we don't
check for them when we should.I have no idea what the iwlwifi drivers were doing with these but
it can't possibly have been correct.Cc: Zhu Yi
Signed-off-by: Johannes Berg
Acked-by: Michael Wu
Signed-off-by: John W. Linville
Signed-off-by: David S. Miller -
The ioctls
* PRISM2_PARAM_RADAR_DETECT
* PRISM2_PARAM_SPECTRUM_MGMTare not used by hostapd or wpa_supplicant,
Signed-off-by: Johannes Berg
Acked-by: Michael Wu
Signed-off-by: John W. Linville
Signed-off-by: David S. Miller -
The ioctls
* PRISM2_PARAM_STA_ANTENNA_SEL
* PRISM2_PARAM_TX_POWER_REDUCTION
* PRISM2_PARAM_DEFAULT_WEP_ONLYare not used by hostapd or wpa_supplicant.
Signed-off-by: Johannes Berg
Acked-by: Michael Wu
Signed-off-by: John W. Linville
Signed-off-by: David S. Miller
12 Jun, 2007
1 commit
-
This patch fixes a typo in mac80211's debugfs.c.
Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville
06 May, 2007
1 commit
-
Export various mac80211 internal variables through debugfs.
Signed-off-by: Jiri Benc
Signed-off-by: John W. Linville
Signed-off-by: David S. Miller