ocb.c (b4f85443c17c7edb49c82fc1d28d26860c8c850d) ocb.c (cb71f1d136a635decf43c3b502ee34fb05640fcd)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * OCB mode implementation
4 *
5 * Copyright: (c) 2014 Czech Technical University in Prague
6 * (c) 2014 Volkswagen Group Research
7 * Copyright (C) 2022 Intel Corporation
8 * Author: Rostislav Lisovy <rostislav.lisovy@fel.cvut.cz>

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

64 if (WARN_ON_ONCE(!chanctx_conf)) {
65 rcu_read_unlock();
66 return;
67 }
68 band = chanctx_conf->def.chan->band;
69 scan_width = cfg80211_chandef_to_scan_width(&chanctx_conf->def);
70 rcu_read_unlock();
71
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * OCB mode implementation
4 *
5 * Copyright: (c) 2014 Czech Technical University in Prague
6 * (c) 2014 Volkswagen Group Research
7 * Copyright (C) 2022 Intel Corporation
8 * Author: Rostislav Lisovy <rostislav.lisovy@fel.cvut.cz>

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

64 if (WARN_ON_ONCE(!chanctx_conf)) {
65 rcu_read_unlock();
66 return;
67 }
68 band = chanctx_conf->def.chan->band;
69 scan_width = cfg80211_chandef_to_scan_width(&chanctx_conf->def);
70 rcu_read_unlock();
71
72 sta = sta_info_alloc(sdata, addr, GFP_ATOMIC);
72 sta = sta_info_alloc(sdata, addr, -1, GFP_ATOMIC);
73 if (!sta)
74 return;
75
76 /* Add only mandatory rates for now */
77 sband = local->hw.wiphy->bands[band];
78 sta->sta.deflink.supp_rates[band] =
79 ieee80211_mandatory_rates(sband, scan_width);
80

--- 166 unchanged lines hidden ---
73 if (!sta)
74 return;
75
76 /* Add only mandatory rates for now */
77 sband = local->hw.wiphy->bands[band];
78 sta->sta.deflink.supp_rates[band] =
79 ieee80211_mandatory_rates(sband, scan_width);
80

--- 166 unchanged lines hidden ---