Commit 5ecc2a5d3e3c39535d2cc10dad15853e9e9b072d
Committed by
David S. Miller
1 parent
478f8d2ba5
Exists in
master
and in
7 other branches
[MAC80211]: Update beacon_update callback documentation
Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 8 additions and 1 deletions Side-by-side Diff
include/net/mac80211.h
... | ... | @@ -996,7 +996,14 @@ |
996 | 996 | * |
997 | 997 | * @beacon_update: Setup beacon data for IBSS beacons. Unlike access point, |
998 | 998 | * IBSS uses a fixed beacon frame which is configured using this |
999 | - * function. This handler is required only for IBSS mode. | |
999 | + * function. | |
1000 | + * If the driver returns success (0) from this callback, it owns | |
1001 | + * the skb. That means the driver is responsible to kfree_skb() it. | |
1002 | + * The control structure is not dynamically allocated. That means the | |
1003 | + * driver does not own the pointer and if it needs it somewhere | |
1004 | + * outside of the context of this function, it must copy it | |
1005 | + * somewhere else. | |
1006 | + * This handler is required only for IBSS mode. | |
1000 | 1007 | * |
1001 | 1008 | * @tx_last_beacon: Determine whether the last IBSS beacon was sent by us. |
1002 | 1009 | * This is needed only for IBSS mode and the result of this function is |