mac80211: remove support for IFF_PROMISC
This support is essentially useless as typically networks are encrypted, frames will be filtered by hardware, and rate scaling will be done with the intended recipient in mind. For real monitoring of the network, the monitor mode support should be used instead. Removing it removes a lot of corner cases. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
此提交包含在:
@@ -1353,12 +1353,7 @@ static void adm8211_configure_filter(struct ieee80211_hw *dev,
|
||||
|
||||
new_flags = 0;
|
||||
|
||||
if (*total_flags & FIF_PROMISC_IN_BSS) {
|
||||
new_flags |= FIF_PROMISC_IN_BSS;
|
||||
priv->nar |= ADM8211_NAR_PR;
|
||||
priv->nar &= ~ADM8211_NAR_MM;
|
||||
mc_filter[1] = mc_filter[0] = ~0;
|
||||
} else if (*total_flags & FIF_ALLMULTI || multicast == ~(0ULL)) {
|
||||
if (*total_flags & FIF_ALLMULTI || multicast == ~(0ULL)) {
|
||||
new_flags |= FIF_ALLMULTI;
|
||||
priv->nar &= ~ADM8211_NAR_PR;
|
||||
priv->nar |= ADM8211_NAR_MM;
|
||||
|
新增問題並參考
封鎖使用者