proski
c6569661e4
Remove useless casts of kmalloc() and kzalloc()
...
Found by coccinelle.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4152 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-08-03 00:18:57 +00:00
proski
ea28c77afc
Fix all instances of unused variables reported by gcc 4.6.0.
...
Change IEEE80211_NODE_SAVEQ_DEQUEUE to a compound statement returning a
value, which may or may not be ignored by the caller.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4137 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-05-03 21:56:02 +00:00
proski
e408c071a2
Add support for the latest kernels that don't define AUTOCONF_INCLUDED
...
Use CONFIG_LOCALVERSION as an alternative to check that the
configuration settings have been included.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4134 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-02-02 21:10:53 +00:00
proski
7da3379866
Fix support for Linux 2.6.11, which lacks <linux/sort.h>
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4132 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-06-19 18:27:20 +00:00
proski
0382a636d6
Fix typos
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4125 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-03-23 22:49:56 +00:00
proski
6f08b9347d
Print a prominent message if kernel AES is not available
...
The kernel AES will only be requested if hardware encryption is not
available and if AES is really needed. At that point, a failure to
allocate the AES cipher would be a real problem, not a minor debug
condition.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4121 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-03-12 06:40:34 +00:00
proski
41c0303d16
Fix handling of out-of-memory condition in ccmp_attach()
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4120 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-03-12 05:40:29 +00:00
proski
4bbde45a51
Don't set ctl_name in Linux 2.6.33+, it was removed
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4102 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-01-09 08:34:37 +00:00
proski
0d741ab467
Adjust for procfs changes in Linux 2.6.32
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4099 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-09-28 23:06:53 +00:00
proski
bc1810756f
Support compilation with procfs disabled
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4088 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-08-24 22:04:45 +00:00
proski
a5b3087ab0
Rewrite ieee80211_input_all()
...
The logic to prevent calling ieee80211_input() on inactive VAPs was
flawed. The first VAP was exempt from the check for no reason.
Rewrite to avoid having nested loops. Give the original skb to the
first VAP, not to the last one, as the first VAP is easier to find in a
loop. Process the first VAP after others.
Only collect the result from the first VAP. ieee80211_input() should
return the same value (frame type) for all VAPs except if we call it
incorrectly, e.g. on an inactive VAP.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4081 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-07-30 21:06:29 +00:00
proski
319a241c30
Don't unref node in ieee80211_input() if it wasn't referenced
...
Thanks to:
Daniel Wu <danwu@ucdavis.edu>
"Ilya A. Volynets-Evenbakh" <ilya@total-knowledge.com>
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4080 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-07-30 17:17:02 +00:00
benoit
a548cc50ad
Rewrote IBSS merge (part that updates the IBSS parameters using content from
...
received beacons). Merge from branches/madwifi-dfs@3662
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4079 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-07-11 17:37:55 +00:00
benoit
d7126f8393
Avoid kernel panic and returns 802.11b.
...
Merge from branches/madwifi-dfs@3649
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4078 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-07-11 17:33:54 +00:00
benoit
1b019e9b0d
Merge madwifi-dfs back to trunk: this change is only about DFS, excluding
...
DFS pulse analysis. Untested.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4076 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-07-11 17:20:58 +00:00
benoit
622cfce180
Make use of the IEEE80211_IS_CHAN_RADAR macro
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4074 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-07-11 10:15:28 +00:00
proski
20802ea505
Remove IEEE80211_CHANSWITCHANN_BYTES, it's unused
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4066 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-26 03:39:25 +00:00
proski
530d6494db
Compile fix with VLAN support on recent kernels
...
VLAN operations should be in net_device_ops.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4059 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-25 22:22:58 +00:00
proski
489d0d146d
Merge time conversion macros, users of IEEE80211_TU_TO_TSF from madwifi-dfs
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4054 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-25 01:03:32 +00:00
proski
892214198a
Fix trailing whitespace
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4051 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-25 00:49:06 +00:00
proski
a96aec1cee
Merge r3372 from madwifi-dfs
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4050 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-25 00:47:42 +00:00
proski
a6137f861b
Use IEEE80211_IS_CHAN_PASSIVE - merge from DFS branch
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4048 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-25 00:29:33 +00:00
proski
d8b9462077
Merge formatting change from DFS branch
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4047 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-25 00:24:34 +00:00
proski
db43dba0dd
Fix missing space before "else"
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4046 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-25 00:21:59 +00:00
proski
e846fff3ea
Fix compilation for mips64
...
On some 64-bit architectures u_int64_t is not unsigned long long.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4024 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-05-24 01:09:25 +00:00
proski
ba3592a8cd
Fix all cases of stack usage exceeding 1024 bytes
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4022 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-05-12 20:05:46 +00:00
proski
43de7ca42d
Fix excessive stack usage in ieee80211_ioctl_getchaninfo()
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4012 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-28 04:56:27 +00:00
proski
c62003532a
Remove all reverse engineering support, it's pointless now
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4008 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-22 22:05:57 +00:00
proski
43c86cb332
Convert to net_device_ops for Linux 2.6.29+
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4002 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-15 04:21:12 +00:00
proski
193615c0df
Initialize do_ioctl together with other device operations
...
It's better to keep initialization in one place to simplify conversion
to the new style netdev ops.
Declare ieee80211_ioctl() in ieee80211_linux.h next to other
ieee80211_ioctl* functions defined in ieee80211_wireless.c.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4000 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-15 03:11:34 +00:00
proski
a9427af7b3
Remove commented out reference to non-existent ieee80211_set_mac_address()
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3999 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-15 02:55:25 +00:00
proski
5702465321
Merge madwifi-free branch into the trunk
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3978 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-07 01:26:53 +00:00
proski
6aeff5a687
Remove unused node counting code
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3962 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-01 19:44:05 +00:00
proski
fca6a0c2df
Make ieee80211_free_node() static
...
It should not be visible outside ieee80211_node.c
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3960 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-01 19:34:57 +00:00
proski
0a63a44b94
Don't call dump_stack() for mere debugging, without major errors
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3941 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-02-04 21:43:58 +00:00
proski
e0b577bb5d
Replace __FUNCTION__ with __func__
...
__FUNCTION__ is an old GNU extension, __func__ is C99. Use of
__FUNCTION__ is discouraged.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3930 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-01-23 18:23:19 +00:00
proski
3e70e4f8c1
Compile fixes for Linux 2.6.29
...
Use netdev_priv() for Linux 2.4.27 and newer. Provide compatibility
wrapper for older kernels.
Imply CONFIG_KMOD for Linux 2.6.27 and newer.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3902 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-01-14 02:36:53 +00:00
proski
5113fc8d80
Remove unused function ieee80211_dfs_test_return()
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3849 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-08-27 17:18:39 +00:00
proski
9fb3122e7a
Reduce difference with the DFS branch
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3820 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-24 01:46:25 +00:00
benoit
b1f30fd47a
Added proper phytype definitions for XR and HT
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3813 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-19 20:36:28 +00:00
proski
02bac30645
More typo fixes
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3809 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-18 22:00:42 +00:00
proski
65b2749123
Typo fixes
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3808 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-18 21:50:53 +00:00
proski
d818daa1f2
Merge some comment changes from madwifi-dfs
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3787 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-17 04:50:29 +00:00
proski
da7fdf05c1
Remove trailing whitespace where it's not in madwifi-dfs branch
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3783 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-17 03:44:41 +00:00
proski
4878463bdb
Wireless extensions changes are for 2.6.27, not 2.6.26
...
Don't use compatibility code if IW_REQUEST_FLAG_COMPAT is defined, which
means that the kernel identifies itself as 2.6.26, but acts like 2.6.27
would.
Remove unneeded use of ellipsis in iwe_stream_lcp_len() definition.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3767 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-10 14:50:56 +00:00
mentor
c4c202073b
Use iwe_stream_lcp_len instead of IW_EV_LCP_LEN for 2.6.26+
...
Addendum to r3750
Ticket: #2022
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3760 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-07 19:28:08 +00:00
mentor
caa352fdd2
Remove, rename, and move various mystery meat defines
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3756 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-06 02:31:09 +00:00
mentor
130324108b
Update iwe_stream_add_* API usage for 2.6.26+.
...
Ticket: #2022
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3750 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-05 02:21:38 +00:00
mentor
9a2f6efd63
Correctly name Data type Null subtype frame.
...
Do not try to process Null and QoS Null frames as data.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3749 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-05 01:00:32 +00:00
mentor
70e6e83fc8
Add an informational message when debug flags are changed.
...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3744 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-22 05:32:29 +00:00