mlme.c (40a27ea07949a022a083de28da99f8f472242e2e) mlme.c (cb71f1d136a635decf43c3b502ee34fb05640fcd)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * BSS client mode implementation
4 * Copyright 2003-2008, Jouni Malinen <j@w1.fi>
5 * Copyright 2004, Instant802 Networks, Inc.
6 * Copyright 2005, Devicescape Software, Inc.
7 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz>
8 * Copyright 2007, Michael Wu <flamingice@sourmilk.net>

--- 5565 unchanged lines hidden (view full) ---

5574
5575 if (assoc) {
5576 rcu_read_lock();
5577 have_sta = sta_info_get(sdata, cbss->bssid);
5578 rcu_read_unlock();
5579 }
5580
5581 if (!have_sta) {
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * BSS client mode implementation
4 * Copyright 2003-2008, Jouni Malinen <j@w1.fi>
5 * Copyright 2004, Instant802 Networks, Inc.
6 * Copyright 2005, Devicescape Software, Inc.
7 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz>
8 * Copyright 2007, Michael Wu <flamingice@sourmilk.net>

--- 5565 unchanged lines hidden (view full) ---

5574
5575 if (assoc) {
5576 rcu_read_lock();
5577 have_sta = sta_info_get(sdata, cbss->bssid);
5578 rcu_read_unlock();
5579 }
5580
5581 if (!have_sta) {
5582 new_sta = sta_info_alloc(sdata, cbss->bssid, GFP_KERNEL);
5582 new_sta = sta_info_alloc(sdata, cbss->bssid, -1, GFP_KERNEL);
5583 if (!new_sta)
5584 return -ENOMEM;
5585 }
5586
5587 /*
5588 * Set up the information for the new channel before setting the
5589 * new channel. We can't - completely race-free - change the basic
5590 * rates bitmap and the channel (sband) that it refers to, but if

--- 831 unchanged lines hidden ---
5583 if (!new_sta)
5584 return -ENOMEM;
5585 }
5586
5587 /*
5588 * Set up the information for the new channel before setting the
5589 * new channel. We can't - completely race-free - change the basic
5590 * rates bitmap and the channel (sband) that it refers to, but if

--- 831 unchanged lines hidden ---