carl9170: split up carl9170_handle_mpdu
authorChristian Lamparter <chunkeey@googlemail.com>
Mon, 22 Oct 2012 13:01:29 +0000 (15:01 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 29 Oct 2012 19:20:35 +0000 (15:20 -0400)
commit6c4a5f2413da948e7d1d189c9d94f05afde8702a
treedca3bffd86fe67d0c9ea19a52504e3381b778a08
parentf3b369e40a0fbf975ab0e39c2104f184e188afc3
carl9170: split up carl9170_handle_mpdu

carl9170_handle_mpdu is the final part of the
rx path of the driver. It splits the raw data
streams from the device into skb packets and
passes them on to mac80211. As a result of
continuous updates, it grew over the years when
new code was added by the following commits:
- report A-MPDU status
- fix HT peer BA session corruption
- A-MPDU frame type filter
- ...

This patch splits the routine into two stages.
The first stage only deals with the details
about extracting and verifying the data from
the incoming stream. Whereas the second stage
packs it into skbs and passes it on to mac80211.

Reported-by: Javier Lopez <jlopex@cozybit.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/carl9170/rx.c