mac80211: always insert key into list
authorJohannes Berg <johannes@sipsolutions.net>
Sat, 1 Mar 2008 18:32:18 +0000 (19:32 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 6 Mar 2008 20:30:47 +0000 (15:30 -0500)
commit96c46546e28282a743b97f26e94c7565350898b7
tree38a12aadd7c0fd3c30fafeae8f136d86881338a3
parent38968d096b9f497e7ec4590b6b80eb8679e3646a
mac80211: always insert key into list

Today I hit one of my new WARN_ONs in the mac80211 code because
a key wasn't being freed correctly. After wondering for a while
I finally tracked it to the fact that STA keys aren't added to
the per-sdata key list correctly, they are supposed to always be
on that list, not just for default keys. This patch fixes that.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/key.c