mesh_plink.c (40a27ea07949a022a083de28da99f8f472242e2e) | mesh_plink.c (cb71f1d136a635decf43c3b502ee34fb05640fcd) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (c) 2008, 2009 open80211s Ltd. 4 * Copyright (C) 2019, 2021-2022 Intel Corporation 5 * Author: Luis Carlos Cobo <luisca@cozybit.com> 6 */ 7#include <linux/gfp.h> 8#include <linux/kernel.h> --- 496 unchanged lines hidden (view full) --- 505 506 if (sdata->local->num_sta >= MESH_MAX_PLINKS) 507 return NULL; 508 509 aid = mesh_allocate_aid(sdata); 510 if (aid < 0) 511 return NULL; 512 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (c) 2008, 2009 open80211s Ltd. 4 * Copyright (C) 2019, 2021-2022 Intel Corporation 5 * Author: Luis Carlos Cobo <luisca@cozybit.com> 6 */ 7#include <linux/gfp.h> 8#include <linux/kernel.h> --- 496 unchanged lines hidden (view full) --- 505 506 if (sdata->local->num_sta >= MESH_MAX_PLINKS) 507 return NULL; 508 509 aid = mesh_allocate_aid(sdata); 510 if (aid < 0) 511 return NULL; 512 |
513 sta = sta_info_alloc(sdata, hw_addr, GFP_KERNEL); | 513 sta = sta_info_alloc(sdata, hw_addr, -1, GFP_KERNEL); |
514 if (!sta) 515 return NULL; 516 517 sta->mesh->plink_state = NL80211_PLINK_LISTEN; 518 sta->sta.wme = true; 519 sta->sta.aid = aid; 520 521 sta_info_pre_move_state(sta, IEEE80211_STA_AUTH); --- 714 unchanged lines hidden --- | 514 if (!sta) 515 return NULL; 516 517 sta->mesh->plink_state = NL80211_PLINK_LISTEN; 518 sta->sta.wme = true; 519 sta->sta.aid = aid; 520 521 sta_info_pre_move_state(sta, IEEE80211_STA_AUTH); --- 714 unchanged lines hidden --- |