]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: combine status/drop reporting
authorJohannes Berg <johannes.berg@intel.com>
Fri, 26 Oct 2012 13:53:06 +0000 (15:53 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 30 Oct 2012 08:33:23 +0000 (09:33 +0100)
commit169de1e28ff213d862f179eb2508e4975528e7cf
tree8dea8cad70797353fb6f94273715dec62e388d89
parent5718123a3b6b6000eb95ab220ab2b23473545471
mac80211: combine status/drop reporting

The TX status reporting is done for both the
nl80211 report as well as the socket option.
The socket option is also reported when an
skb is dropped to guarantee that the copy in
the IDR tree is freed and status is reported
to userspace.

However, when a frame is dropped, no nl80211
status is reported. This can cause userspace
to stop making progress while waiting for a
status notification.

Combine the nl80211 and socket option status
reporting into a new function and call it in
both places -- when the status comes in from
the driver and when the skb is dropped.

While at it, also simplify the code in the
nl80211 portion a bit.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/status.c