mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
[MAC80211]: improve locking of sta_info related structures
The sta_info code has some awkward locking which prevents some driver callbacks from being allowed to sleep. This patch makes the locking more focused so code that calls driver callbacks are allowed to sleep. It also converts sta_lock to a rwlock. Signed-off-by: Michael Wu <flamingice@sourmilk.net> Signed-off-by: Jiri Benc <jbenc@suse.cz> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
c2d1560ad8
commit
be8755e180
8 changed files with 109 additions and 136 deletions
|
@ -626,8 +626,7 @@ struct ieee80211_ops {
|
|||
* station hwaddr for individual keys. aid of the station is given
|
||||
* to help low-level driver in selecting which key->hw_key_idx to use
|
||||
* for this key. TX control data will use the hw_key_idx selected by
|
||||
* the low-level driver.
|
||||
* Must be atomic. */
|
||||
* the low-level driver. */
|
||||
int (*set_key)(struct ieee80211_hw *hw, set_key_cmd cmd,
|
||||
u8 *addr, struct ieee80211_key_conf *key, int aid);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue