debugfs.c (99baaf924a30b240622a42fdab0fff3ffa8138cc) debugfs.c (5970442592aae455eb45d7e099b9dcfdb88d4c1b)
1// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2/*
3 * Copyright (C) 2012-2014, 2018-2023 Intel Corporation
4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH
5 * Copyright (C) 2016-2017 Intel Deutschland GmbH
6 */
7#include <linux/vmalloc.h>
8#include <linux/err.h>
9#include <linux/ieee80211.h>
10#include <linux/netdevice.h>
11#include <linux/dmi.h>
12
13#include "mvm.h"
14#include "sta.h"
15#include "iwl-io.h"
16#include "debugfs.h"
17#include "iwl-modparams.h"
18#include "iwl-drv.h"
1// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2/*
3 * Copyright (C) 2012-2014, 2018-2023 Intel Corporation
4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH
5 * Copyright (C) 2016-2017 Intel Deutschland GmbH
6 */
7#include <linux/vmalloc.h>
8#include <linux/err.h>
9#include <linux/ieee80211.h>
10#include <linux/netdevice.h>
11#include <linux/dmi.h>
12
13#include "mvm.h"
14#include "sta.h"
15#include "iwl-io.h"
16#include "debugfs.h"
17#include "iwl-modparams.h"
18#include "iwl-drv.h"
19#include "iwl-utils.h"
19#include "fw/error-dump.h"
20#include "fw/api/phy-ctxt.h"
21
22static ssize_t iwl_dbgfs_ctdp_budget_read(struct file *file,
23 char __user *user_buf,
24 size_t count, loff_t *ppos)
25{
26 struct iwl_mvm *mvm = file->private_data;

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

1408 beacon_cmd.link_id = cpu_to_le32((u32)mvmvif->id);
1409
1410 iwl_mvm_mac_ctxt_set_tim(mvm, &beacon_cmd.tim_idx,
1411 &beacon_cmd.tim_size,
1412 beacon->data, beacon->len);
1413
1414 if (iwl_fw_lookup_cmd_ver(mvm->fw,
1415 BEACON_TEMPLATE_CMD, 0) >= 14) {
20#include "fw/error-dump.h"
21#include "fw/api/phy-ctxt.h"
22
23static ssize_t iwl_dbgfs_ctdp_budget_read(struct file *file,
24 char __user *user_buf,
25 size_t count, loff_t *ppos)
26{
27 struct iwl_mvm *mvm = file->private_data;

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

1409 beacon_cmd.link_id = cpu_to_le32((u32)mvmvif->id);
1410
1411 iwl_mvm_mac_ctxt_set_tim(mvm, &beacon_cmd.tim_idx,
1412 &beacon_cmd.tim_size,
1413 beacon->data, beacon->len);
1414
1415 if (iwl_fw_lookup_cmd_ver(mvm->fw,
1416 BEACON_TEMPLATE_CMD, 0) >= 14) {
1416 u32 offset = iwl_mvm_find_ie_offset(beacon->data,
1417 WLAN_EID_S1G_TWT,
1418 beacon->len);
1417 u32 offset = iwl_find_ie_offset(beacon->data,
1418 WLAN_EID_S1G_TWT,
1419 beacon->len);
1419
1420 beacon_cmd.btwt_offset = cpu_to_le32(offset);
1421 }
1422
1423 iwl_mvm_mac_ctxt_send_beacon_cmd(mvm, beacon, &beacon_cmd,
1424 sizeof(beacon_cmd));
1425 }
1426 mutex_unlock(&mvm->mutex);

--- 823 unchanged lines hidden ---
1420
1421 beacon_cmd.btwt_offset = cpu_to_le32(offset);
1422 }
1423
1424 iwl_mvm_mac_ctxt_send_beacon_cmd(mvm, beacon, &beacon_cmd,
1425 sizeof(beacon_cmd));
1426 }
1427 mutex_unlock(&mvm->mutex);

--- 823 unchanged lines hidden ---