Benign repos download unavailable

main.c

Assigns a negative errno constantCopies bytes with native memcpy
SHA-256dc4a002f9f9b0a3bd2f564962e0c4a6c626abb6e83c32abfcb5267eb82e010ee

Evidence

imports mac.h lines 1–15
1// SPDX-License-Identifier: BSD-3-Clause-Clear
2/*
3 * Copyright (C) 2022 MediaTek Inc.
4 */
5
6#include "mt7996.h"
7#include "mcu.h"
8#include "mac.h"
9
10int mt7996_run(struct mt7996_phy *phy)
⋯5 lines
Kernel error code return lines 157–171
157:7… = get_free_idx(mask, 0, 15);
158 if (idx)
159 return idx - 1;
160 }
161
162 return -EINVAL;
163}
164
165static void
166mt7996_init_bitrate_mask(struct ieee80211_vif *vif, struct mt7996_vif_link *mlink)
167{
168 int i;
169
170 for (i = 0; i < ARRAY_SIZE(mlink->bitrate_mask.control); i++) {
171 mlink->bitrate_mask.control[i].gi …
Assigns a negative errno constant lines 1076–1085
1076:18… k_conf_dereference_protected(vif, link_id);
1077 if (!link_conf) {
1078 err = -EINVAL;
1079 goto error_unlink;
1080 }
⋯5 lines
Copies bytes with native memcpy lines 1331–1336
1331:22… reference(sta->link[msta->deflink_id]);
1332
1333 if (link_sta) {
1334 memcpy(hdr->addr1, link_sta->addr, ETH_ALEN);
1335 if (ether_addr_equal(sta->addr, hdr->addr3))
1336 memcpy(hdr->addr3, link_sta->addr, ETH_ …
C declares a character or byte buffer lines 1858–1870
⋯4 lines
1862}
1863
1864static const char mt7996_gstrings_stats[][ETH_GSTRING_LEN] = {
1865 "tx_ampdu_cnt",
1866 "tx_stop_q_empty_cnt",
⋯4 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.