refresh acx-mac80211 patches

SVN-Revision: 16157
This commit is contained in:
Florian Fainelli 2009-05-28 19:04:41 +00:00
parent c2df3a7179
commit 16ad5caa22
5 changed files with 40 additions and 52 deletions

View file

@ -1,6 +1,6 @@
--- acx-mac80211-20080802/Makefile 2008-08-02 17:34:09.000000000 +0200 --- a/Makefile
+++ acx-mac80211-20080802-b/Makefile 2008-08-04 22:24:25.000000000 +0200 +++ b/Makefile
@@ -28,7 +28,7 @@ @@ -28,7 +28,7 @@ ifneq ($(KERNELRELEASE),)
obj-$(CONFIG_ACX_MAC80211) += acx-mac80211.o obj-$(CONFIG_ACX_MAC80211) += acx-mac80211.o
acx-mac80211-obj-$(CONFIG_ACX_MAC80211_PCI) += pci.o acx-mac80211-obj-$(CONFIG_ACX_MAC80211_PCI) += pci.o
acx-mac80211-obj-$(CONFIG_ACX_MAC80211_USB) += usb.o acx-mac80211-obj-$(CONFIG_ACX_MAC80211_USB) += usb.o

View file

@ -1,8 +1,6 @@
diff --git a/common.c b/common.c
index c3a288d..9c607de 100644
--- a/common.c --- a/common.c
+++ b/common.c +++ b/common.c
@@ -1451,60 +1451,66 @@ void acx_free_modes(acx_device_t * adev) @@ -1452,60 +1452,66 @@ void acx_free_modes(acx_device_t * adev)
// adev->modes = NULL; // adev->modes = NULL;
} }
@ -105,4 +103,3 @@ index c3a288d..9c607de 100644
}; };
int acx_setup_modes(acx_device_t * adev) int acx_setup_modes(acx_device_t * adev)

View file

@ -1,7 +1,6 @@
diff -urN acx-mac80211-20080805/acx_mac80211.h acx-mac80211-20080805.new/acx_mac80211.h --- a/acx_mac80211.h
--- acx-mac80211-20080805/acx_mac80211.h 2009-05-07 14:32:44.000000000 +0200 +++ b/acx_mac80211.h
+++ acx-mac80211-20080805.new/acx_mac80211.h 2009-05-07 15:59:45.000000000 +0200 @@ -36,7 +36,7 @@ struct acx_interface {
@@ -36,7 +36,7 @@
/* Current BSSID (if any). */ /* Current BSSID (if any). */
u8 *bssid; u8 *bssid;
@ -10,10 +9,9 @@ diff -urN acx-mac80211-20080805/acx_mac80211.h acx-mac80211-20080805.new/acx_mac
int type; int type;
/* Counter of active monitor interfaces. */ /* Counter of active monitor interfaces. */
int monitor; int monitor;
diff -urN acx-mac80211-20080805/common.c acx-mac80211-20080805.new/common.c --- a/common.c
--- acx-mac80211-20080805/common.c 2009-05-07 14:32:44.000000000 +0200 +++ b/common.c
+++ acx-mac80211-20080805.new/common.c 2009-05-07 16:11:26.000000000 +0200 @@ -4111,28 +4111,28 @@ static void acx_s_select_opmode(acx_devi
@@ -4105,28 +4105,28 @@
if (adev->interface.operating) { if (adev->interface.operating) {
switch (adev->interface.type) { switch (adev->interface.type) {
@ -46,7 +44,7 @@ diff -urN acx-mac80211-20080805/common.c acx-mac80211-20080805.new/common.c
default: default:
if (adev->mode != ACX_MODE_OFF) if (adev->mode != ACX_MODE_OFF)
{ {
@@ -4136,7 +4136,7 @@ @@ -4142,7 +4142,7 @@ static void acx_s_select_opmode(acx_devi
break; break;
} }
} else { } else {
@ -55,7 +53,7 @@ diff -urN acx-mac80211-20080805/common.c acx-mac80211-20080805.new/common.c
{ {
if (adev->mode != ACX_MODE_MONITOR) if (adev->mode != ACX_MODE_MONITOR)
{ {
@@ -4180,7 +4180,7 @@ @@ -4186,7 +4186,7 @@ int acx_add_interface(struct ieee80211_h
FN_ENTER; FN_ENTER;
acx_lock(adev, flags); acx_lock(adev, flags);
@ -64,7 +62,7 @@ diff -urN acx-mac80211-20080805/common.c acx-mac80211-20080805.new/common.c
adev->interface.monitor++; adev->interface.monitor++;
} else { } else {
if (adev->interface.operating) if (adev->interface.operating)
@@ -4226,7 +4226,7 @@ @@ -4232,7 +4232,7 @@ void acx_remove_interface(struct ieee802
FN_ENTER; FN_ENTER;
acx_sem_lock(adev); acx_sem_lock(adev);
@ -73,7 +71,7 @@ diff -urN acx-mac80211-20080805/common.c acx-mac80211-20080805.new/common.c
adev->interface.monitor--; adev->interface.monitor--;
// assert(bcm->interface.monitor >= 0); // assert(bcm->interface.monitor >= 0);
} else { } else {
@@ -4380,7 +4380,7 @@ @@ -4386,7 +4386,7 @@ extern int acx_config_interface(struct i
acx_lock(adev, flags); acx_lock(adev, flags);
@ -82,7 +80,7 @@ diff -urN acx-mac80211-20080805/common.c acx-mac80211-20080805.new/common.c
&& (adev->vif == vif)) { && (adev->vif == vif)) {
if (conf->bssid) if (conf->bssid)
{ {
@@ -4388,7 +4388,7 @@ @@ -4394,7 +4394,7 @@ extern int acx_config_interface(struct i
MAC_COPY(adev->bssid,conf->bssid); MAC_COPY(adev->bssid,conf->bssid);
} }
} }

View file

@ -1,7 +1,6 @@
diff -urN acx-mac80211-20080805/acx_func.h acx-mac80211-20080805.new/acx_func.h --- a/acx_func.h
--- acx-mac80211-20080805/acx_func.h 2009-05-07 14:32:44.000000000 +0200 +++ b/acx_func.h
+++ acx-mac80211-20080805.new/acx_func.h 2009-05-07 16:28:17.000000000 +0200 @@ -619,9 +619,10 @@ int acx_net_set_key(struct ieee80211_hw
@@ -619,9 +619,10 @@
enum set_key_cmd cmd, enum set_key_cmd cmd,
const u8 *local_addr, const u8 *addr, const u8 *local_addr, const u8 *addr,
struct ieee80211_key_conf *key); struct ieee80211_key_conf *key);
@ -14,10 +13,9 @@ diff -urN acx-mac80211-20080805/acx_func.h acx-mac80211-20080805.new/acx_func.h
int acx_net_config(struct ieee80211_hw* ieee, struct ieee80211_conf *conf); int acx_net_config(struct ieee80211_hw* ieee, struct ieee80211_conf *conf);
int acx_net_get_tx_stats(struct ieee80211_hw* ieee, struct ieee80211_tx_queue_stats *stats); int acx_net_get_tx_stats(struct ieee80211_hw* ieee, struct ieee80211_tx_queue_stats *stats);
int acx_net_conf_tx(struct ieee80211_hw* ieee, u16 queue, int acx_net_conf_tx(struct ieee80211_hw* ieee, u16 queue,
diff -urN acx-mac80211-20080805/common.c acx-mac80211-20080805.new/common.c --- a/common.c
--- acx-mac80211-20080805/common.c 2009-05-07 16:20:37.000000000 +0200 +++ b/common.c
+++ acx-mac80211-20080805.new/common.c 2009-05-07 16:35:55.000000000 +0200 @@ -4370,9 +4370,10 @@ int acx_net_config(struct ieee80211_hw *
@@ -4364,9 +4364,10 @@
** **
*/ */
@ -30,7 +28,7 @@ diff -urN acx-mac80211-20080805/common.c acx-mac80211-20080805.new/common.c
{ {
acx_device_t *adev = ieee2adev(ieee); acx_device_t *adev = ieee2adev(ieee);
unsigned long flags; unsigned long flags;
@@ -4382,22 +4383,22 @@ @@ -4388,22 +4389,22 @@ extern int acx_config_interface(struct i
if ((vif->type != NL80211_IFTYPE_MONITOR) if ((vif->type != NL80211_IFTYPE_MONITOR)
&& (adev->vif == vif)) { && (adev->vif == vif)) {
@ -60,7 +58,7 @@ diff -urN acx-mac80211-20080805/common.c acx-mac80211-20080805.new/common.c
{ {
adev->beacon_interval = DEFAULT_BEACON_INTERVAL; adev->beacon_interval = DEFAULT_BEACON_INTERVAL;
adev->beacon_cache = ieee80211_beacon_get(ieee, vif); adev->beacon_cache = ieee80211_beacon_get(ieee, vif);
@@ -4412,7 +4413,7 @@ @@ -4418,7 +4419,7 @@ extern int acx_config_interface(struct i
err = 0; err = 0;
err_out: err_out:
FN_EXIT1(err); FN_EXIT1(err);
@ -69,10 +67,9 @@ diff -urN acx-mac80211-20080805/common.c acx-mac80211-20080805.new/common.c
} }
/** /**
diff -urN acx-mac80211-20080805/pci.c acx-mac80211-20080805.new/pci.c --- a/pci.c
--- acx-mac80211-20080805/pci.c 2009-05-07 14:32:44.000000000 +0200 +++ b/pci.c
+++ acx-mac80211-20080805.new/pci.c 2009-05-07 16:27:27.000000000 +0200 @@ -1469,7 +1469,7 @@ static const struct ieee80211_ops acxpci
@@ -1469,7 +1469,7 @@
.configure_filter = acx_i_set_multicast_list, .configure_filter = acx_i_set_multicast_list,
.stop = acxpci_e_close, .stop = acxpci_e_close,
.config = acx_net_config, .config = acx_net_config,
@ -81,10 +78,9 @@ diff -urN acx-mac80211-20080805/pci.c acx-mac80211-20080805.new/pci.c
.set_key = acx_net_set_key, .set_key = acx_net_set_key,
.get_stats = acx_e_get_stats, .get_stats = acx_e_get_stats,
.get_tx_stats = acx_net_get_tx_stats, .get_tx_stats = acx_net_get_tx_stats,
diff -urN acx-mac80211-20080805/usb.c acx-mac80211-20080805.new/usb.c --- a/usb.c
--- acx-mac80211-20080805/usb.c 2009-05-07 14:32:44.000000000 +0200 +++ b/usb.c
+++ acx-mac80211-20080805.new/usb.c 2009-05-07 16:27:38.000000000 +0200 @@ -741,7 +741,7 @@ static const struct ieee80211_ops acxusb
@@ -741,7 +741,7 @@
.configure_filter = acx_i_set_multicast_list, .configure_filter = acx_i_set_multicast_list,
.stop = acxusb_e_close, .stop = acxusb_e_close,
.config = acx_net_config, .config = acx_net_config,

View file

@ -1,7 +1,6 @@
diff -urN acx-mac80211-20080805/acx_func.h acx-mac80211-20080805.new/acx_func.h --- a/acx_func.h
--- acx-mac80211-20080805/acx_func.h 2009-05-07 16:36:37.000000000 +0200 +++ b/acx_func.h
+++ acx-mac80211-20080805.new/acx_func.h 2009-05-07 16:54:21.000000000 +0200 @@ -623,7 +623,7 @@ void acx_config_interface(struct ieee802
@@ -623,7 +623,7 @@
struct ieee80211_vif *vif, struct ieee80211_vif *vif,
struct ieee80211_bss_conf *info, struct ieee80211_bss_conf *info,
u32 changes); u32 changes);
@ -10,10 +9,9 @@ diff -urN acx-mac80211-20080805/acx_func.h acx-mac80211-20080805.new/acx_func.h
int acx_net_get_tx_stats(struct ieee80211_hw* ieee, struct ieee80211_tx_queue_stats *stats); int acx_net_get_tx_stats(struct ieee80211_hw* ieee, struct ieee80211_tx_queue_stats *stats);
int acx_net_conf_tx(struct ieee80211_hw* ieee, u16 queue, int acx_net_conf_tx(struct ieee80211_hw* ieee, u16 queue,
const struct ieee80211_tx_queue_params *params); const struct ieee80211_tx_queue_params *params);
diff -urN acx-mac80211-20080805/common.c acx-mac80211-20080805.new/common.c --- a/common.c
--- acx-mac80211-20080805/common.c 2009-05-07 16:36:37.000000000 +0200 +++ b/common.c
+++ acx-mac80211-20080805.new/common.c 2009-05-07 16:57:45.000000000 +0200 @@ -4300,9 +4300,10 @@ int acx_selectchannel(acx_device_t * ade
@@ -4294,9 +4294,10 @@
** Derived from mac80211 code, p54, bcm43xx_mac80211 ** Derived from mac80211 code, p54, bcm43xx_mac80211
** **
*/ */
@ -25,10 +23,9 @@ diff -urN acx-mac80211-20080805/common.c acx-mac80211-20080805.new/common.c
unsigned long flags; unsigned long flags;
FN_ENTER; FN_ENTER;
diff -urN acx-mac80211-20080805/pci.c acx-mac80211-20080805.new/pci.c --- a/pci.c
--- acx-mac80211-20080805/pci.c 2009-05-07 16:39:39.000000000 +0200 +++ b/pci.c
+++ acx-mac80211-20080805.new/pci.c 2009-05-07 16:59:07.000000000 +0200 @@ -3105,7 +3105,7 @@ acxpci_l_tx_data(acx_device_t *adev, tx_
@@ -3105,7 +3105,7 @@
/* let chip do RTS/CTS handshaking before sending /* let chip do RTS/CTS handshaking before sending
* in case packet size exceeds threshold */ * in case packet size exceeds threshold */
@ -37,7 +34,7 @@ diff -urN acx-mac80211-20080805/pci.c acx-mac80211-20080805.new/pci.c
SET_BIT(Ctl2_8, DESC_CTL2_RTS); SET_BIT(Ctl2_8, DESC_CTL2_RTS);
else else
CLEAR_BIT(Ctl2_8, DESC_CTL2_RTS); CLEAR_BIT(Ctl2_8, DESC_CTL2_RTS);
@@ -3120,7 +3120,7 @@ @@ -3120,7 +3120,7 @@ acxpci_l_tx_data(acx_device_t *adev, tx_
/* put_txcr(adev, txdesc, clt, rate_cur); deprecated by mac80211 */ /* put_txcr(adev, txdesc, clt, rate_cur); deprecated by mac80211 */
txdesc->total_length = cpu_to_le16(len); txdesc->total_length = cpu_to_le16(len);
@ -46,7 +43,7 @@ diff -urN acx-mac80211-20080805/pci.c acx-mac80211-20080805.new/pci.c
hostdesc2->length = cpu_to_le16(len - wlhdr_len); hostdesc2->length = cpu_to_le16(len - wlhdr_len);
/* /*
if (!ieeectl->do_not_encrypt && ieeectl->key_idx>= 0) if (!ieeectl->do_not_encrypt && ieeectl->key_idx>= 0)
@@ -3444,8 +3444,8 @@ @@ -3444,8 +3444,8 @@ unsigned int acxpci_l_clean_txdesc(acx_d
/* And finally report upstream */ /* And finally report upstream */
if (hostdesc) if (hostdesc)
{ {