Skip to contentSkip to conversation

rtl8187: remove NICMAC setting in configure_filters callback

PATCH In review Michael Wu 2 participants 3 messages Oct 12, 2007 Networking drivers (wireless)

lore
Share & tools
lore

Michael Wu

author
#0 lore raw

PATCH 1/1 rtl8187: remove NICMAC setting in configure_filters callback

From: Michael Wu <[email protected]>

NICMAC should always be set.

---

 drivers/net/wireless/rtl8187_dev.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/net/wireless/rtl8187_dev.c +0 -4
index 643919a..590f4b4 100644
@@ -588,8 +588,6 @@ static void rtl8187_configure_filter(struct ieee80211_hw *dev,
 
 	*total_flags = 0;
 
-	if (changed_flags & FIF_PROMISC_IN_BSS)
-		priv->rx_conf ^= RTL818X_RX_CONF_NICMAC;
 	if (changed_flags & FIF_ALLMULTI)
 		priv->rx_conf ^= RTL818X_RX_CONF_MULTICAST;
 	if (changed_flags & FIF_FCSFAIL)
@@ -602,8 +600,6 @@ static void rtl8187_configure_filter(struct ieee80211_hw *dev,
 	if (mc_count > 0)
 		priv->rx_conf |= RTL818X_RX_CONF_MULTICAST;
 
-	if (priv->rx_conf & RTL818X_RX_CONF_NICMAC)
-		*total_flags |= FIF_PROMISC_IN_BSS;
 	if (priv->rx_conf & RTL818X_RX_CONF_MULTICAST)
 		*total_flags |= FIF_ALLMULTI;
 	if (priv->rx_conf & RTL818X_RX_CONF_FCS)
maintainer
#1 lore raw

drivers/net/wireless/rtl8187_dev.c static void rtl8187_configure_filter(struct ieee80211_hw *dev, · line 606

Quoted 6 lines · Michael Wu
drivers/net/wireless/rtl8187_dev.c +0 -2
@@ -602,8 +600,6 @@ static void rtl8187_configure_filter(struct ieee80211_hw *dev,
 	if (mc_count > 0)
 		priv->rx_conf |= RTL818X_RX_CONF_MULTICAST;
 
-	if (priv->rx_conf & RTL818X_RX_CONF_NICMAC)
-		*total_flags |= FIF_PROMISC_IN_BSS;

Does this mean you're always operating promiscuously, or was this a bug? If the latter, do you not support promisc at all? Or should the FIF flag always be set?

johannes

author
#2 lore raw
Quoted 1 line · Johannes Berg

Does this mean you're always operating promiscuously, or was this a bug?

Just a bug.

Quoted 2 lines

If the latter, do you not support promisc at all? Or should the FIF flag always be set?

I think it can be done by a different bit, but I need to check.

-Michael Wu