testmode.c (78562b2cafc61a0c08dc949eacb942ac756aae37) | testmode.c (975e122ddb7cd6f67bff974d2ea00c5568d2014c) |
---|---|
1// SPDX-License-Identifier: ISC 2 3#include "mt7921.h" 4#include "mcu.h" 5 6enum mt7921_testmode_attr { 7 MT7921_TM_ATTR_UNSPEC, 8 MT7921_TM_ATTR_SET, --- 17 unchanged lines hidden (view full) --- 26}; 27 28static const struct nla_policy mt7921_tm_policy[NUM_MT7921_TM_ATTRS] = { 29 [MT7921_TM_ATTR_SET] = NLA_POLICY_EXACT_LEN(sizeof(struct mt7921_tm_cmd)), 30 [MT7921_TM_ATTR_QUERY] = NLA_POLICY_EXACT_LEN(sizeof(struct mt7921_tm_cmd)), 31}; 32 33static int | 1// SPDX-License-Identifier: ISC 2 3#include "mt7921.h" 4#include "mcu.h" 5 6enum mt7921_testmode_attr { 7 MT7921_TM_ATTR_UNSPEC, 8 MT7921_TM_ATTR_SET, --- 17 unchanged lines hidden (view full) --- 26}; 27 28static const struct nla_policy mt7921_tm_policy[NUM_MT7921_TM_ATTRS] = { 29 [MT7921_TM_ATTR_SET] = NLA_POLICY_EXACT_LEN(sizeof(struct mt7921_tm_cmd)), 30 [MT7921_TM_ATTR_QUERY] = NLA_POLICY_EXACT_LEN(sizeof(struct mt7921_tm_cmd)), 31}; 32 33static int |
34mt7921_tm_set(struct mt7921_dev *dev, struct mt7921_tm_cmd *req) | 34mt7921_tm_set(struct mt792x_dev *dev, struct mt7921_tm_cmd *req) |
35{ 36 struct mt7921_rftest_cmd cmd = { 37 .action = req->action, 38 .param0 = cpu_to_le32(req->param0), 39 .param1 = cpu_to_le32(req->param1), 40 }; 41 bool testmode = false, normal = false; 42 struct mt76_connac_pm *pm = &dev->pm; --- 34 unchanged lines hidden (view full) --- 77 } 78out: 79 mutex_unlock(&dev->mt76.mutex); 80 81 return ret; 82} 83 84static int | 35{ 36 struct mt7921_rftest_cmd cmd = { 37 .action = req->action, 38 .param0 = cpu_to_le32(req->param0), 39 .param1 = cpu_to_le32(req->param1), 40 }; 41 bool testmode = false, normal = false; 42 struct mt76_connac_pm *pm = &dev->pm; --- 34 unchanged lines hidden (view full) --- 77 } 78out: 79 mutex_unlock(&dev->mt76.mutex); 80 81 return ret; 82} 83 84static int |
85mt7921_tm_query(struct mt7921_dev *dev, struct mt7921_tm_cmd *req, | 85mt7921_tm_query(struct mt792x_dev *dev, struct mt7921_tm_cmd *req, |
86 struct mt7921_tm_evt *evt_resp) 87{ 88 struct mt7921_rftest_cmd cmd = { 89 .action = req->action, 90 .param0 = cpu_to_le32(req->param0), 91 .param1 = cpu_to_le32(req->param1), 92 }; 93 struct mt7921_rftest_evt *evt; --- 103 unchanged lines hidden --- | 86 struct mt7921_tm_evt *evt_resp) 87{ 88 struct mt7921_rftest_cmd cmd = { 89 .action = req->action, 90 .param0 = cpu_to_le32(req->param0), 91 .param1 = cpu_to_le32(req->param1), 92 }; 93 struct mt7921_rftest_evt *evt; --- 103 unchanged lines hidden --- |