|
@@ -904,10 +904,11 @@ static u8 iwl_count_chain_bitmap(u32 chain_bitmap)
|
|
|
* never called for monitor mode. The only way mac80211 informs us about
|
|
|
* monitor mode is through configuring filters (call to configure_filter).
|
|
|
*/
|
|
|
-static bool iwl_is_monitor_mode(struct iwl_priv *priv)
|
|
|
+bool iwl_is_monitor_mode(struct iwl_priv *priv)
|
|
|
{
|
|
|
return !!(priv->staging_rxon.filter_flags & RXON_FILTER_PROMISC_MSK);
|
|
|
}
|
|
|
+EXPORT_SYMBOL(iwl_is_monitor_mode);
|
|
|
|
|
|
/**
|
|
|
* iwl_set_rxon_chain - Set up Rx chain usage in "staging" RXON image
|
|
@@ -1071,11 +1072,6 @@ void iwl_connection_init_rx_config(struct iwl_priv *priv, int mode)
|
|
|
RXON_FILTER_ACCEPT_GRP_MSK;
|
|
|
break;
|
|
|
|
|
|
- case NL80211_IFTYPE_MONITOR:
|
|
|
- priv->staging_rxon.dev_type = RXON_DEV_TYPE_SNIFFER;
|
|
|
- priv->staging_rxon.filter_flags = RXON_FILTER_PROMISC_MSK |
|
|
|
- RXON_FILTER_CTL2HOST_MSK | RXON_FILTER_ACCEPT_GRP_MSK;
|
|
|
- break;
|
|
|
default:
|
|
|
IWL_ERR(priv, "Unsupported interface type %d\n", mode);
|
|
|
break;
|