pmsr.c
Removes an entry from a linked listAssigns a negative errno constant
SHA-256bdbb74b57c4eb8175b03770ea841ee0df6a371290da2d147cff6e95b58c67baa
MaleculeO(Er)H(Db₂)
Evidence
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2018 - 2021, 2023 - 2024 Intel Corporation
4 */
5#include <net/cfg80211.h>
6#include "core.h"
7#include "nl80211.h"
8#include "rdev-ops.h"
9
10static int pmsr_parse_ftm(struct cfg80211_registered_device *rdev,
11 struct nlattr *ftmre …
21 NL_SET_ERR_MSG(info->extack, "FTM: unsupported bandwidth");
22 return -EINVAL;
23 }
24
25 /* no validation needed - was already done via nested policy */
26 nla_parse_nested_deprecated(tb, NL80211_PMSR_FTM_REQ_ATT …
225:37… peer,
226 "insufficient peer data");
227 return -EINVAL;
228 }
229
230 memcpy(out->addr, nla_data(tb[NL80211_PMSR_PEER_ATTR_ADDR]), ETH_ALEN);
231
232 /* reuse info->attrs */
233 memset(info->attrs, 0, sizeof(*info->attrs) * (NL80211_ATTR_MAX + 1));
234 err = nla_parse_nested_depreca …
272:22… R(info->extack, treq,
273 "unsupported measurement type");
274 err = -EINVAL;
275 }
276 }
⋯10 lines
406:23… afe(tmp, prev, &wdev->pmsr_list, list) {
407 if (tmp == req) {
408 list_del(&req->list);
409 to_free = req;
410 break;
⋯6 lines