Remove unused EOR define

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Remove remains of _timer typedef

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Remove unused android_scan variable from struct rtw_wdev_priv

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Remove last traces of CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Remove pointless wrapping around rtw_init_cmd_priv()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Move declaration of wlancmds to rtw_cmd.c

This stops it being declared magically in rtw_mlme_ext.h with ugly
ifdefs for when included by rtw_cmd.c

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Move wlanevents declaration to rtw_mlme_ext.c

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Use kmalloc() to allocate cmd_allocated_buf

There is no reason to apply ugly vmalloc hacks for a 1024 byte buffer
(+ alignment).

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Move rtw_cmd_callback declaration to rtw_cmd.c instead of having it in a header file!

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Clean up rtw_network_alloc()

Replace driver's self-implemented buffer management and use kmalloc()
to allocate struct wlan_network on demand. This simplifies the buffer
handling and also reduces the memory footprint as the old driver would
allocate almost 128KB (128 entries) for this.

In addition, remove unused counter for number of scanned networks. The
was counted, but nothing was done with the result.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Remove unused rtw_dequeue/enqueue_network() functions

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Do not use a tmp list_head in struct mlme_priv when traversing lists

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Correct KERNEL_VERSION check for cfg80211_rx_mgt() wrapper

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Do not instantiate arrays in a header file ... we don't need multiple copies

In addition remove a couple of arrays that weren't used anywhere.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Remove unuised multicast/broadcast test macros

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Fix a remaining PADAPTER typedef abuser

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Don't empty the whole queue in dequeue_one_xmitframe()

commit 967d16a10460cc922332c1de71bd166249c73cbc
Author: Jes Sorensen <Jes.Sorensen@redhat.com>
Date:   Tue Dec 17 16:02:09 2013 +0100

    Replace some custom hacked up list handling with proper list macro usage

    Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>

Introduced a bad bug where the entire queue was emptied instead of a
single entry. Fix this and pull out just one entry.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Use proper list macros to retrieve first list element in rtw_alloc_xmitbuf{,_ext}

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Allocate xmit_bufs in single units instead of a bulk chunk through vmalloc

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Remove unused code under CONFIG_USB_TX_AGGREGATION

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>