Rewrite ieee80211_input_all()
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 30 Jul 2009 21:06:29 +0000 (21:06 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 30 Jul 2009 21:06:29 +0000 (21:06 +0000)
commita5b3087ab0ccdce0be21ca7474753059da511a4d
tree5ae1f2ede59242b0af1b51a1ca6eb5d69f3e79db
parent319a241c303bbcc143037f303909d8c20f10aab6
Rewrite ieee80211_input_all()

The logic to prevent calling ieee80211_input() on inactive VAPs was
flawed.  The first VAP was exempt from the check for no reason.

Rewrite to avoid having nested loops.  Give the original skb to the
first VAP, not to the last one, as the first VAP is easier to find in a
loop.  Process the first VAP after others.

Only collect the result from the first VAP.  ieee80211_input() should
return the same value (frame type) for all VAPs except if we call it
incorrectly, e.g. on an inactive VAP.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4081 0192ed92-7a03-0410-a25b-9323aeb14dbd
net80211/ieee80211_input.c