mac80211: fix RX path
Johannes Berg
maintainerPATCH 1/1 mac80211: fix RX path
My previous patch ("mac80211: remove mixed-cell and userspace MLME code") was too obvious to me, so obvious that a stupid bug crept in. The IBSS RX function must be invoked for IBSS, of course, not anything != IBSS.
Reported-by Larry Finger <[email protected]>
Signed-off-by Johannes Berg <[email protected]>
--- net/mac80211/rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac80211/rx.c +1 -1
@@ -1884,7 +1884,7 @@ ieee80211_rx_h_mgmt(struct ieee80211_rx_if (ieee80211_vif_is_mesh (&sdata->vif))return ieee80211_mesh_rx_mgmt (sdata, rx->skb, rx->status); -if (sdata->vif.type !=NL80211_IFTYPE_ADHOC ) +if (sdata->vif.type ==NL80211_IFTYPE_ADHOC )return ieee80211_ibss_rx_mgmt (sdata, rx->skb, rx->status);if (sdata->vif.type ==NL80211_IFTYPE_STATION )
Quoted 6 lines · Johannes Berg
My previous patch ("mac80211: remove mixed-cell and userspace MLME code") was too obvious to me, so obvious that a stupid bug crept in. The IBSS RX function must be invoked for IBSS, of course, not anything != IBSS.
Reported-by Larry Finger <[email protected]>Signed-off-by Johannes Berg <[email protected]>
Tested-by Larry Finger <[email protected]>
It now works.
Larry