]> Pileus Git - ~andy/linux/commit
rt2x00: Only free skb when beacon_update fails
authorIvo van Doorn <ivdoorn@gmail.com>
Wed, 9 Apr 2008 18:46:27 +0000 (20:46 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 16 Apr 2008 18:53:22 +0000 (14:53 -0400)
commit171afcd4ba093b50cd2fb33fe2371fbc1f7fd389
tree88622a1891176fc1271f3f866ef239d6872dd674
parent3a245766901a9dfdc3f53457a7954b369b50f281
rt2x00: Only free skb when beacon_update fails

In rt2x00lib_intf_scheduled_iter() we use the hw->beacon_update()
callback function. This means that it should behave similarly as mac80211
when that uses the function.

This means that the skb should only be freed when beacon_update() has failed,
otherwise the driver is the owner and is responsible for freeing the buffer.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00dev.c