• J
    mac80211: fix key hwaccel race · 3a245766
    Johannes Berg 提交于
    The previous key locking patch left a small race: it would be possible
    to add a key and take the interface down before the key todo is run so
    that hwaccel for that key is enabled on an interface that is down. Avoid
    this by running the todo list when an interface is brought up or down.
    
    This patch also fixes a small bug: before this change, a few functions
    used the key list without the lock that protects it.
    Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
    Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
    3a245766
key.h 4.3 KB