aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/driver-ops.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2010-01-21 05:40:47 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-01-22 16:08:55 -0500
commitb3fbdcf49f940d0703c356441e0daf045e64e076 (patch)
treef63416cc9b80a6757ec6fa57190f581b2b3a6d31 /net/mac80211/driver-ops.h
parente4fca007b06165900d0e44e8d5e251376819bf5d (diff)
mac80211: pass vif and station to update_tkip_key
When a TKIP key is updated, we should pass the station pointer instead of just the address, since drivers can use that to store their own data. We also need to pass the virtual interface pointer. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/driver-ops.h')
-rw-r--r--net/mac80211/driver-ops.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h
index de91d39e0276..40c6e9a89864 100644
--- a/net/mac80211/driver-ops.h
+++ b/net/mac80211/driver-ops.h
@@ -137,16 +137,22 @@ static inline int drv_set_key(struct ieee80211_local *local,
137} 137}
138 138
139static inline void drv_update_tkip_key(struct ieee80211_local *local, 139static inline void drv_update_tkip_key(struct ieee80211_local *local,
140 struct ieee80211_sub_if_data *sdata,
140 struct ieee80211_key_conf *conf, 141 struct ieee80211_key_conf *conf,
141 const u8 *address, u32 iv32, 142 struct sta_info *sta, u32 iv32,
142 u16 *phase1key) 143 u16 *phase1key)
143{ 144{
145 struct ieee80211_sta *ista = NULL;
146
144 might_sleep(); 147 might_sleep();
145 148
149 if (sta)
150 ista = &sta->sta;
151
146 if (local->ops->update_tkip_key) 152 if (local->ops->update_tkip_key)
147 local->ops->update_tkip_key(&local->hw, conf, address, 153 local->ops->update_tkip_key(&local->hw, &sdata->vif, conf,
148 iv32, phase1key); 154 ista, iv32, phase1key);
149 trace_drv_update_tkip_key(local, conf, address, iv32); 155 trace_drv_update_tkip_key(local, sdata, conf, ista, iv32);
150} 156}
151 157
152static inline int drv_hw_scan(struct ieee80211_local *local, 158static inline int drv_hw_scan(struct ieee80211_local *local,