staging: brcm80211: remove wireless extensions support from brcmfmac
The brcmfmac driver contained functions for wireless extensions support. However, brcmfmac is intended to be a cfg80211 driver so all the entire source file is obsolete. Signed-off-by: Arend van Spriel <arend@broadcom.com> Reviewed-by: Roland Vossen <rvossen@broadcom.com> Reviewed-by: Franky Lin <frankyl@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
94174c21fb
commit
7faf8c5b72
4 changed files with 0 additions and 3828 deletions
|
@ -40,7 +40,6 @@ ccflags-y += \
|
|||
|
||||
DHDOFILES = \
|
||||
wl_cfg80211.o \
|
||||
wl_iw.o \
|
||||
dhd_cdc.o \
|
||||
dhd_common.o \
|
||||
dhd_custom_gpio.o \
|
||||
|
|
|
@ -183,12 +183,6 @@ MODULE_DESCRIPTION("Broadcom 802.11n wireless LAN fullmac driver.");
|
|||
MODULE_SUPPORTED_DEVICE("Broadcom 802.11n WLAN fullmac cards");
|
||||
MODULE_LICENSE("Dual BSD/GPL");
|
||||
|
||||
/* Linux wireless extension support */
|
||||
#if defined(CONFIG_WIRELESS_EXT)
|
||||
#include <wl_iw.h>
|
||||
extern wl_iw_extra_params_t g_wl_iw_params;
|
||||
#endif /* defined(CONFIG_WIRELESS_EXT) */
|
||||
|
||||
#if defined(CONFIG_HAS_EARLYSUSPEND)
|
||||
#include <linux/earlysuspend.h>
|
||||
extern int dhdcdc_set_ioctl(dhd_pub_t *dhd, int ifidx, uint cmd, void *buf,
|
||||
|
@ -218,10 +212,6 @@ typedef struct dhd_if {
|
|||
|
||||
/* Local private structure (extension of pub) */
|
||||
typedef struct dhd_info {
|
||||
#if defined(CONFIG_WIRELESS_EXT)
|
||||
wl_iw_t iw; /* wireless extensions state (must be first) */
|
||||
#endif /* defined(CONFIG_WIRELESS_EXT) */
|
||||
|
||||
dhd_pub_t pub;
|
||||
|
||||
/* OS/stack specifics */
|
||||
|
@ -1602,14 +1592,6 @@ static int dhd_ioctl_entry(struct net_device *net, struct ifreq *ifr, int cmd)
|
|||
if (ifidx == DHD_BAD_IF)
|
||||
return -1;
|
||||
|
||||
#if defined(CONFIG_WIRELESS_EXT)
|
||||
/* linux wireless extensions */
|
||||
if ((cmd >= SIOCIWFIRST) && (cmd <= SIOCIWLAST)) {
|
||||
/* may recurse, do NOT lock */
|
||||
return wl_iw_ioctl(net, ifr, cmd);
|
||||
}
|
||||
#endif /* defined(CONFIG_WIRELESS_EXT) */
|
||||
|
||||
if (cmd == SIOCETHTOOL)
|
||||
return dhd_ethtool(dhd, (void *)ifr->ifr_data);
|
||||
|
||||
|
@ -1896,13 +1878,6 @@ dhd_pub_t *dhd_attach(struct dhd_bus *bus, uint bus_hdrlen)
|
|||
DHD_ERROR(("dhd_prot_attach failed\n"));
|
||||
goto fail;
|
||||
}
|
||||
#if defined(CONFIG_WIRELESS_EXT)
|
||||
/* Attach and link in the iw */
|
||||
if (wl_iw_attach(net, (void *)&dhd->pub) != 0) {
|
||||
DHD_ERROR(("wl_iw_attach failed\n"));
|
||||
goto fail;
|
||||
}
|
||||
#endif /* defined(CONFIG_WIRELESS_EXT) */
|
||||
|
||||
/* Attach and link in the cfg80211 */
|
||||
if (unlikely(wl_cfg80211_attach(net, &dhd->pub))) {
|
||||
|
@ -2262,10 +2237,6 @@ void dhd_detach(dhd_pub_t *dhdp)
|
|||
if (dhdp->prot)
|
||||
dhd_prot_detach(dhdp);
|
||||
|
||||
#if defined(CONFIG_WIRELESS_EXT)
|
||||
wl_iw_detach();
|
||||
#endif /* (CONFIG_WIRELESS_EXT) */
|
||||
|
||||
wl_cfg80211_detach();
|
||||
|
||||
/* && defined(DHD_GPL) */
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,138 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2010 Broadcom Corporation
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
* copyright notice and this permission notice appear in all copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
||||
* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
|
||||
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef _wl_iw_h_
|
||||
#define _wl_iw_h_
|
||||
|
||||
#define WL_SCAN_PARAMS_SSID_MAX 10
|
||||
#define GET_SSID "SSID="
|
||||
#define GET_CHANNEL "CH="
|
||||
#define GET_NPROBE "NPROBE="
|
||||
#define GET_ACTIVE_ASSOC_DWELL "ACTIVE="
|
||||
#define GET_PASSIVE_ASSOC_DWELL "PASSIVE="
|
||||
#define GET_HOME_DWELL "HOME="
|
||||
#define GET_SCAN_TYPE "TYPE="
|
||||
|
||||
#define BAND_GET_CMD "BANDGET"
|
||||
#define BAND_SET_CMD "BANDSET"
|
||||
#define DTIM_SKIP_GET_CMD "DTIMSKIPGET"
|
||||
#define DTIM_SKIP_SET_CMD "DTIMSKIPSET"
|
||||
#define SETSUSPEND_CMD "SETSUSPENDOPT"
|
||||
#define PNOSSIDCLR_SET_CMD "PNOSSIDCLR"
|
||||
#define PNOSETUP_SET_CMD "PNOSETUP"
|
||||
#define PNOENABLE_SET_CMD "PNOFORCE"
|
||||
#define PNODEBUG_SET_CMD "PNODEBUG"
|
||||
|
||||
typedef struct wl_iw_extra_params {
|
||||
int target_channel;
|
||||
} wl_iw_extra_params_t;
|
||||
|
||||
#define WL_IW_RSSI_MINVAL -200
|
||||
#define WL_IW_RSSI_NO_SIGNAL -91
|
||||
#define WL_IW_RSSI_VERY_LOW -80
|
||||
#define WL_IW_RSSI_LOW -70
|
||||
#define WL_IW_RSSI_GOOD -68
|
||||
#define WL_IW_RSSI_VERY_GOOD -58
|
||||
#define WL_IW_RSSI_EXCELLENT -57
|
||||
#define WL_IW_RSSI_INVALID 0
|
||||
#define MAX_WX_STRING 80
|
||||
#define WL_IW_SET_ACTIVE_SCAN (SIOCIWFIRSTPRIV+1)
|
||||
#define WL_IW_GET_RSSI (SIOCIWFIRSTPRIV+3)
|
||||
#define WL_IW_SET_PASSIVE_SCAN (SIOCIWFIRSTPRIV+5)
|
||||
#define WL_IW_GET_LINK_SPEED (SIOCIWFIRSTPRIV+7)
|
||||
#define WL_IW_GET_CURR_MACADDR (SIOCIWFIRSTPRIV+9)
|
||||
#define WL_IW_SET_STOP (SIOCIWFIRSTPRIV+11)
|
||||
#define WL_IW_SET_START (SIOCIWFIRSTPRIV+13)
|
||||
|
||||
#define WL_SET_AP_CFG (SIOCIWFIRSTPRIV+15)
|
||||
#define WL_AP_STA_LIST (SIOCIWFIRSTPRIV+17)
|
||||
#define WL_AP_MAC_FLTR (SIOCIWFIRSTPRIV+19)
|
||||
#define WL_AP_BSS_START (SIOCIWFIRSTPRIV+21)
|
||||
#define AP_LPB_CMD (SIOCIWFIRSTPRIV+23)
|
||||
#define WL_AP_STOP (SIOCIWFIRSTPRIV+25)
|
||||
#define WL_FW_RELOAD (SIOCIWFIRSTPRIV+27)
|
||||
#define WL_COMBO_SCAN (SIOCIWFIRSTPRIV+29)
|
||||
#define WL_AP_SPARE3 (SIOCIWFIRSTPRIV+31)
|
||||
#define G_SCAN_RESULTS (8*1024)
|
||||
#define WE_ADD_EVENT_FIX 0x80
|
||||
#define G_WLAN_SET_ON 0
|
||||
#define G_WLAN_SET_OFF 1
|
||||
|
||||
#define CHECK_EXTRA_FOR_NULL(extra) \
|
||||
if (!extra) { \
|
||||
WL_ERROR("%s: error : extra is null pointer\n", __func__); \
|
||||
return -EINVAL; \
|
||||
}
|
||||
|
||||
typedef struct wl_iw {
|
||||
char nickname[IW_ESSID_MAX_SIZE];
|
||||
|
||||
struct iw_statistics wstats;
|
||||
|
||||
int spy_num;
|
||||
u32 pwsec;
|
||||
u32 gwsec;
|
||||
bool privacy_invoked;
|
||||
|
||||
u8 spy_addr[IW_MAX_SPY][ETH_ALEN];
|
||||
struct iw_quality spy_qual[IW_MAX_SPY];
|
||||
void *wlinfo;
|
||||
dhd_pub_t *pub;
|
||||
} wl_iw_t;
|
||||
|
||||
#if WIRELESS_EXT > 12
|
||||
#include <net/iw_handler.h>
|
||||
extern const struct iw_handler_def wl_iw_handler_def;
|
||||
#endif
|
||||
|
||||
extern int wl_iw_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
|
||||
extern void wl_iw_event(struct net_device *dev, wl_event_msg_t *e, void *data);
|
||||
extern int wl_iw_get_wireless_stats(struct net_device *dev,
|
||||
struct iw_statistics *wstats);
|
||||
int wl_iw_attach(struct net_device *dev, void *dhdp);
|
||||
void wl_iw_detach(void);
|
||||
extern int net_os_set_suspend_disable(struct net_device *dev, int val);
|
||||
extern int net_os_set_suspend(struct net_device *dev, int val);
|
||||
extern int net_os_set_dtim_skip(struct net_device *dev, int val);
|
||||
extern int net_os_set_packet_filter(struct net_device *dev, int val);
|
||||
|
||||
#define IWE_STREAM_ADD_EVENT(info, stream, ends, iwe, extra) \
|
||||
iwe_stream_add_event(info, stream, ends, iwe, extra)
|
||||
#define IWE_STREAM_ADD_VALUE(info, event, value, ends, iwe, event_len) \
|
||||
iwe_stream_add_value(info, event, value, ends, iwe, event_len)
|
||||
#define IWE_STREAM_ADD_POINT(info, stream, ends, iwe, extra) \
|
||||
iwe_stream_add_point(info, stream, ends, iwe, extra)
|
||||
|
||||
extern int dhd_pno_enable(dhd_pub_t *dhd, int pfn_enabled);
|
||||
extern int dhd_pno_clean(dhd_pub_t *dhd);
|
||||
extern int dhd_pno_set(dhd_pub_t *dhd, wlc_ssid_t *ssids_local, int nssid,
|
||||
unsigned char scan_fr);
|
||||
extern int dhd_pno_get_status(dhd_pub_t *dhd);
|
||||
extern int dhd_dev_pno_reset(struct net_device *dev);
|
||||
extern int dhd_dev_pno_set(struct net_device *dev, wlc_ssid_t *ssids_local,
|
||||
int nssid, unsigned char scan_fr);
|
||||
extern int dhd_dev_pno_enable(struct net_device *dev, int pfn_enabled);
|
||||
extern int dhd_dev_get_pno_status(struct net_device *dev);
|
||||
|
||||
#define PNO_TLV_PREFIX 'S'
|
||||
#define PNO_TLV_VERSION 1
|
||||
#define PNO_TLV_SUBVERSION 0
|
||||
#define PNO_TLV_RESERVED 0
|
||||
#define PNO_TLV_TYPE_SSID_IE 'S'
|
||||
#define PNO_TLV_TYPE_TIME 'T'
|
||||
#define PNO_EVENT_UP "PNO_EVENT"
|
||||
|
||||
#endif /* _wl_iw_h_ */
|
Loading…
Add table
Reference in a new issue