sta_info.c (62be69397e53ab14f607698bb41343ce576713e8) sta_info.c (59336e07b287d91dc4ec265e07724e8f7e3d0209)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright 2002-2005, Instant802 Networks, Inc.
4 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz>
5 * Copyright 2013-2014 Intel Mobile Communications GmbH
6 * Copyright (C) 2015 - 2017 Intel Deutschland GmbH
7 * Copyright (C) 2018-2022 Intel Corporation
8 */

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

2413 rinfo->eht_gi = STA_STATS_GET(EHT_GI, rate);
2414 rinfo->eht_ru_alloc = STA_STATS_GET(EHT_RU, rate);
2415 break;
2416 }
2417}
2418
2419static int sta_set_rate_info_rx(struct sta_info *sta, struct rate_info *rinfo)
2420{
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright 2002-2005, Instant802 Networks, Inc.
4 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz>
5 * Copyright 2013-2014 Intel Mobile Communications GmbH
6 * Copyright (C) 2015 - 2017 Intel Deutschland GmbH
7 * Copyright (C) 2018-2022 Intel Corporation
8 */

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

2413 rinfo->eht_gi = STA_STATS_GET(EHT_GI, rate);
2414 rinfo->eht_ru_alloc = STA_STATS_GET(EHT_RU, rate);
2415 break;
2416 }
2417}
2418
2419static int sta_set_rate_info_rx(struct sta_info *sta, struct rate_info *rinfo)
2420{
2421 u16 rate = READ_ONCE(sta_get_last_rx_stats(sta)->last_rate);
2421 u32 rate = READ_ONCE(sta_get_last_rx_stats(sta)->last_rate);
2422
2423 if (rate == STA_STATS_RATE_INVALID)
2424 return -EINVAL;
2425
2426 sta_stats_decode_rate(sta->local, rate, rinfo);
2427 return 0;
2428}
2429

--- 537 unchanged lines hidden ---
2422
2423 if (rate == STA_STATS_RATE_INVALID)
2424 return -EINVAL;
2425
2426 sta_stats_decode_rate(sta->local, rate, rinfo);
2427 return 0;
2428}
2429

--- 537 unchanged lines hidden ---