sta_info.c (8d1f7ecd2af55c0c82ffd2bff0ef0b26f16ea69f) | sta_info.c (87f59c70ce6d1abeaaf97594835be29f746b81a0) |
---|---|
1/* 2 * Copyright 2002-2005, Instant802 Networks, Inc. 3 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 */ --- 328 unchanged lines hidden (view full) --- 337 sta = kzalloc(sizeof(*sta) + local->hw.sta_data_size, gfp); 338 if (!sta) 339 return NULL; 340 341 spin_lock_init(&sta->lock); 342 INIT_WORK(&sta->drv_unblock_wk, sta_unblock); 343 INIT_WORK(&sta->ampdu_mlme.work, ieee80211_ba_session_work); 344 mutex_init(&sta->ampdu_mlme.mtx); | 1/* 2 * Copyright 2002-2005, Instant802 Networks, Inc. 3 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 */ --- 328 unchanged lines hidden (view full) --- 337 sta = kzalloc(sizeof(*sta) + local->hw.sta_data_size, gfp); 338 if (!sta) 339 return NULL; 340 341 spin_lock_init(&sta->lock); 342 INIT_WORK(&sta->drv_unblock_wk, sta_unblock); 343 INIT_WORK(&sta->ampdu_mlme.work, ieee80211_ba_session_work); 344 mutex_init(&sta->ampdu_mlme.mtx); |
345#ifdef CONFIG_MAC80211_MESH 346 if (ieee80211_vif_is_mesh(&sdata->vif) && 347 !sdata->u.mesh.user_mpm) 348 init_timer(&sta->plink_timer); 349#endif |
|
345 346 memcpy(sta->sta.addr, addr, ETH_ALEN); 347 sta->local = local; 348 sta->sdata = sdata; 349 sta->last_rx = jiffies; 350 351 sta->sta_state = IEEE80211_STA_NONE; 352 --- 1166 unchanged lines hidden --- | 350 351 memcpy(sta->sta.addr, addr, ETH_ALEN); 352 sta->local = local; 353 sta->sdata = sdata; 354 sta->last_rx = jiffies; 355 356 sta->sta_state = IEEE80211_STA_NONE; 357 --- 1166 unchanged lines hidden --- |