diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-02-10 23:25:57 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-13 21:45:53 +0300 |
commit | 78c1c7e109f1f14e7c18f290c4ebc58da220c7ba (patch) | |
tree | 11d4666d578dc6f9ee4c57dfe3fb4e8498d9ed79 /include/net/cfg80211.h | |
parent | 99cf5f5f3571ce3a837e379d3b87bf5ddf54f17d (diff) | |
download | linux-78c1c7e109f1f14e7c18f290c4ebc58da220c7ba.tar.xz |
cfg80211: free_priv for BSS info
When cfg80211 users have their own allocated data in the per-BSS
private data, they will need to free this when the BSS struct is
destroyed. Add a free_priv method and fix one place where the BSS
was kfree'd rather than released properly.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 09a0b268e5cf..b514abcc2b93 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -567,6 +567,7 @@ enum cfg80211_signal_type { * @len_information_elements: total length of the information elements * @signal: signal strength value * @signal_type: signal type + * @free_priv: function pointer to free private data * @priv: private area for driver use, has at least wiphy->bss_priv_size bytes */ struct cfg80211_bss { @@ -582,6 +583,7 @@ struct cfg80211_bss { s32 signal; enum cfg80211_signal_type signal_type; + void (*free_priv)(struct cfg80211_bss *bss); u8 priv[0] __attribute__((__aligned__(sizeof(void *)))); }; |