staging: rtl8192e: Remove constant variable promiscuous_on
Remove variable promiscuous_on as it is set to 0 and unchanged. The equation results accordingly. Remove dead code. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/07936bcc6a426d6f6d74bece2970ab6028abef44.1696360404.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1e420c1980
commit
ff56e82adf
@ -706,10 +706,7 @@ void rtl92e_link_change(struct net_device *dev)
|
||||
|
||||
reg = rtl92e_readl(dev, RCR);
|
||||
if (priv->rtllib->link_state == MAC80211_LINKED) {
|
||||
if (ieee->intel_promiscuous_md_info.promiscuous_on)
|
||||
;
|
||||
else
|
||||
priv->receive_config = reg |= RCR_CBSSID;
|
||||
priv->receive_config = reg |= RCR_CBSSID;
|
||||
} else {
|
||||
priv->receive_config = reg &= ~RCR_CBSSID;
|
||||
}
|
||||
|
@ -740,7 +740,6 @@ static void _rtl92e_init_priv_variable(struct net_device *dev)
|
||||
priv->rtllib->mode = WIRELESS_MODE_AUTO;
|
||||
priv->rtllib->iw_mode = IW_MODE_INFRA;
|
||||
priv->rtllib->net_promiscuous_md = false;
|
||||
priv->rtllib->intel_promiscuous_md_info.promiscuous_on = false;
|
||||
priv->rtllib->ieee_up = 0;
|
||||
priv->retry_rts = DEFAULT_RETRY_RTS;
|
||||
priv->retry_data = DEFAULT_RETRY_DATA;
|
||||
|
@ -1175,10 +1175,6 @@ struct rt_pmkid_list {
|
||||
u8 bUsed;
|
||||
};
|
||||
|
||||
struct rt_intel_promisc_mode {
|
||||
bool promiscuous_on;
|
||||
};
|
||||
|
||||
/*************** DRIVER STATUS *****/
|
||||
#define STATUS_SCANNING 0
|
||||
/*************** DRIVER STATUS *****/
|
||||
@ -1258,7 +1254,6 @@ struct rtllib_device {
|
||||
|
||||
int iw_mode; /* operating mode (IW_MODE_*) */
|
||||
bool net_promiscuous_md;
|
||||
struct rt_intel_promisc_mode intel_promiscuous_md_info;
|
||||
|
||||
spinlock_t lock;
|
||||
spinlock_t wpax_suitlist_lock;
|
||||
|
@ -959,18 +959,16 @@ static int rtllib_rx_data_filter(struct rtllib_device *ieee, struct ieee80211_hd
|
||||
/* Nullfunc frames may have PS-bit set, so they must be passed to
|
||||
* hostap_handle_sta_rx() before being dropped here.
|
||||
*/
|
||||
if (!ieee->intel_promiscuous_md_info.promiscuous_on) {
|
||||
if (stype != IEEE80211_STYPE_DATA &&
|
||||
stype != IEEE80211_STYPE_DATA_CFACK &&
|
||||
stype != IEEE80211_STYPE_DATA_CFPOLL &&
|
||||
stype != IEEE80211_STYPE_DATA_CFACKPOLL &&
|
||||
stype != IEEE80211_STYPE_QOS_DATA) {
|
||||
if (stype != IEEE80211_STYPE_NULLFUNC)
|
||||
netdev_dbg(ieee->dev,
|
||||
"RX: dropped data frame with no data (type=0x%02x, subtype=0x%02x)\n",
|
||||
type, stype);
|
||||
return -1;
|
||||
}
|
||||
if (stype != IEEE80211_STYPE_DATA &&
|
||||
stype != IEEE80211_STYPE_DATA_CFACK &&
|
||||
stype != IEEE80211_STYPE_DATA_CFPOLL &&
|
||||
stype != IEEE80211_STYPE_DATA_CFACKPOLL &&
|
||||
stype != IEEE80211_STYPE_QOS_DATA) {
|
||||
if (stype != IEEE80211_STYPE_NULLFUNC)
|
||||
netdev_dbg(ieee->dev,
|
||||
"RX: dropped data frame with no data (type=0x%02x, subtype=0x%02x)\n",
|
||||
type, stype);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* packets from our adapter are dropped (echo) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user