diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-02-21 00:04:21 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-27 14:52:55 -0500 |
commit | a1794390f1afc3631ac056e0f1677b7ab6f7ee74 (patch) | |
tree | 0c5ff752ba69c6b002369e340e931ce5ef9df0d3 /net/wireless/core.h | |
parent | 85fd129a721e6e892dbaaf05203baf819730f699 (diff) |
cfg80211: rename cfg80211_drv_mutex to cfg80211_mutex
cfg80211_drv_mutex is protecting more than the driver list,
this renames it and documents what its currently supposed to
protect.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/core.h')
-rw-r--r-- | net/wireless/core.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/wireless/core.h b/net/wireless/core.h index 4f2e0fe38ce3..f3ab00cbf766 100644 --- a/net/wireless/core.h +++ b/net/wireless/core.h | |||
@@ -70,7 +70,7 @@ bool wiphy_idx_valid(int wiphy_idx) | |||
70 | return (wiphy_idx >= 0); | 70 | return (wiphy_idx >= 0); |
71 | } | 71 | } |
72 | 72 | ||
73 | extern struct mutex cfg80211_drv_mutex; | 73 | extern struct mutex cfg80211_mutex; |
74 | extern struct list_head cfg80211_drv_list; | 74 | extern struct list_head cfg80211_drv_list; |
75 | 75 | ||
76 | struct cfg80211_internal_bss { | 76 | struct cfg80211_internal_bss { |
@@ -89,13 +89,13 @@ struct cfg80211_internal_bss { | |||
89 | * the driver's mutex! | 89 | * the driver's mutex! |
90 | * | 90 | * |
91 | * This means that you need to call cfg80211_put_dev() | 91 | * This means that you need to call cfg80211_put_dev() |
92 | * before being allowed to acquire &cfg80211_drv_mutex! | 92 | * before being allowed to acquire &cfg80211_mutex! |
93 | * | 93 | * |
94 | * This is necessary because we need to lock the global | 94 | * This is necessary because we need to lock the global |
95 | * mutex to get an item off the list safely, and then | 95 | * mutex to get an item off the list safely, and then |
96 | * we lock the drv mutex so it doesn't go away under us. | 96 | * we lock the drv mutex so it doesn't go away under us. |
97 | * | 97 | * |
98 | * We don't want to keep cfg80211_drv_mutex locked | 98 | * We don't want to keep cfg80211_mutex locked |
99 | * for all the time in order to allow requests on | 99 | * for all the time in order to allow requests on |
100 | * other interfaces to go through at the same time. | 100 | * other interfaces to go through at the same time. |
101 | * | 101 | * |