sta_info.h (d0709a65181beb787ef3f58cfe45536a2bb254c8) | sta_info.h (73651ee6396c499ccb59ebc84c9274db01ed026d) |
---|---|
1/* 2 * Copyright 2002-2005, Devicescape Software, Inc. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 as 6 * published by the Free Software Foundation. 7 */ 8 --- 269 unchanged lines hidden (view full) --- 278 */ 279struct sta_info *sta_info_get(struct ieee80211_local *local, u8 *addr); 280/* 281 * Get STA info by index, BROKEN! 282 */ 283struct sta_info *sta_info_get_by_idx(struct ieee80211_local *local, int idx, 284 struct net_device *dev); 285/* | 1/* 2 * Copyright 2002-2005, Devicescape Software, Inc. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 as 6 * published by the Free Software Foundation. 7 */ 8 --- 269 unchanged lines hidden (view full) --- 278 */ 279struct sta_info *sta_info_get(struct ieee80211_local *local, u8 *addr); 280/* 281 * Get STA info by index, BROKEN! 282 */ 283struct sta_info *sta_info_get_by_idx(struct ieee80211_local *local, int idx, 284 struct net_device *dev); 285/* |
286 * Add a new STA info, must be under RCU read lock 287 * because otherwise the returned reference isn't 288 * necessarily valid long enough. | 286 * Create a new STA info, caller owns returned structure 287 * until sta_info_insert(). |
289 */ | 288 */ |
290struct sta_info *sta_info_add(struct ieee80211_sub_if_data *sdata, 291 u8 *addr); | 289struct sta_info *sta_info_alloc(struct ieee80211_sub_if_data *sdata, 290 u8 *addr, gfp_t gfp); |
292/* | 291/* |
292 * Insert STA info into hash table/list, returns zero or a 293 * -EEXIST if (if the same MAC address is already present). 294 * 295 * Calling this without RCU protection makes the caller 296 * relinquish its reference to @sta. 297 */ 298int sta_info_insert(struct sta_info *sta); 299/* |
|
293 * Unlink a STA info from the hash table/list. 294 * This can NULL the STA pointer if somebody else 295 * has already unlinked it. 296 */ 297void sta_info_unlink(struct sta_info **sta); 298 299void sta_info_destroy(struct sta_info *sta); 300void sta_info_set_tim_bit(struct sta_info *sta); 301void sta_info_clear_tim_bit(struct sta_info *sta); 302 303void sta_info_init(struct ieee80211_local *local); 304int sta_info_start(struct ieee80211_local *local); 305void sta_info_stop(struct ieee80211_local *local); 306void sta_info_flush(struct ieee80211_local *local, 307 struct ieee80211_sub_if_data *sdata); 308 309#endif /* STA_INFO_H */ | 300 * Unlink a STA info from the hash table/list. 301 * This can NULL the STA pointer if somebody else 302 * has already unlinked it. 303 */ 304void sta_info_unlink(struct sta_info **sta); 305 306void sta_info_destroy(struct sta_info *sta); 307void sta_info_set_tim_bit(struct sta_info *sta); 308void sta_info_clear_tim_bit(struct sta_info *sta); 309 310void sta_info_init(struct ieee80211_local *local); 311int sta_info_start(struct ieee80211_local *local); 312void sta_info_stop(struct ieee80211_local *local); 313void sta_info_flush(struct ieee80211_local *local, 314 struct ieee80211_sub_if_data *sdata); 315 316#endif /* STA_INFO_H */ |