[PATCH 0/8] staging/rtl8xxx: delete ieee80211 constant duplication

From: Paul Gortmaker
Date: Mon Apr 27 2015 - 01:27:30 EST


While looking at a non-staging wifi driver, I was searching for a constant
definition for an error code, and in addition to the expected one living
in the main include dir, I found a whole bunch of local copies in the
staging dir rtl8xxx wifi drivers. This duplication covers the families
of WLAN_STATUS_<text> and WLAN_REASON_<text> values.

While one can understand that these things were wholesale copied at one
point to simplify out of tree building, we don't want duplicated stuff
for drivers that are in tree. Even if they are in staging, they will
need cleanups like this if they ever want to get out of staging.

Some could be removed and trivially replaced with the associated include
of <linux/ieee80211.h> but for a couple of others a couple of struct
fields had to be renamed to align with the main include first, and a
struct namespace collision between the main include and the local ones
had to be resolved to allow the duplicate constant removal as well.

Compile tested only, but the changes seem trivial enough so as to be
presumably zero runtime impact (famous last words....)

---

Paul Gortmaker (8):
rtl8188eu: don't duplicate ieee80211 constants for status/reason
rtl8712: don't duplicate ieee80211 constants for status/reason
rtl8192u: don't trample on <linux/ieee80211.h> struct namespace
rtl8192u: promote auth_mode to a full 8 bits
rtl8192u: align local ieee80211_wmm_ac_param struct fields with global
rtl8192u: don't duplicate ieee80211 constants for status/auth/reason
rtl8192u: delete another embedded instance of generic reason codes
rtl8192e: delete local copy of iee80211 reason codes.

drivers/staging/rtl8188eu/core/rtw_ap.c | 2 +
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 10 +-
drivers/staging/rtl8188eu/core/rtw_recv.c | 2 +
drivers/staging/rtl8188eu/include/ieee80211.h | 29 +---
drivers/staging/rtl8188eu/include/wifi.h | 77 ----------
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 2 +
drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 3 +-
drivers/staging/rtl8192e/rtllib.h | 39 -----
drivers/staging/rtl8192e/rtllib_softmac.c | 3 +-
drivers/staging/rtl8192u/ieee80211/ieee80211.h | 171 +++------------------
.../rtl8192u/ieee80211/ieee80211_crypt_ccmp.c | 10 +-
.../rtl8192u/ieee80211/ieee80211_crypt_tkip.c | 26 ++--
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 76 ++++-----
.../staging/rtl8192u/ieee80211/ieee80211_softmac.c | 32 ++--
drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c | 14 +-
.../staging/rtl8192u/ieee80211/rtl819x_BAProc.c | 48 +++---
drivers/staging/rtl8192u/r8192U_core.c | 12 +-
drivers/staging/rtl8712/ieee80211.h | 29 ----
18 files changed, 150 insertions(+), 435 deletions(-)

--
2.2.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/