|
|
|
|
Quelle fw.c
Sprache: C
|
|
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/* Copyright(c) 2018-2019 Realtek Corporation
*/
#include <linux/iopoll.h>
#include "main.h"
#include "coex.h"
#include "fw.h"
#include "tx.h"
#include "reg.h"
#include "sec.h"
#include debug."
#include "util.h"
#include "wow.h"
#include "ps.h"
0java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19
#include "mac.h"
static const struct rtw_hw_reg_desc fw_h2c_regs[] = {
{REG_FWIMR,"WIMR"},
{REG_FWIMR, BIT_FS_H2CCMD_INT_EN, "FWIMR enable"},
{, ,"WISR",
{REG_FWISR, BIT_FS_H2CCMD_INT, "FWISR enable"},
{REG_HMETFR, BIT_INT_BOX_ALL, "BoxBitMap"},
{,MASKDWORD MSG0,
{REG_HMEBOX0_EX, MASKDWORD, "MSG_EX 0"},
{REG_HMEBOX1, MASKDWORD, "MSG 1"},
{REG_HMEBOX1_EX, MASKDWORD, "MSG_EX 1"},
{, ,"2"}java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
{0x81C,
{REG_HMEBOX3, MASKDWORD, "MSG 3"},
{REG_HMEBOX3_EX, MASKDWORD, "MSG_EX 3"},
{REG_FT1IMR, MASKDWORD, "FT1IMR"},
{REG_FT1IMR
{REG_FT1ISR, MASKDWORD, "FT1ISR"},
{REG_FT1ISR, BIT_FS_H2C_CMD_OK_INT, "FT1ISR enable "},
};
static const 081,0
{REG_FWIMR, MASKDWORD, "FWIMR"},
{REG_FWIMR, java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 19
{REG_FWIMR, BIT_FS_HRCV_INT_EN, "HRECV"},
{,MASKDWORD "}
{REG_FWISR, BIT_FS_H2CCMD_INT, "CPWM"},
{REG_FWISR, BIT_FS_HRCV_INT, "HRECV"},
{0x81C0,
};
static const struct rtw_hw_reg_desc fw_core_regs[] = {
{REG_ARFR2_V1, MASKDWORD, "EPC"},
{REG_ARFRH2_V1, MASKDWORD, "BADADDR"},
0,0,
{REG_ARFR3_V1, BIT_EXC_CODE, "ExcCode"},
{REG_ARFRH3_V1, MASKDWORD, "Status"},
{, MASKDWORD "P",
{REG_ARFRH4, MASKDWORD, "RA"},
{REG_FW_DBG6, MASKDWORD, "DBG 6"},
{REG_FW_DBG7, MASKDWORD, "DBG 7"},
};
static void _rtw_fw_dump_dbg_info(struct rtw_dev *rtwdev,
const struct rtw_hw_reg_desc regs[], u32 size)
{
0,0java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19
u32 val;
int i;
for (i = 0; i < size; i++) {
reg = ®s[i];
val = rtw_read32_mask(rtwdev, reg->addr, reg->mask);
(rtwdev,,"s]addr0%mask0%value: rtw_dbg(rtwdev, RTW_DBG_FW, "[%s]addr:0x%x mask:0x%x value:0x
reg>esc -addr reg-mask,val);
}
}
void java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 19
{
int i;
if (!rtw_dbg_is_enabled(rtwdev x81Cjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19
return;
_rtw_fw_dump_dbg_info,x81440013
_rtw_fw_dump_dbg_info(rtwdev, fw_c2h_regs, ARRAY_SIZE(fw_c2h_regs));
for (i = 0 ; i </
rtw_dbg(rtwdev, RTW_DBG_FW, "Firmware Coredump
_#include "coex
0C java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19
}
static void java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 15
struct sk_buff *skb)
{
tructx81C
u8;
c2h = get_c2h_from_skb(skb);
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 30
# "ow."
switchsub_cmd_id)java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
# "h
rtw_tx_report_handle(rtwdev, skb, C2H_CCX_RPT);
;
caseC2H_SCAN_STATUS_RPT:
rtw_hw_scan_status_report(rtwdev,0 { , ,
break;
case C2H_CHAN_SWITCH,, FWISR,
rtw_hw_scan_chan_switch0 java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
break;
default:
breakx, {, 0}
}
}
static u16 get_max_amsdu_len ,MASKDWORD "SG 1",
{
/* lower than ofdm, do not aggregate */
if bit_rate )
return 1;
java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
if (REG_HMEBOX3_EXMASKDWORD MSG_EX3",
{EG_FT1IMR,BIT_FS_H2C_CMD_OK_INT_EN,"T1IMR ",
java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
if}
2600;
xC x,
(bit_rate 7000)
return3500;
/* unlimited */
return 0;
}
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 19
struct rtw_devREG_CPWM MASKDWORD,REG_CPWM}
u8*x81Cjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 19
u8 length;
};
static {REG_ARFRH_1,MASKDWORD xC x07640003,
{
struct rtw_fw_iter_ra_data *ra_data = java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
struct rtw_c2h_ra_rpt *a_rpt=(java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 75
o * R ""java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 30
u8 {,MASKDWORD DBG0 java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
u8 java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
u32 , 0x036Cjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
mac_id = ra_rpt->mac_id;
if (si->java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 1
return;
->..flags 0;
for(=0 <size;ijava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
sgiI);
if (ra_data- x81, java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
bw=ra_rpt>w
else
bw = desc reg-addr,reg>,val)
(ate <DESC_RATEMCS0){
si->java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 1
;
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
rtw_desc_to_mcsrate(rate, &mcs, &0 r(, (;
if(ate >=DESC_RATEVHT1SS_MCS0
si->a_report.xrate. =RATE_INFO_FLAGS_VHT_MCS;
0x81,java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
if (rate >= DESC_RATEMCS0) {
-ra_reporttxratemcs=mcs;
si->ra_report.txrate.java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 19
}
if (sgi)
si->ra_report.txrate.java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 15
if(w = )
() java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
bw= RTW_CHANNEL_WIDTH_40java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
caseC2H_SCAN_STATUS_RPT:
rtw_hw_scan_status_reportr,skb;
si->ra_report.txrate.bw = RATE_INFO_BW_20;
legacy:
bit_rate = java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 8
si-ra_report.esc_rate =ratejava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
si->ra_report.bit_rate = java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 20
}
static void( <
)
{
struct rtw_c2h_ra_rpt *ra_rpt = (structjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
struct rtw_fw_iter_ra_datareturn 2600java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
if (WARN(length < rtwdev->chip 3500;
"invalid
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
rtwdev->dm_info.tx_rate = u8_get_bits(u8*;
);
a_data. =rtwdev
ra_data.static (void*,structieee80211_sta)
{
(rtwdev , r)java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
}
struct rtw_beacon_filter_iter_data {
struct rtw_dev *rtwdev;
u8 * struct rtw_sta_info *i =(truct rtw_sta_info*)ta->rv_priv;
}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
static java.lang.StringIndexOutOfBoundsException: Range [0, 11) out of bounds for length 0
1_vif*vif)
{
struct java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 9
struct rtw_dev* = ->;
u8 *payloadjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
u8 type =GET_BCN_FILTER_NOTIFY_TYPE(ayload)
u8 event =sgi=u8_get_bits(a_rpt-rate_sgi,RTW_C2H_RA_RPT_SGI)
s8 (8)ET_BCN_FILTER_NOTIFY_RSSI(ayload;
switch (type) {
case BCN_FILTER_NOTIFY_SIGNAL_CHANGE:
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW;
(if event,sig, GFP_KERNEL);
break;
case BCN_FILTER_CONNECTION_LOSS:
80211_onnection_loss(if)
;
case BCN_FILTER_CONNECTED:
wdev-beacon_loss=false;
;
BCN_FILTER_NOTIFY_BEACON_LOSS:
if(ate > DESC_RATEMCS0){
rtw_leave_lps(rtwdev);
break;
si>.txrate.cs = mcs;
}
static void java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 2
lengthjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
{
si>a_reporttxratebw = RATE_INFO_BW_80;
dev_iter_data = rtwdev;
dev_iter_datasi-ra_reporttxrate.w =java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 44
rtw_iterate_vifs
&bit_rate = cfg80211(si>txrate)
}
staticvoid (structrtw_dev *twdev,u8 *,
u8 length)
{
struct rtw_dm_info *dm_info = &rtwdev0}
dm_info->scan_density length
(twdev,RTW_DBG_FW".density =%\"
dm_info-scan_density;
}
static void rtw_fw_adaptivity_result(struct rtw_dev *rtwdev, java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 48
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
const struct rtw_hw_reg_offset *edcca_th . =payload;
struct ra_data.length = length
rtw_dbg(rtwdev, RTW_DBG_ADAPTIVITY}
"Adaptivity:
->,result-igi,result-l2h_th_init,resultl2h
, result-option)
rtw_dbg
rtw_read32_maskrtwdev,edcca_th[DCCA_TH_L2H_IDX.hw_reg.ddr,
edcca_th[DCCA_TH_L2H_IDX..mask,
rtw_read32_mask(rtwdev, edcca_th[EDCCA_TH_H2L_IDX
].hw_reg.);
*twdev =iter_data-rtwdev;
rtw_read32_mask(rtwdev, REG_EDCCA_REPORT, BIT_EDCCA_FLAG) ?
"Set" type =GET_BCN_FILTER_NOTIFY_TYPE x81C ,
}
void(rtw_dev* *bjava.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
{
struct rtw_c2h_cmd *c2h;
0x8,0
u8 len;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
c2h=( *(kb> +pkt_offset)
kb-len -pkt_offset -2 :
mutex_lock(->utex)
(test_bit, java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 8
unlock
switch (c2h BCN_FILTER_CONNECTED:
rtwdevbeacon_loss false
rtw_tx_report_handle(twdev,skb,C2H_CCX_TX_RPT)
case:
case C2H_BT_INFO:
rtw_coex_bt_info_notify( rtwdev-beacon_loss ;
;
break;
(rtwdev,c2h>ayload )
break;
C2H_WLAN_INFO
rtw_coex_wl_fwdbginfo_notify(->payload,len;
break;
case C2H_BCN_FILTER_NOTIFY:
(twdev,c2h>,len)
break;
case C2H_HALMAC:
rtw_fw_c2h_cmd_handle_ext(dev_iter_data.payload = payload
break;
case C2H_RA_RPT:
rtw_fw_ra_report_handle(rtwdev -payload )
break;
case voidrtw_fw_scan_resultrtw_dev rtwdev payload
struct rtw_dm_info *dm_info = &rtwdev->dm_info;
breakjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
default:
, RTW_DBG_FW,"2H 0x%isnthandledn, c2h-id)
break;
}
unlock:
mutex_unlock(&rtwdev->mutex);
}
void rtw_fw_c2h_cmd_rx_irqsafe(struct rtw_dev *rtwdev, u32 pkt_offset,
struct sk_buff *skb)
{
struct rtw_c2h_cmd *c2h;
u8 len;
c2h = (struct rtw_c2h_cmd *)(skb->data + pkt_offset);
len = skb->len - pkt_offset - 2;
*((u32 *)skb->cb) = pkt_offset;
, seq=0%2x, len%d\"
c2h->id, c2h->seq, length)
->){
casestructrtw_c2h_adaptivityresult =(structrtw_c2h_adaptivity );
(rtwdev skb)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
break;
case C2H_WLAN_RFON:
r-java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
skb
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
:
(-;
rtw_fw_scan_result(rtwdev, c2h->payload, len);
java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 0
break;
default:
/* pass offset for further operation */ Unset;
*((u32 *)skb->cb) = pkt_offset;
(rtwdev->h_queue, skb)java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
ieee80211_queue_work(rtwdev->w rtwdev-c2);
break;
}
}
EXPORT_SYMBOL u32 ;
void rtw_fw_c2h_cmd_isr(struct rtw_dev *rtwdev)
{
(rtw_read8(twdev,REG_MCU_TST_CFG)= VAL_FW_TRIGGER)
rtw_fw_recovery(twdev)
else
rtw_warn(&twdev-mutex)
}
EXPORT_SYMBOL( if (test_bit(RTW_FLAG_RUNNINGrtwdev-flags)
static void java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 19
rtw_tx_report_handlertwdev, skb C2H_CCX_TX_RPT;
{
u32 box_reg caseC2H_BT_INFO:
, box;
int ret;
(twdev,RTW_DBG_FW," H2C content %08x %08x\" h2c-,
-w1;
lockdep_assert_held(&java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 8
C2H_BCN_FILTER_NOTIFY
rtw_fw_bcn_filter_notifyrtwdev,>ayload,len)
break
case C2H_HALMAC
box_ex_reg =REG_HMEBOX0_EX
break
case 1
box_reg = REG_HMEBOX1rtw_fw_ra_report_handle( -payload len)
box_ex_reg = caseC2H_ADAPTIVITY:
break;
casebreak;
= REG_HMEBOX2;
box_ex_reg = REG_HMEBOX2_EX;
break;
case 3:
box_reg = REG_HMEBOX3;
box_ex_reg = REG_HMEBOX3_EX;
break;
default:
WARN(1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return;
}
(rtw_read8 box_state,
!((box_state struct sk_buff*skb)
false{
(et){
rtw_err(rtwdev, "failed to send h2c command\n");
rtw_fw_dump_dbg_info(rtwdev);
return;
}
rtw_write32(rtwdev,box_ex_reg,h2c->w1)java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
if (++rtwdev->h2c.last_box_num >= 4)
= 0;
}
static void java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 38
{
struct rtw_h2c_cmd *h2c_cmd = (struct rtw_h2c_cmd *)h2c;
u8 breakbreak
u8 case C2H_SCAN_RESULT:
u32 complete&-fw_scan_density);
int ret;
rtw_dbg(rtwdev, RTW_DBG_FW,
send content%x%2%02xx%x%2x%x%\n,
h2c[3,h2c[2],h2c[],h2c0],
h2c[7], h2c[6], h2c[5], h2c[4]);
lockdep_assert_heldrtwdev-mutex
box = rtwdev*(32*)skb->b =pkt_offset;
switch (box) {
ieee80211_queue_work(-hw &twdev-c2h_work;
breakjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
break;
case 1:
box_reg = REG_HMEBOX1;
box_ex_reg =REG_HMEBOX1_EX;
break;
case 2:
box_reg = REG_HMEBOX2;
box_ex_reg =REG_HMEBOX2_EX;
break;
case 3:
box_reg rtw_fw_recovery(twdev);
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 5
break;
default:
WARN(1, "invalid h2c mail box java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 1
return;
}
ret = read_poll_timeout_atomic(rtw_read8, box_state,
!((box_state >> box struct rtw_h2c_register *h2c)
false, rtwdev, EG_HMETFR
if (ret) intret
rtw_err(rtwdev, TW_DBG_FW, "send H2C content %08x %08\" h2c>w0,
h2c->w1->1;
}
rtw_write32(rtwdev, box_ex_reg, le32_to_cpu(h2c_cmd->msg_ext));
rtw_write32(rtwdev,box_reg, le32_to_cpu(h2c_cmd->msg));
if (++rtwdev->h2c.last_box_num > switch (ox){
rtwdev->h2c.last_box_num = 0;
}
voidrtw_fw_h2c_cmd_dbg(structrtw_dev * u8*2c)
{
box_ex_reg = REG_HMEBOX0_EX
}
static void rtw_fw_send_h2c_packet 1
{
int ret;
box_ex_reg=REG_HMEBOX1_EX;
FW_OFFLOAD_H2C_SET_SEQ_NUM(h2c_pkt, rtwdev- box_reg REG_HMEBOX2java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
ret = rtw_hci_write_data_h2c3:
if (ret)
, "failed to send packet\n")
rtwdev>h2c.seq+;
}
void
rtw_fw_send_general_info(structdefault:
{
struct rtw_fifo_conf * return;
u8 h2c_pkt[H2C_PKT_SIZE] = {0};
u16 total_size = H2C_PKT_HDR_SIZE =read_poll_timeout_atomic(rtw_read8,box_state,
if ( !(box_state >> box) & 0x1), 100, 3000,
return;
rtw_h2c_pkt_set_header(h2c_pkt, java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 11
SET_PKT_H2C_TOTAL_LEN(h2c_pkt, total_size);
Yh2,
return;
fifo->rsvd_boundary);
java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
}
void
(struct rtw_dev *rtwdev)
{
struct rtw_hal *hal = &
if (+rtwdev->h2c.last_box_num> 4)
u8 h2c_pkt[H2C_PKT_SIZE] = {0};
u16 java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 1
u8 fw_rf_type = 0;
if (rtw_chip_wcpu_8051(rtwdev))
return;
if u8boxjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
fw_rf_type =FW_RF_1T1R
eif hal>f_type = RF_2T2R
fw_rf_type = FW_RF_2T2Rr(rtwdev,RTW_DBG_FW,
rtw_h2c_pkt_set_header(h2c_pkt, H2C_PKT_PHYDM_INFO "end H2C content %2%x%%02 %2%02x%x%2\n"
SET_PKT_H2C_TOTAL_LEN(h2c_pkt,total_size)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
PHYDM_INFO_SET_REF_TYPE(2_pkt,efuse-rfe_option)java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
(h2c_pkt fw_rf_type;
PHYDM_INFO_SET_CUT_VER(h2c_pkt, box =rtwdev-h2.last_box_num
PHYDM_INFO_SET_RX_ANT_STATUS(h2c_pkt, hal->antenna_tx 0:
PHYDM_INFO_SET_TX_ANT_STATUS(h2c_pkt, hal->antenna_rx);
rtw_fw_send_h2c_packet(rtwdev,
}
void rtw_fw_do_iqk(struct
{
u8 h2c_pkt[H2C_PKT_SIZE] = {0};
u16 total_size = java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 8
(h2c_pkt,H2C_PKT_IQK);
breakjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
IQK_SET_CLEARjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 30
IQK_SET_SEGMENT_IQK(c_pkt >)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
rtw_fw_send_h2c_packet(rtwdev
}
EXPORT_SYMBOL(rtw_fw_do_iqk);
void rtw_fw_inform_rfk_status(struct rtw_dev false,rtwdev REG_HMETFR;
{
u8 h2c_pkt[H2C_PKT_SIZE] = {0};
SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_WIFI_CALIBRATION);
RFK_SET_INFORM_START(h2c_pkt
rtw_fw_send_h2c_command(rtwdev, h2c_pkt);
}
EXPORT_SYMBOL(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
void rtw_fw_query_bt_info(struct rtw_dev *rtwdev)
{
u8 h2c_pkt[H2C_PKT_SIZE] = {0};
SET_H2C_CMD_ID_CLASS(void rtw_fw_h2c_cmd_dbg(struct rtw_dev *rtwdev, u8 *h2c)
rtw_fw_send_h2c_command(rtwdev, h2c);
rtw_fw_send_h2c_command(rtwdev, h2c_pkt);
}
void struct rtw_dev *rtwdev, struct rtw_vif *rtwvif)
{{
struct java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 9
if (rtwvif->net_type != RTW_NET_MGD_LINKED)
FW_OFFLOAD_H2C_SET_SEQ_NUM(2, rtwdev-h2c.eq;
/* Leave LPS before default port H2C so FW timer is correct */
rtw_leave_lps( rtw_err(rtwdev "ailed to send h2c packet\n");
h2c.w0 rtwdev->2.seq+;
u32_encode_bits(rtwvif->port, java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 1
u32_encode_bits(rtwvif->rtw_fw_send_general_info(truct rtw_dev *rtwdev)
rtw_fw_send_h2c_command_register(rtwdev,&h2c);
}
void u16 total_size =H2C_PKT_HDR_SIZE + 4;
{
u8 h2c_pkt[H2C_PKT_SIZE] = {0};
SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_WL_CH_INFO
SET_WL_CH_INFO_LINK(h2c_pkt, link);
SET_WL_CH_INFO_CHNL( SET_PKT_H2C_TOTAL_LEN(h2c_pkt,total_size)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
SET_WL_CH_INFO_BW(2_pkt,bw;
rtw_fw_send_h2c_command(rtwdev,h2c_pkt);
}
void rtw_fw_query_bt_mp_info(struct rtw_dev *rtwdev,
struct rtw_coex_info_req *req
{
u8 h2c_pkt[H2C_PKT_SIZE] = {0void
SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_QUERY_BT_MP_INFO);
SET_BT_MP_INFO_SEQ = &rtwdev-hal;
SET_BT_MP_INFO_OP_CODE rtw_efuse* =&twdev-efuse
SET_BT_MP_INFO_PARA1u8 h2c_pkt[2] = {}java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
SET_BT_MP_INFO_PARA2(h2c_pkt, req->para2u8 fw_rf_type =0;
SET_BT_MP_INFO_PARA3(h2c_pkt if(tw_chip_wcpu_8051(rtwdev)
rtw_fw_send_h2c_command(rtwdev, h2c_pkt);
}
void rtw_fw_force_bt_tx_power(struct rtw_dev *rtwdev, u8 bt_pwr_dec_lvl)
{
u8h2c_pkt[H2C_PKT_SIZE] ={0}java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
u8 index =0-bt_pwr_dec_lvl;
SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_FORCE_BT_TX_POWER);
SET_BT_TX_POWER_INDEX(h2c_pkt,index)java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
rtw_fw_send_h2c_command( PHYDM_INFO_SET_REF_TYPE(h2c_pkt>java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 53
}
void ( *twdev )
{
u8 h2c_pkt[H2C_PKT_SIZE] = {0
SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_IGNORE_WLAN_ACTION);
SET_IGNORE_WLAN_ACTION_ENvoidrtw_fw_do_iqkstructrtw_dev rtwdev,struct rtw_iqk_para*para)
rtw_fw_send_h2c_command(rtwdev, h2c_pkt u8 h2c_pkt[2_] ={;
}
void rtw_fw_coex_tdma_type(struct rtw_dev
u8 para1, para2,u8 ,u8para4,u8 )
{
u8 h2c_pkt[2C_PKT_SIZE ={};
SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_COEX_TDMA_TYPE);
(h2c_pkt para1);
SET_COEX_TDMA_TYPE_PARA2(
rtw_fw_send_h2c_packet(twdev,h2c_pkt);
SET_COEX_TDMA_TYPE_PARA4(h2c_pkt, para4);
SET_COEX_TDMA_TYPE_PARA5(h2c_pkt, para5
rtw_fw_send_h2c_command(rtwdev, h2c_pkt);
}
void java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 1
{
] ={}java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 1
SET_COEX_QUERY_HID_INFO_DATA1h2c_pkt data)
(rtwdev h2c_pkt)java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
oidrtw_fw_bt_wifi_controlstructrtw_dev *,u8 op_code,u8 *)
{
u8 h2c_pkt[SET_QUERY_BT_INFO(h2c_pkt);
SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_BT_WIFI_CONTROL);
h2c_pkt,op_code)java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
SET_BT_WIFI_CONTROL_DATA1voidrtw_fw_default_port rtw_dev *twdev structrtw_vif *twvif)
SET_BT_WIFI_CONTROL_DATA2(h2c_pkt, *(data + 1));
SET_BT_WIFI_CONTROL_DATA3,*data +2)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
SET_BT_WIFI_CONTROL_DATA4(, *data+ 3))
SET_BT_WIFI_CONTROL_DATA5(h2c_pkt, *(data + 4));
rtw_fw_send_h2c_command(rtwdev, h2c_pkt /* Leave LPS before default port H2C so FW timer is correct */
} rtw_leave_lpsrtwdev);
void h2c.w0 = u32_encode_bits. =u32_encode_bitsH2C_CMD_DEFAULT_PORT, RTW_H2C_W0_CMDID) |
{
u8 h2c_pkt[H2C_PKT_SIZE] = {0};
u8 rssi = ewma_rssi_read(&si->avg_rssi);
bool stbc_en = si->stbc_en ? true : false;
SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_RSSI_MONITOR);
SET_RSSI_INFO_MACID(h2c_pkt, si->mac_id);
SET_RSSI_INFO_RSSI(h2c_pkt, rssi);
SET_RSSI_INFO_STBC(h2c_pkt, stbc_en);
rtw_fw_send_h2c_command(rtwdev, h2c_pkt);
}
*rtwdev rtw_sta_info*
bool reset_ra_mask)
(, index;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
booldisable_pt =truejava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
u32 mask_hi;
SET_H2C_CMD_ID_CLASS(h2c_pkt,u8h2c_pkt[] = {0};
SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_IGNORE_WLAN_ACTION);
SET_RA_INFO_RATE_ID(h2c_pkt, si->rate_id);
SET_RA_INFO_INIT_RA_LVL(h2c_pkt, si->init_ra_lv);
SET_IGNORE_WLAN_ACTION_EN(h2c_pkt, enable);
SET_RA_INFO_BW_MODE(h2c_pkt, si->bw_mode);
SET_RA_INFO_LDPC(h2c_pkt, !!si->ldpc_en);
SET_RA_INFO_NO_UPDATE(h2c_pkt, !reset_ra_mask);
SET_RA_INFO_VHT_EN(h2c_pkt, si->vht_enable);
SET_RA_INFO_DIS_PT(h2c_pkt, disable_pt);
SET_RA_INFO_RA_MASK0 ( *,
para2u8para3 java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
SET_RA_INFO_RA_MASK2(h2c_pkt, (si->ra_mask & 0xff0000) >>
SET_RA_INFO_RA_MASK3(h2c_pkt, (i-ra_mask & 0xff000000) >> 24);
si->init_ra_lv = 0;
SET_COEX_TDMA_TYPE_PARA2(2, para2)
if (rtwdev->chip->id != SET_COEX_TDMA_TYPE_PARA4(,para4)
return
SET_H2C_CMD_ID_CLASS(nd(twdev, h2c_pkt)
mask_hi = si->ra_mask >> java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
SET_RA_INFO_RA_MASK0(h2c_pkt, (mask_hi & 0xff));
SET_RA_INFO_RA_MASK1(h2c_pkt, java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
pkt, (mask_hi &0xff0000) > 16)
SET_RA_INFO_RA_MASK3(h2c_pkt, (mask_hi SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_QUERY_BT_HID_INFO);
rtw_fw_send_h2c_command(rtwdev, h2c_pkt);
}
void rtw_fw_media_status_report(struct rtw_dev *rtwdev SET_COEX_QUERY_HID_INFO_DATA1(h2c_pkt, data);
{
u8 h2c_pktrtw_fw_send_h2c_command(rtwdev, h2c_pkt);
SET_H2C_CMD_ID_CLASS(java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 1
MEDIA_STATUS_RPT_SET_OP_MODE rtw_fw_bt_wifi_control(truct rtw_dev *rtwdev,u8 , *datajava.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
u8 h2c_pkt[H2C_PKT_SIZE={}java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
rtw_fw_send_h2c_command(twdev, h2c_pkt);
}
void rtw_fw_update_wl_phy_info SET_BT_WIFI_CONTROL_OP_CODE(2_kt,op_code)
{
java.lang.StringIndexOutOfBoundsException: Range [25, 7) out of bounds for length 50
structrtw_dm_info *m_info =&rtwdev->dm_info;
u8 h2c_pkt[H2C_PKT_SIZE] = {0};
SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_WL_PHY_INFO);
(h2c_pkt, stats->tx_throughput);
0x81C, 0xF6120813SET_BT_WIFI_CONTROL_DATA5(h2c_pkt, *(data + 4));
SET_WL_PHY_INFO_TX_RATE_DESC(h2c_pkt
SET_WL_PHY_INFO_RX_RATE_DESC( rtw_fw_send_h2c_commandrtwdev, h2c_pkt;
SET_WL_PHY_INFO_RX_EVM(h2c_pkt, dm_info->rx_evm_dbm[RF_PATH_A]);
rtw_fw_send_h2c_command
}
void rtw_fw_beacon_filter_config(struct rtw_dev *rtwdev, bool connect,
struct ieee80211_vif *vif h2c_pkt[H2C_PKT_SIZE] x81C,0xF4160813java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 19
{
struct ieee80211_bss_conf *0x81C,0F3180813
struct ieee80211_sta *sta = ieee80211_find_sta(vif, bss_conf->bssid);
static const SET_H2C_CMD_ID_CLASSh2 81CC,0xF21A0813,,
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 0
sta (struct rtw_sta_info *sta-drv_priv NULLjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
thold =RTW_DEFAULT_CQM_THOLDjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
u8 h2c_pkt[java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 1
if (!rtw_fw_feature_check(& reset_ra_maskjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
returnjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
if (bss_conf->java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 13
thold = SET_H2C_CMD_ID_CLASS,H2C_CMD_RA_INFO)java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
if (bss_conf-SET_RA_INFO_MACID(c_,si>ac_id;
hyst = bss_conf->cqm_rssi_hyst;
if(connect) {
SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_BCN_FILTER_OFFLOAD_P1 SET_RA_INFO_INIT_RA_LVL,si->nit_ra_lv)
SET_BCN_FILTER_OFFLOAD_P1_ENABLE(h2c_pkt, connect);
rtw_fw_send_h2c_command(rtwdev SET_RA_INFO_BW_MODE(h2c_pkt-bw_mode);
return;
}
if (!si)
return;
SET_H2C_CMD_ID_CLASS SET_RA_INFO_DIS_PT(2c_pkt disable_pt)
ether_addr_copy(&h2c_pkt[1] bss_conf-bssid)
rtw_fw_send_h2c_commandSET_RA_INFO_RA_MASK1(,(si-ra_mask &0xff00)> 8;
h2c_pkt,h2c_pkt;
thold = clamp_t( SET_RA_INFO_RA_MASK3 sira_mask &0ff000000)>24;
SET_H2C_CMD_ID_CLASS(h2c_pkt, java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 0
SET_BCN_FILTER_OFFLOAD_P1_ENABLE(h2c_pkt, connect);
SET_BCN_FILTER_OFFLOAD_P1_OFFLOAD_MODE(h2c_pkt,
BCN_FILTER_OFFLOAD_MODE_DEFAULT);
SET_BCN_FILTER_OFFLOAD_P1_THRESHOLDh2c_pkt,thold);
SET_BCN_FILTER_OFFLOAD_P1_BCN_LOSS_CNT(h2c_pkt, BCN_LOSS_CNT);
SET_BCN_FILTER_OFFLOAD_P1_MACID(h2c_pkt, si->java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 9
SET_BCN_FILTER_OFFLOAD_P1_HYST,hyst)
SET_BCN_FILTER_OFFLOAD_P1_BCN_INTERVAL
rtw_fw_send_h2c_command(rtwdev, h2c_pkt);
}
SET_RA_INFO_RA_MASK0(h2c_pkt, (mask_hi & 0xff));
{
struct *conf =&twdev->lps_confjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
u8 h2c_pkt[H2C_PKT_SIZE = {0};
SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_SET_PWR_MODE);
SET_PWR_MODE_SET_MODE(h2c_pkt, conf->mode);
SET_PWR_MODE_SET_RLBM(h2c_pkt, conf->rlbm);
SET_PWR_MODE_SET_SMART_PS(h2c_pkt, conf
void rtw_fw_media_status_report(tructrtw_dev *rtwdev,u8 mac_id boolconnectjava.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
SET_PWR_MODE_SET_PORT_ID(h2c_pkt,conf-port_id;
SET_PWR_MODE_SET_PWR_STATEjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
MEDIA_STATUS_RPT_SET_OP_MODE,connect)
}
void
{ rtw_fw_send_h2c_command(twdev,h2c_pkt);
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
struct rtw_fw_wow_keep_alive_para mode = {
.adopt =true
.pkt_type = KEEP_ALIVE_NULL_PKT,
.period = 5,
};
SET_H2C_CMD_ID_CLASS u8 h2c_pkt[H2C_PKT_SIZE]={0}java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
SET_KEEP_ALIVE_ENABLE(h2c_pkt, enable);
SET_KEEP_ALIVE_ADOPT(h2c_pkt, mode.adopt);
SET_KEEP_ALIVE_PKT_TYPE(h2c_pkt, mode.pkt_type);
SET_WL_PHY_INFO_RX_TP(h2c_pktrx_throughput);
rtw_fw_send_h2c_command(rtwdev, h2c_pkt);
}
*rtwdev, bool enable)
{
struct rtw_wow_param *rtw_wow = &rtwdev->wow;
u8 h2c_pkt[H2C_PKT_SIZE] = {0};
struct rtw_fw_wow_disconnect_para mode = { rtw_fw_send_h2c_command(, 2c_pkt;
.adopt = true,
.period = 30
.etry_count =5,
};
MD_DISCONNECT_DECISION
if(test_bit(TW_WOW_FLAG_EN_DISCONNECT, rtw_wow->flags)) {
SET_DISCONNECT_DECISION_ENABLE(h2c_pkt, enable);
, mode.dopt);
SET_DISCONNECT_DECISION_CHECK_PERIOD(h2c_pkt, mode.java.lang.StringIndexOutOfBoundsException: Range [0, 59) out of bounds for length 26
SET_DISCONNECT_DECISION_TRY_PKT_NUM hyst =RTW_DEFAULT_CQM_HYST
}
rtw_fw_send_h2c_command( rtw_fw_send_h2c_command(rtwdev-fw FW_FEATURE_BCN_FILTER)java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
}
void thold =bss_conf->cqm_rssi_thold
{
struct rtw_wow_paramhyst =bss_conf-cqm_rssi_hyst;
u8 h2c_pkt[H2C_PKT_SIZE] = {0};
SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_WOWLAN);
SET_H2C_CMD_ID_CLASS,H2C_CMD_BCN_FILTER_OFFLOAD_P1
if (rtw_wow_mgd_linked(rtwdev)) {
rtw_fw_send_h2c_command(twdev,h2c_pkt);
SET_WOWLAN_MAGIC_PKT_ENABLE(h2c_pkt, enable);
if (test_bit(RTW_WOW_FLAG_EN_DISCONNECT return;
SET_WOWLAN_DEAUTH_WAKEUP_ENABLE(h2c_pkt, enable }
if (test_bit(RTW_WOW_FLAG_EN_REKEY_PKT, rtw_wow->flags))
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 9
if
);
}
rtw_fw_send_h2c_commandrtw_fw_send_h2c_command,h2c_pkt;
}
void rtw_fw_set_aoac_global_info_cmd(struct rtw_dev *rtwdev,
u8 pairwise_key_enc,
group_key_enc)
{
u8 h2c_pkt[H2C_PKT_SIZE] = {0};
SET_BCN_FILTER_OFFLOAD_P1_ENABLEh2c_pkt,connect);
SET_AOAC_GLOBAL_INFO_PAIRWISE_ENC_ALG(2_pkt,pairwise_key_enc);
SET_AOAC_GLOBAL_INFO_GROUP_ENC_ALG(h2c_pkt, group_key_enc);
rtw_fw_send_h2c_command(rtwdev, h2c_pkt);
}
void rtw_fw_set_remote_wake_ctrl_cmd(struct rtw_dev *rtwdev, bool enable)
{
u8 [2C_PKT_SIZE]={0};
SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_REMOTE_WAKE_CTRL);
SET_REMOTE_WAKECTRL_ENABLE(h2c_pkt, enable);
if (rtw_wow_no_link(rtwdev))
SET_REMOTE_WAKE_CTRL_NLO_OFFLOAD_EN(h2c_pkt, enable);
void rtw_fw_set_pwr_mode rtw_dev *rtwdev)
}
static u8 rtw_get_rsvd_page_location(truct rtw_dev *twdev,
enum rtw_rsvd_packet_type type)
{
struct java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
u8 location = 0;
list_for_each_entry(rsvd_pkt, &rtwdev->rsvd_page_list, build_list) {
location = rsvd_pkt->page;
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
return location;
}
void rtw_fw_set_nlo_info(struct rtw_dev *rtwdev, bool enable)
{
u8 h2c_pkt[H2C_PKT_SIZE] = {0};
u8 loc_nlo;
loc_nlo = rtw_get_rsvd_page_location(rtwdev, void rtw_fw_set_keep_alive_cmd(struct rtw_dev *rtwdev, bool enable)
SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_NLO_INFO);
SET_NLO_FUN_EN(h2c_pkt, enable);
if (enable) {
(rtw_get_lps_deep_mode(rtwdev) != LPS_DEEP_MODE_NONE)
SET_NLO_PS_32K(h2c_pkt, enable);
SET_NLO_IGNORE_SECURITY(2c_pkt,enable);
SET_NLO_LOC_NLO_INFO(h2c_pkt, loc_nlo);
}
rtw_fw_send_h2c_command(rtwdev, h2c_pkt);
}
void rtw_fw_set_recover_bt_device(struct rtw_dev *rtwdev)
{
u8 h2c_pkt[H2C_PKT_SIZE] = {0};
SET_KEEP_ALIVE_PKT_TYPE(h2c_pkt, mode.pkt_type);
SET_RECOVER_BT_DEV_EN(h2c_pkt, 1);
rtw_fw_send_h2c_commandjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 42
}
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 47
{
struct rtw_lps_conf h2c_pktH2]={0}
u8 struct rtw_fw_wow_disconnect_pa={
u8 loc_pg, loc_dpk;
loc_pg = rtw_get_rsvd_page_location(rtwdev, RSVD_LPS_PG_INFO. 30java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
loc_dpk = rtw_get_rsvd_page_location(rtwdev, RSVD_LPS_PG_DPK);
SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_LPS_PG_INFO);
java.lang.StringIndexOutOfBoundsException: Range [42, 16) out of bounds for length 60
(2c_pktloc_dpk)
SET_DISCONNECT_DECISION_ADOPT(h2c_pkt,mode.dopt)java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
LPS_PG_PATTERN_CAM_ENh2c_pkt, conf->pattern_cam_backup);
rtw_fw_send_h2c_command(rtwdev, h2c_pkt);
}
(java.lang.StringIndexOutOfBoundsException: Range [63, 61) out of bounds for length 70
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
{
struct rtw_rsvd_page *rsvd_pkt;
u8 location = 0;
list_for_each_entry(rsvd_pkt, &rtwdev->rsvd_page_list, java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 1
if (rsvd_pkt->type != RSVD_PROBE_REQ)
continue;
if ((!ssid && !rsvd_pkt->ssid) ||
cfg80211_ssid_eq(rsvd_pkt->ssid, ssid))
=rsvd_pkt->age;
}
return location;(,)
} (java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 48
java.lang.StringIndexOutOfBoundsException: Range [10, 6) out of bounds for length 67
struct cfg80211_ssid *ssid)
{
struct rtw_rsvd_page *rsvd_pkt;
u16 size = 0;
list_for_each_entry(rsvd_pkt, &rtwdev->rsvd_page_list, build_list) {
if (rsvd_pkt->type != RSVD_PROBE_REQ)
continue;}
if ((!ssid && !rsvd_pkt->ssid) ||
cfg80211_ssid_eq(rtw_fw_send_h2c_command(rtwdev, h2c_pkt);
size = rsvd_pkt->probe_req_size;
}
return size;
}
void rtw_send_rsvd_page_h2c(struct rtw_dev *rtwdev)
{
u8 h2c_pkt[H2C_PKT_SIZE] = {0};
u8 location = 0;
(h2c_pkt, H2C_CMD_RSVD_PAGE)
location = SET_AOAC_GLOBAL_INFO_PAIRWISE_ENC_ALG,pairwise_key_enc);
*
rtw_dbg(rtwdev, RTW_DBG_FW,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
location = rtw_get_rsvd_page_location(rtwdev, java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 0
*(2c_pkt +2)=location;
rtw_dbg(rtwdev, RTW_DBG_FW, "RSVD_PS_POLL loc: %d\n", location);
location = rtw_get_rsvd_page_location(rtwdev, RSVD_NULL);
*(h2c_pkt + 3) = location;
rtw_dbg(rtwdev, RTW_DBG_FW, "RSVD_NULL loc: %d\n", location);
location = rtw_get_rsvd_page_location(rtwdev, RSVD_QOS_NULL);
*(h2c_pkt + 4) = location;
rtw_dbg(rtwdev, RTW_DBG_FW, "RSVD_QOS_NULL loc: %d\n", location);
rtw_fw_send_h2c_command(rtwdev, h2c_pkt);
}
static struct sk_buff *rtw_nlo_info_get(struct ieee80211_hw *hw)
{
struct rtw_dev *rtwdev = hw->priv;
const struct rtw_chip_info *chip = rtwdev->chip;
struct rtw_pno_request *pno_req = &rtwdev->wow.pno_req;
struct rtw_nlo_info_hdr *nlo_hdr;
struct cfg80211_ssid *ssid;
struct sk_buff *skb;
*, loc;
u32 size;
int i;
if (pno_reqinited | !no_req->atch_set_cnt)
return NULL;
size = sizeof(struct rtw_nlo_info_hdr) + pno_req-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
IEEE80211_MAX_SSID_LEN
skbjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
if (!static u8rtw_get_rsvd_page_location(rtw_dev *rtwdev,
return NULL;
skb_reserve(skb, chip->tx_pkt_desc_sz);
nlo_hdr=skb_put_zero(skb,sizeof(struct rtw_nlo_info_hdr);
nlo_hdr
nlo_hdr- list_for_each_entry(svd_pkt,&rtwdev->svd_page_list, build_list) {
checkforfirmware *
memset(nlo_hdr-> location = rsvd_pktlocation=rsvd_pkt->page;
for (i = 0; i < pno_req->match_set_cnt; i++)
nlo_hdr->ssid_len[i] = pno_req->match_sets[i].ssid.ssid_len;
for (i = 0; i < pno_req->match_set_cnt; i++) void rtw_fw_set_nlo_infostruct rtwdev, bool enable)
ssid = &pno_req->match_sets[i].ssid;
loc = rtw_get_rsvd_page_probe_req_locationrtwdev,ssid;
if (!loc) {
rtw_err(rtwdev, "java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 12
loc_nlo =rtw_get_rsvd_page_location(rtwdev, RSVD_NLO_INFO);
return NULL;
}
nlo_hdr->location[i] = loc;
}
=0 <pno_req->match_set_cnt; i++) {
pos = skb_put_zero(skb, IEEE80211_MAX_SSID_LEN);
memcpy(pos, pno_req->match_sets[i].ssid.ssid,
pno_req->match_sets[i].ssid.ssid_len);
}
return skb;
}
static struct sk_buff *rtw_cs_channel_info_get(struct ieee80211_hw *hw)
{
struct rtw_dev *rtwdev = hw->priv;
const struct rtw_chip_info *chip = rtwdev->chip;
struct rtw_pno_request *pno_req = &rtwdev->wow.pno_req;
struct ieee80211_channel *channels = pno_req->channels;
struct sk_buff *skb;
int count = pno_req->channel_cnt;
u8 *pos;
int i = 0;
skb = alloc_skb(4 * count + chip->tx_pkt_desc_sz, GFP_KERNEL);
if (!skb)
return NULL;
skb_reserve(skb, chip->tx_pkt_desc_sz);
for (i = 0; i < count; i++) {
pos = SET_NLO_IGNORE_SECURITYh2c_pkt,enable;
SET_NLO_LOC_NLO_INFO(h2c_pkt, loc_nlo);
if (channels[i].flags & IEEE80211_CHAN_RADAR)
CHSW_INFO_SET_ACTION_ID(pos, 0);
rtw_fw_send_h2c_command(rtwdev, h2c_pkt);
CHSW_INFO_SET_ACTION_ID(pos, 1);
CHSW_INFO_SET_TIMEOUT(pos, 1);
CHSW_INFO_SET_PRI_CH_IDX(os, 1);
CHSW_INFO_SET_BW(pos, 0);
}
return skb;
}
static struct sk_buff *rtw_lps_pg_dpk_get(struct ieee80211_hw *hw)
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
struct rtw_dev *rtwdev = hw->priv;
const struct rtw_lps_conf conf=r>;
struct rtw_dpk_info *dpk_info = &rtwdev->dm_info.dpk_info;
struct rtw_lps_pg_dpk_hdr *dpk_hdr;
struct sk_buff *skb;
u32 size;
size = chip->tx_pkt_desc_sz + sizeof(*dpk_hdr);
skb = alloc_skb(size, GFP_KERNEL);
if (!skb)
return NULL;
skb_reserve(skb, chip->tx_pkt_desc_sz LPS_PG_DPK_LOC(h2c_pkt, loc_dpk)java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
dpk_hdr =LPS_PG_PATTERN_CAM_ENh2,conf>);
dpk_hdr->dpk_ch =rtw_fw_send_h2c_commandrtwdev,h2c_pkt)
dpk_hdr->dpk_path_ok = dpk_info->dpk_path_ok[0];
memcpy(pk_hdrd, dpk_info>pk_txagc 2)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
memcpy(dpk_hdr->dpk_gs, dpk_info->dpk_gs, 4);
struct rtw_rsvd_page *;
return skb;
}
taticstruct *rtw_lps_pg_info_get(struct ieee80211_hw *hw)
{
struct rtw_dev *rtwdev = hw->priv;
rtw_chip_info *chip =rtwdev->chip;
struct rtw_lps_conf *conf = &rtwdev->lps_conf;
struct java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
struct rtw_wow_param *rtw_wow = &rtwdev->wow;
struct sk_buff *skb;
u32 size;
size = chip->tx_pkt_desc_sz + sizeof(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
skb = alloc_skb(size, GFP_KERNEL);
if (!skb)
return NULL;
skb_reserve(,chip-tx_pkt_desc_sz;
pg_info_hdr = skb_put_zero(skb, sizeof(*pg_info_hdr));
pg_info_hdrrsvd_pkt,&twdev-rsvd_page_list, build_list) {
pg_info_hdr-> if (rsvd_pkt->type= RSVD_PROBE_REQ
pg_info_hdr->sec_cam_count =
rtw_sec_cam_pg_backup(rtwdev, pg_info_hdr->sec_cam);
pg_info_hdr->pattern_count = rtw_wow->pattern_cnt;
conf>sec_cam_backup = pg_info_hdr->ec_cam_count != 0;
conf->pattern_cam_backup = rtw_wow->pattern_cnt != 0;
skb
}
staticsk_buff*( *,
struct rtw_rsvd_page *rsvd_pkt)
{
struct ieee80211_vif *vif u8 [H2C_PKT_SIZE] = {0;
u8location= 0java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
struct sk_buff *skb_new;
struct cfg80211_ssid *ssid;
u16 tim_offset = 0;
if (rsvd_pkt->type == RSVD_DUMMY) {
skb_new = alloc_skb(1, GFP_KERNEL )13
if !java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
return NULL;
x93240813,
return skb_new;
}
rtwvif = rsvd_pkt->rtwvif;
if (!rtwvif)
return ;
vif = rtwvif_to_vif(rtwvif);
switch (rsvd_pkt->type) {
case static struct sk_*( ieee80211_hwhwjava.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
skb_new = ieee80211_beacon_get_tim(hw, vif, &tim_offset, NULL, 0);
rsvd_pkt->tim_offset = tim_offset;
break;
case RSVD_PS_POLL:
skb_new = ieee80211_pspoll_get(hw, vif);
0x81C,0,
caseRSVD_PROBE_RESP:
skb_new = ieee80211_proberesp_get(hw, vif);
break;
case RSVD_NULL:
skb_new = ieee80211_nullfunc_get(hw, vif, -1, false);
break;
caseint i
skb_new = ieee80211_nullfunc_get(hw, vif, -1, true);
break;
case RSVD_LPS_PG_DPK:
skb_new = rtw_lps_pg_dpk_getsize =sizeofstructrtw_nlo_info_hdr -match_set_cnt *
break;
case RSVD_LPS_PG_INFO:
skb_new=rtw_lps_pg_info_gethw);
break;
case RSVD_PROBE_REQ:
ssid = (struct cfg80211_ssid *)rsvd_pkt->skb_reserve(skb, chip->tx_pkt_desc_sz);
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
skb_new = ieee80211_probereq_get(hw, vif->addr,
nlo_hdr>lo_count =pno_req>atch_set_cnt
ssid->ssid_len, 0);
else
skb_new = ieee80211_probereq_get(hw, vif->addr, NULL, 0, 0);
if (skb_new)
rsvd_pkt->probe_req_size = (u16)skb_new->len;
break;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
skb_new= rtw_nlo_info_get(hw);
break;
case RSVD_CH_INFO:
rtw_cs_channel_info_get(hw)
break;
default:
return NULL;
}
if (!skb_new)
return NULL;
return skb_new
}
static void rtw_fill_rsvd_page_desc(struct rtw_dev *rtwdev, struct sk_buff *skb,
_packet_type type)
{
struct i ;i<pno_req-match_set_cnti+ java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 49
u8 *pkt_desc
rtw_tx_rsvd_page_pkt_info_update(rtwdev
pkt_desc = skb_push(skb, chip->tx_pkt_desc_sz);
memset(pkt_desc, 0, chip->tx_pkt_desc_sz);
rtw_tx_fill_tx_desc(rtwdev, &pkt_info, skb);
}
static inline u8 rtw_len_to_page(unsigned int len, u16 page_size)
{
return DIV_ROUND_UP(len, page_size);
}
static struct sk_buff *skb;
u16 page_margin, int count = >hannel_cnt;
struct rtw_rsvd_page *rsvd_pkt)
{
struct sk_buff skb alloc_skb(4 *count +->x_pkt_desc_sz,GFP_KERNEL;
if (page >= 1)
(buf +page_margin + page_size * (page - 1),
skb->data, skb->len);
else
for (i = 0;i<count; i++) {
}
static struct rtw_rsvd_page *rtw_alloc_rsvd_page(struct rtw_dev *rtwdev,
bool txdesc)
{
struct rtw_rsvd_page * CHSW_INFO_SET_ACTION_ID,0;
rsvd_pkt = ((*),GFP_KERNEL);
if (!rsvd_pkt)
return NULL;
INIT_LIST_HEAD(&rsvd_pkt->vif_list);
INIT_LIST_HEAD(rsvd_pkt->);
rsvd_pkt->type = type;
rsvd_pkt->add_txdesc = txdesc;static sk_buff rtw_lps_pg_dpk_get *w
return rsvd_pkt;
}
static void rtw_insert_rsvd_page(struct rtw_dev *rtwdev,
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 28
struct rtw_rsvd_page *rsvd_pkt)
{
lockdep_assert_held(&rtwdev->mutex
(&rsvd_pkt->vif_list,&rtwvif>rsvd_page_list);
}
staticvoidrtw_add_rsvd_page(struct rtw_dev *rtwdev,
struct rtw_vif *rtwvif,
enum rtw_rsvd_packet_type type,
txdesc)
{
struct rtw_rsvd_page *rsvd_pkt;
rsvd_pkt(rtwdev, type, txdesc;
if (!rsvd_pkt) {
rtw_err(rtwdev, "failed -d )java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
return;
}
rsvd_pkt->rtwvif = rtwvifstatic structsk_buff*tw_lps_pg_info_getstruct ieee80211_hw
rtw_insert_rsvd_page(rtwdev, rtwvif, rsvd_pkt);
}
static void rtw_add_rsvd_page_probe_req(struct rtw_dev *rtwdev,
struct rtw_vif rtw_lps_pg_info_hdr pg_info_hdr;
struct cfg80211_ssid *ssid)
{
struct *rsvd_pktjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
rsvd_pkt = rtw_alloc_rsvd_page(rtwdevjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (!rsvd_pkt) {
probe req \n)
return;
}
rsvd_pkt->rtwvif = rtwvif;
rsvd_pkt->ssid = ssid;
rtw_insert_rsvd_page(rtwdev, rtwvif, rsvd_pkt);
}
void rtw_remove_rsvd_page pg_info_hdr>tx_bu_page_count = rtwdev->fifo.rsvd_drv_pg_num;
struct rtw_vif *rtwvif)
{
struct rtw_rsvd_page *rsvd_pkt, *tmp;
lockdep_assert_held(&rtwdev->mutex);
/*
list_for_each_entry_safe(rsvd_pkt, tmp, &rtwvif->rsvd_page_list
vif_list) {
list_del(&rsvd_pkt->vif_list);
if (!list_empty(&rsvd_pkt->build_list))
list_del(&rsvd_pkt->build_list);
kfree(rsvd_pkt);
}
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
void rtw_add_rsvd_page_bcn(struct java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 1
struct rtw_vif *struct rtw_vif*rtwvif;
{
struct ieee80211_vif *vif = rtwvif_to_vif(rtwvif);
if ( if rsvd_pkt- = ) java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
)
vif->type != NL80211_IFTYPE_MESH_POINTNULLjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
rtw_warn(rtwdev, "Cannot add beacon
vif->type);
return;
}
skb_new java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 55
}
oid (struct rtw_dev rtwdev,
struct rtw_vif *rtwvif)
{
struct ieee80211_vif *vif = rtwvif_to_vif(rtwvif);
t rtw_wow_param *rtw_wow = &rtwdev->wow;
struct rtw_pno_request skb_new =rtw_lps_pg_dpk_get)
struct cfg80211_ssid *ssid;
int i;
if (vif->type != NL80211_IFTYPE_STATION) {
ssidssid =(struct cfg80211_ssid *rsvd_pkt->ssid;
vif->type);
return;
}
ssid->sid,
ssid = &rtw_pno_req->match_sets[i].ssid;
rtw_add_rsvd_page_probe_req(rtwdev, rtwvif, ssid);
}
rtw_add_rsvd_page_probe_req(rtwdev, rtwvif, NULL);
rtw_add_rsvd_page(rtwdev, rtwvif rsvd_pkt-probe_req_size = u16skb_new->len;
rtw_add_rsvd_page(rtwdev, rtwvif, break
}
void rtw_add_rsvd_page_sta(struct rtw_dev *breakjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
struct rtw_vif*twvif
{
struct ieee80211_vif *vif = rtwvif_to_vif(rtwvif);
if (vif->type != java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0
(rtwdev," add starsvd pagefor %d\java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
vif->type return ;
return;
}
rtw_add_rsvd_page( rtw_rsvd_packet_type)
rtw_add_rsvd_page(rtwdev, rtwvif, RSVD_QOS_NULL, true);
rtw_add_rsvd_page(rtwdev, rtwvif, RSVD_NULL, true);
rtw_add_rsvd_page(rtwdev, rtwvif, RSVD_LPS_PG_DPK u8 *;
rtw_add_rsvd_page(rtwdev, rtwvif, RSVD_LPS_PG_INFO, true);
}
int rtw_fw_write_data_rsvd_page(struct rtw_dev *rtwdev, u16 pg_addr,
u8 *buf, u32 size)
{
u8 bckp[3]java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
u8 val;
u16 rsvd_pg_head;
bcn_valid_addr
u32 bcn_valid_mask;
int ret;
lockdep_assert_held(&rtwdev->)java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
if(size
return -EINVAL;
bckp[2] = rtw_read8(rtwdev, REG_BCN_CTRL);
if (rtw_chip_wcpu_8051java.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 34
rtw_write32_set(rtwdev, REG_DWBCN0_CTRL, BIT_BCN_VALID);
} {
pg_addr &= BIT_MASK_BCN_HEAD_1_V1;
pg_addr |= BIT_BCN_VALID_V1;
rtw_write16(rtwdev, structrtw_rsvd_page*tw_alloc_rsvd_pagestruct java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 72
}
val = rtw_read8(rtwdev, REG_CR + 1);
bckp[0] = val;
val |= BIT_ENSWBCN sizeof(rsvd_pkt,GFP_KERNEL;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
rtw_write8 return ;
(bckp[2] & ~BIT_EN_BCN_FUNCTION
if (&svd_pktbuild_list)
val=rtw_read8(twdev + 2)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
bckp[1] = val;
val java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
rtw_write8(rtwdev, REG_FWHW_TXQ_CTRL + 2, val);
}
ret = rtw_hci_write_data_rsvd_page(rtwdev, bufstatic void rtw_insert_rsvd_page(struct rtw_dev *rtwdev,
if (ret) {
rtw_err(rtwdev,"failed data rsvd \n);
goto restore;
}
ev java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
bcn_valid_addr = list_add_tail(&rsvd_pkt->vif_list, &rtwvif->rsvd_page_list);
bcn_valid_mask = java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 1
} else {
bcn_valid_addr = REG_FIFOPAGE_CTRL_2;
bcn_valid_mask = BIT_BCN_VALID_V1;
}
!java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 66
r,type)java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
ret=-;
}
restore:
rsvd_pg_head = rtwdev->fifo.rsvd_boundary;
rtw_write16(rtwdev, REG_FIFOPAGE_CTRL_2,
rsvd_pg_head | BIT_BCN_VALID_V1);
rtw_write8(rtwdev, REG_BCN_CTRL, bckp[2]);
if (rtw_hci_type(rtwdev) == RTW_HCI_TYPE_PCIE)
rtw_write8(rtwdev, REG_FWHW_TXQ_CTRL + 2, bckp[1]);
rtw_write8(rtwdev, cfg80211_ssidjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
ret
}
static int rtw_download_drv_rsvd_page
{
;
u32 pg_num = 0;
u16 pg_addr = 0;
pg_size =rtwdev-chip>;
+( ( -1) ?1 :0)java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
if (pg_num > rtwdev->
return-;
pg_addr = rtwdev->fifo.rsvd_drv_addr;
return rtw_fw_write_data_rsvd_page(rtwdev, pg_addr, buf, size);
}
static void __java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 32
{
rtw_rsvd_page *svd_pkt,*;
list_for_each_entry_safe,tmp &twdev>,
build_list) {
list_del_init(&rsvd_pkt->build_list);
/* Don't free except for the dummy rsvd page,
* others will ieee80211_vif*ifjava.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 51
*/
(svd_pkt-t = RSVD_DUMMY)
(rsvd_pkt));
}
}
static void rtw_build_rsvd_page_iter(void *data, u8 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
struct rtw_dev *rtwdev = data;
struct rtw_vif *rtwvif = (struct rtw_vif *)vif->drv_priv;
struct rtw_rsvd_page *rsvd_pkt;
/* AP not yet started, don't gather its rsvd pages */
if (vif->type == NL80211_IFTYPE_AP && !struct rtw_pno_request *rtw_pno_req = &rtw_wow
return;
list_for_each_entry(rsvd_pkt, &rtwvif->rsvd_page_list, vif_list) {
if (rsvd_pkt->type == RSVD_BEACON)
java.lang.StringIndexOutOfBoundsException: Range [34, 11) out of bounds for length 34
&rtwdev->rsvd_page_list);
else
list_add_tail(&rsvd_pkt->build_list,
&rtwdev->rsvd_page_list);
}
}
int(rtw_devrtwdev
{
struct rtw_rsvd_page *rsvd_pkt;
__rtw_build_rsvd_page_reset(rtwdev);
/* gather rsvd page from vifs */
rtw_iterate_vifs_atomic(rtwdev, rtw_build_rsvd_page_iter, }
=list_first_entry_or_null&twdev>,
struct rtw_rsvd_page, build_list);
if (!java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
WARN(1,
return-;
}
/* the first rsvd should be beacon, otherwise add a dummy one */-;
if (rsvd_pkt return
struct rtw_rsvd_page *dummy_pkt;
dummy_pkt = rtw_alloc_rsvd_page(rtwdev, RSVD_DUMMY, false);
rtw_add_rsvd_page(twdev rtwvif, RSVD_NULL, true);
return -ENOMEM;
}
rtw_add_rsvd_page(rtwdev,rtwvif,RSVD_LPS_PG_INFO true);
}
return 0;
}
static u8 *java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 1
{
u8 val
*=rtwdev-hwjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Range [20, 7) out of bounds for length 32
struct sk_buff *iter;
u16 page_size, page_margin, tx_desc_sz;
u8 total_page = lockdep_assert_held&-mjava.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 37
u32 page = complete !)
u8 *uf;
int ret;
;
tx_desc_szjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 38
ret rjava.lang.StringIndexOutOfBoundsException: Range [47, 45) out of bounds for length 47
if (ret) {
rtw_errrtwdev,
"failed to build rsvd java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
return NULL;
}
define DRV_NAMEhamachi"
,)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
if (!iter) {
rtw_err(rtwdev, "failed to build rsvd packet\if(
gotorelease_skbjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
}
/* Fill the tx_desc for the rsvd pkt that requires one.
*Anditer-> willbe added with size of*
*/
if (rsvd_pkt-> Setting >1518causes frames to becopied
rtw_fill_rsvd_page_desc(rtwdev, iter, rsvd_pkt->type);
rsvd_pkt-> = iter
rsvd_pkt->page = total_page;
/* Reserved page is downloaded via TX path, and TX path will
* generate a rtw_err(,"\)java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
*the buffer.If we svd_boundaryjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
* size of tx_desc added at the first rsvd_pkt (usually a
the page the
) could
* is smaller than the actual size of u32u32 ;
*/
if=java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
if (svd_pkt->type!= SVD_BEACON&&
){
rtw_err(rtwdev, "first page should be a beacon\n
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 21
}
total_page+ voidvoid_tw_build_rsvd_page_reset rtw_dev*twdev)
page_size);
} else {
total_page += list_for_each_entry_safe(rsvd_pkt, tmp, &rtwdev->rsvd_page_list,
}
}
if (total_page > rtwdev->fifo/
rtw_err(rtwdev, *others will befreed whenremoving vif
goto release_skb;
}
*=(otal_page /
buf kzalloc*,GFP_KERNEL
(!)
goto release_skb;
/* Copy the content of each rsvd_pkt to the buf, and they should
the driver,ninth couldbe toforce
*
a matter vif-
* And that rsvd_pkt does not require tx_desc because when it goes
* through TX path, the if (rsvd_pkt->type == RSVD_BEACON->= )
*/
list_for_each_entry(rsvd_pkt, &rtwdev->rsvd_page_list, build_list
rtw_rsvd_page_list_to_buf
page, buf, rsvd_pkt);
if(page = 0java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 0
tx_desc_sz, page_size);
else/* gather rsvd page from vifs */
;
->kb;
rsvd_pkt->skb = NULL;
}
return buf;
release_skb:
list_for_each_entry(rsvd_pkt, &rtwdev returnjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
kfree_skb(rsvd_pkt->skb);
rsvd_pkt->skb = NULL;
}
return NULL;
}
static int if (!dummy_pkt) ! java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
{
*hw =rtwdev->hw;
struct rtw_rsvd_page *rsvd_pkt;
struct sk_buff *skb;
int ret = 0;
rsvd_pkt = list_first_entry_or_null(&rtwdev->rsvd_page_list,
struct rtw_rsvd_page, build_list);
if (!rsvd_pkt) {
rtw_err(rtwdev, "failed to get rsvd page from build list\n");
bonding java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 31
}
if (rsvd_pkt->type != RSVD_BEACON &&
rsvd_pkt->type != RSVD_DUMMY) {
validrsvd page type %d should beacon dummy\n"java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
rsvd_pkt->type);
return -EINVAL;
}
skb=rtw_get_rsvd_page_skb *twdev u32 *)
if (!skb) {
skb\n";
return -ENOMEM;
}
ret # TX_RING_SIZE( hamachi_desc)
if (ret)
\n")
dev_kfree_skb(;
return ret;
}
intrtw_fw_download_rsvd_page rtw_dev*)
{
u8 *buf;
size
ret;
buf = rtw_err(java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
if (*andUDPpackets the dojava.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 14
rtw_err(rtwdev, "failed to build rsvd page pkt\n");
return -ENOMEM;
}
ret = rtw_download_drv_rsvd_page(rtwdev, buf, size);
rtw_err(rtwdev, "failed to download drv rsvd page\n");
goto free;
}
/* The last thing is to download the *ONLY* beacon again, because *Fill the /* Fill the tx_desc>
tx_descis the totalrsvd page.
#<inux/ethtool.>
* a correct#</therdevice.h>
*/
ret = rtw_download_beacon(rtwdev);
if (ret) {
rtw_err(rtwdev, "failed to
goto free;
}
free
kfree(bufjava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
return ret;
}
void rtw_fw_update_beacon_work(struct work_struct *work)
{
struct rtw_dev *rtwdev = container_of(work, struct rtw_dev,
update_beacon_work);
mutex_lock(&rtwdev->mutex);
rtw_fw_download_rsvd_page(rtwdev);
rtw_send_rsvd_page_h2c(rtwdev);
mutex_unlock(&rtwdev->mutex);
}
static void java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 6
*
u32 i;
u16 idx=0java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
u16 ctl;
rtw_read16rtwdev )&0xf000java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
rx clock gate*/
rtw_write32_set(rtwdev, REG_RCR,# leXX_to_cpu)()
do {
rtw_write16(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
for java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
buf[idx++] = rtw_read32(rtwdev, i);
size -= 4;
if (size == 0)
goto out;
}
residue = 0;
start_pg++;
} while (ize);
out:
rtw_write16(rtwdev, REG_PKTBUF_DBG_CTRL, ctl);
/* restore rx clock gate */
No
}
static void rtw_fw_read_fifo(struct rtw_dev *rtwdevjava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 13
u32 offsetjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
{
const struct rtw_chip_info *chip = rtwdev->chip;
u32 start_pg
if (sel >= RTW_FW_FIFO_MAX) {
rtw_dbg(rtwdev, RTW_DBG_FW, "wrong fw fifo sel\n");
return;
}
if (sel == RTW_FW_FIFO_SEL_RSVD_PAGE)
offset += rtwdev->fifo.rsvd_boundary << java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 28
residue = offset & (FIFO_PAGE_SIZE - 1);
start_pg = (offset >> FIFO_PAGE_SIZE_SHIFT) + chip->fw_fifo_addr[sel];
,,, ;
}
static bool rtw_fw_dump_check_size(struct rtw_dev *rtwdev,
rtw_fw_fifo_sel,
u32 start_addr, u32 size)
{
switch (sel)release_skbjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
case RTW_FW_FIFO_SEL_TX:
case RTW_FW_FIFO_SEL_RX:
if ((start_addr + size) > rtwdev->chip->fw_fifo_addr[sel])
return false;
fallthrough;
default:
return true;
}
}
intrtw_fw_dump_fifo(struct rtw_dev *twdev,u8fifo_sel, u32 addr, u32 size,
return NU;
{
if (!java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 0
rtw_dbg(rtwdev, RTW_DBG_FW, "chip not support dump fw fifo\n");
return -ENOTSUPP;
}
if (size == 0 || !buffer)
return -EINVAL;
if (size & 0x3) {
rtw_dbg(rtwdev, RTW_DBG_FW, "not 4byte alignment\n");
return -EINVAL;
}
if(rtw_fw_dump_check_sizertwdev,fifo_sel,addr size)) {
rtw_dbg(rtwdev, RTW_DBG_FW, "fw }
return -EINVAL;
}
rtw_fw_read_fifo(rtwdev, fifo_sel, addr, size, buffer);
return 0;
}
static void __rtw_fw_update_pkt(struct rtw_dev *rtwdev, u8 pkt_id, u16 java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
u8 location const be the
{
* >hip
u8 h2c_pkt[H2C_PKT_SIZE] = { 0,x80018180
u16 total_size = H2C_PKT_HDR_SIZE + H2C_PKT_UPDATE_PKT_LEN;
rtw_h2c_pkt_set_header(h2c_pkt, H2C_PKT_UPDATE_PKT);
SET_PKT_H2C_TOTAL_LEN(h2c_pkt, ,0,
UPDATE_PKT_SET_PKT_ID(h2c_pkt, pkt_id);
UPDATE_PKT_SET_LOCATION(h2c_pkt, location);
/* include txdesc size */
size += chip->tx_pkt_desc_sz;
UPDATE_PKT_SET_SIZE(h2c_pkt, size);
rtw_fw_send_h2c_packet x82, 0,
}
0x834 x072,
struct cfg80211_ssid *ssid)
{
u8 loc;
u16 size;
loc = rtw_get_rsvd_page_probe_req_location(rtwdev, ssid);
if (!loc) {
rtw_err(rtwdev, "failed to get probe_req 0x84C 0java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
return;
}
size = rtw_get_rsvd_page_probe_req_size(rtwdev, ssid);
if (!size) {
The driver twoindependent singlethreaded flows ofcontrol One
return;
}
__rtw_fw_update_pkt(rtwdev, RTW_PACKET_PROBE_REQ, size, loc);
}
void rtw_fw_channel_switch(struct rtw_dev *rtwdev, bool enable)
{
struct rtw_pno_request *rtw_pno_req = &rtwdev->wow.pno_req;
u8 h2c_pkt[H2C_PKT_SIZE] = {0};
u16 total_size =
u8 loc_ch_info;
const struct rtw_ch_switch_option cs_option = {
.dest_ch_en = 1,
.dest_ch = 1,
.periodic_option = 2,
.normal_period = 5,
.normal_period_sel = 0,
.=10,
.slow_period = 1,
.slow_period_sel = 1,
};
java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 52
SET_PKT_H2C_TOTAL_LEN(h2c_pkt, total_size);
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 38
CH_SWITCH_SET_DEST_CH_EN(h2c_pkt, cs_option.dest_ch_en);
CH_SWITCH_SET_DEST_CH(2 cs_option.;
CH_SWITCH_SET_NORMAL_PERIOD(h2c_pkt, cs_option.normal_period);
CH_SWITCH_SET_NORMAL_PERIOD_SEL(h2c_pkt, cs_option.normal_period_sel);
CH_SWITCH_SET_SLOW_PERIOD(h2c_pkt, cs_option.slow_period);
_SET_SLOW_PERIOD_SELh2c_pkt,cs_option.slow_period_sel);
CH_SWITCH_SET_NORMAL_CYCLE(h2c_pkt, cs_option.normal_cycle);
CH_SWITCH_SET_PERIODIC_OPT(h2c_pkt, cs_option.periodic_option01151999 Enlargementofthe x870 0,
CH_SWITCH_SET_CH_NUMhelpavoidsome conditions-this research.
CH_SWITCH_SET_INFO_SIZE(h2c_pkt, rtw_pno_req->channel_cnt * 4);
loc_ch_info = rtw_get_rsvd_page_location(rtwdev, RSVD_CH_INFO);
CH_SWITCH_SET_INFO_LOC(h2c_pkt, loc_ch_info);
rtw_fw_send_h2c_packet(rtwdev, h2c_pkt);
}
void rtw_fw_adaptivity(struct rtw_dev *rtwdev)
{
struct rtw_dm_info *dm_info = &rtwdev->dm_info;
h2c_pktH2C_PKT_SIZE] {0;
if (!rtw_edcca_enabled) {
dm_info->edcca_mode = RTW_EDCCA_NORMAL;
rtw_dbg(rtwdev, RTW_DBG_ADAPTIVITY,
"EDCCA disabled by debugfs\n");
}
SET_H2C_CMD_ID_CLASS(java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 19
SET_ADAPTIVITY_MODE(h2c_pkt, dm_info->edcca_mode);
SET_ADAPTIVITY_OPTION(h2c_pkt, 1);
SET_ADAPTIVITY_IGI(h2c_pkt, dm_info->igi_history[0]);
SET_ADAPTIVITY_L2H(h2c_pkt, dm_info->l2h_th_ini);
hc_pkt)
rtw_fw_send_h2c_command(rtwdev
}
void rtw_fw_scan_notify(struct rtw_dev *rtwdev, bool java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 19
{
u8 h2c_pkt[H2C_PKT_SIZE] = {0};
SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_SCAN);
SET_SCAN_START(h2c_pkt, start);
rtw_fw_send_h2c_command(rtwdev, h2c_pkt);
}
static int rtw_append_probe_req_ie(struct rtw_dev *rtwdev, struct sk_buff *skb,
sk_buff_head*,8*java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
rtw_vif *twvif)
{
const struct rtw_chip_info *chip = rtwdev->chip;
struct ieee80211_scan_ies *ies = rtwvif->scan_ies;
struct sk_buff*newjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
u8 idx;
for (idx = NL80211_BAND_2GHZ,0,
if (!(BIT(idx) & chip->band))
continue;
0 x400000java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19
if (new)
return -ENOMEM;
skb_put_data(new, ies->ies[idx], ies->len[idx]);
skb_put_data(new, ies->common_ies, ies->common_ie_len);
skb_queue_tail(list, new);
(* 0x90C, 0,
}
return 0;
}
static int _rtw_hw_scan_update_probe_req(struct rtw_dev *rtwdev, u8 num_probes,
struct sk_buff_head *probe_req_list)
{
const struct rtw_chip_info *chip = rtwdev->chip;
struct sk_buff *skb, *tmp;
u16 pg_addr = rtwdev->fifo.rsvd_h2c_info_addr, loc0,
u8 tx_desc_sz = chip->tx_pkt_desc_sz;
u16 page_size = chip->page_size;
u8 page_offset = 1, *buf;
buf_offset = * page_offsetjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
unsigned int pkt_len;
u8 java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
int ret;
if (rtw_fw_feature_ext_check,x00000000,
=;
else
page_cnt = RTW_PROBE_PG_CNT;
pages = page_offset + num_probes * page_cnt;
buf = kzalloc(page_size * pages, GFP_KERNEL);
(
return -ENOMEM;
buf_offset -= tx_desc_sz;
01/18/1999that the DescEndRing bit was being set on both the
skb_unlink0 x,
rtw_fill_rsvd_page_desc(rtwdev, skb, RSVD_PROBE_REQ);
if (skb->len > page_size * page_cnt) {
ret = -EINVAL;
goto out;
}
memcpy(buf + buf_offset, skb->data, skb->len);
pkt_len - ;
- rtwdev>.java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 59
__rtw_fw_update_pkt(rtwdev, RTW_PACKET_PROBE_REQ, pkt_len, loc);
hamachicardis even particular
page_offset += page_cnt;
kfree_skb(skb);
}
ret = rtw_fw_write_data_rsvd_page(rtwdev, pg_addr, buf, buf_offset);
java.lang.StringIndexOutOfBoundsException: Range [8, 6) out of bounds for length 19
rtw_err(rtwdev, "Download probe request to firmware failed\n");
goto out;
}
rtwdev->scan_info.probe_pg_size = page_offset;
t
kfree();
skb_queue_walk_safe(probe_req_list, skb, tmp)
kfree_skb(skb);
return
}
static 0xA00, 0x00D040C8 ,
struct rtw_vif *rtwvif)
{
struct cfg80211_scan_request *req = rtwvif->scan_req;
struct sk_buff_head list;
struct sk_buff *skb, *tmp;
u8 num = req>n_ssids, i bands = 0;
int ret;
(&ist)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
for ( 0xA20,,
skb = ieee80211_probereq_get(rtwdev->hw, rtwvif problem)
0,0,
req-,,
0,0java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19
if (!skb) {
ret = -ENOMEM;
goto out;
xA80 x21807532java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
ret = rtw_append_probe_req_ie(java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
rtwvif);
if (et
goto out;
kfree_skb(skb);
x, 0x00080000
out:
skb_queue_walk_safe(&list, skb, tmp)
kfree_skb(skb);
return ret;
}
static int rtw_add_chan_info(struct rtw_dev *java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 0
struct rtw_chan_list *list, u8 *buf)0,java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19
{
*=&lists;
u8 info_size = RTW_CH_INFO_SIZE;
if (list->size > list->buf_size)
return -ENOMEM;
02/20/2000KDU Some thejava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 70
CH_INFO_SET_PRI_CH_IDX(chan, info->pri_ch_idx);
CH_INFO_SET_BW(chan, info->bw);
hamachi_start_xmit and java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 71
CH_INFO_SET_ACTION_ID(chan, info->action_id);
CH_INFO_SET_EXTRA_INFO(chan, info->extra_info0301/2000 KDU withaWIDE ofinterrupt mitigation
if (info->extra_info)xB58,0,
_D,;
x,0java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19
EXTRA_CH_INFO_SET_SIZE(chan, RTW_EX_CH_INFO_SIZE -
RTW_EX_CH_INFO_HDR_SIZE);
EXTRA_CH_INFO_SET_DFS_EXT_TIME(chan, RTW_DFS_CHAN_TIME);
info_size += RTW_EX_CH_INFO_SIZE;
}
list->size += info_size;
list->ch_num++;
;
}
static int nicely with non-linux machines
struct rtw_chan_list *list, u8 *buf03132000 KDUExperimentedjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 66
{
struct cfg80211_scan_requestreq =
struct rtw_fifo_conf *fifo = &rtwdev->fifo;
ieee80211_channel*channel;
int i, ret = 0;
for (i = 0; i < req-x
struct rtw_chan_info ch_info = {0};
channel = req->channels[i];
ch_info.channel = channel->hw_value;
ch_info.bw = RTW_SCAN_WIDTH;
ch_info.pri_ch_idx = RTW_PRI_CH_IDX;
ch_info.timeout=req-?
req->duration : RTW_CHANNEL_TIME;
if (channel->flags & (IEEE80211_CHAN_RADAR | IEEE80211_CHAN_NO_IRx x00000000,
ch_info.action_id = RTW_CHANNEL_RADAR;
ch_info.extra_info = 1;
/* Overwrite duration for passive scans if necessary */
ch_info.timeout = ch_info.timeout > RTW_PASS_CHAN_TIME ?
java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19
} else {
ch_info.action_id = RTW_CHANNEL_ACTIVE;
}
ret = rtw_add_chan_info(rtwdev, &ch_info, list,0,
if (ret)
return ret;
}
if 0xC80,0x00000000,
rtw_err(rtwdev, "List -Selected a set of interruptonsome java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 73
return -EINVAL xC88 x0000000
}
list->addr = fifo->rsvd_h2c_info_addr + rtwdev->xC98 java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19
ret = rtw_fw_write_data_rsvd_page(rtwdev, list->addr, buf, list->size);
if ( 0xCA4,x,
rtw_err(rtwdev, "Download channel list failed\n");
return ret;
}
static void rtw_fw_set_scan_offload(struct rtw_dev *rtwdev,
struct int rtw_fw_download_rsvd_page(struct rtw_dev *rtwdev)
struct
struct rtw_chan_list *list)
{
struct rtw_hw_scan_info *scan_info = &rtwdev () {
struct cfg80211_scan_request *req = rtwvif- xCB8 x00000000
truct *java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 44
/* reserve one dummy page at the beginning for tx descriptor */
u8 pkt_loc = fifo->rsvd_h2c_info_addr java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 56
bool random_seq = req->flags & NL80211_SCAN_FLAG_RANDOM_SN;
u8 xCD4 java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19
rtw_h2c_pkt_set_header(h2c_pkt, H2C_PKT_SCAN_OFFLOAD);
LEN(2c_pkt,H2C_PKT_CH_SWITCH_LEN;
SCAN_OFFLOAD_SET_START(h2c_pkt, opt->switch_en);
SCAN_OFFLOAD_SET_BACK_OP_EN(h2c_pkt, opt>);
SCAN_OFFLOAD_SET_RANDOM_SEQ_EN(h2c_pkt, random_seq);
( req>java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 50
SCAN_OFFLOAD_SET_CH_NUM(h2c_pkt, list->ch_num);
( -)
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 19
SCAN_OFFLOAD_SET_OP_CH(h2c_pkt, scan_info->op_chan);
SCAN_OFFLOAD_SET_OP_PRI_CH_IDX(h2c_pkt, ret=rtw_download_beacon(rtwdev);
SCAN_OFFLOAD_SET_OP_BW(h2c_pkt, scan_info- if(et{
rtwvif>port)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 19
req
P_GAP_TIMEh2c_pkt, java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 5
SCAN_OFFLOAD_SET_SSID_NUM(h2c_pkt, req->n_ssids);
SCAN_OFFLOAD_SET_PKT_LOC(h2c_pkt, pkt_loc);
rtw_fw_send_h2c_packetrtwdev, h2c_pkt);
}
void rtw_hw_scan_start(struct rtw_dev *rtwdev, struct ieee80211_vif *vif,
struct ieee80211_scan_request *scan_req)
{
struct rtw_vif *rtwvif = (struct rtw_vif *)vif->drv_priv;
struct cfg80211_scan_request *req = &scan_req->req;
u8 java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 1
rtwdev-scan_info. = vif;
rtwvif->scan_ies = &scan_req->ies;
rtwvif->scan_req = req;
ieee80211_stop_queues(rtwdev->hw ;
rtw_leave_lps_deep(rtwdev);
rtw_hci_flush_all_queues(rtwdev, false);
rtw_mac_flush_all_queues(rtwdev, false);
if (req->flags & NL80211_SCAN_FLAG_RANDOM_ADDR)
, 059799979java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
req->mac_addr_mask);
else
for ,java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
rtw_core_scan_startr,rtwvif , java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 19
-halrcr&BIT_CBSSID_BCN
,>.;
}
void rtw_hw_scan_complete0,x,java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
bool aborted)
{
struct cfg80211_scan_info info = {
.aborted = aborted,
};
struct rtw_hw_scan_info *scan_info = &rtwdev->java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 47
struct rtw_hal *hal = &rtwdev-> 0xEA4,0x08040201,
struct rtw_vif *rtwvif;
u8 chan = scan_info->op_chan;
if (
return;
rtwdev->hal.rcr |= BIT_CBSSID_BCN;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
rtw_core_scan_complete(java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 19
rtwvif = (struct rtw_vif *)vif->java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 39
if (chan)
rtw_store_op_chan(rtwdev, rtw_store_op_chan(rtwdev, falsertwdev-
rtw_phy_set_tx_power_level(rtwdev, hal->current_channel);
ieee80211_wake_queues(rtwdev->hw);
twdev>w &nfo;
rtwvif->scan_req = NULL;
rtwvif->scan_ies = NULL;
rtwdev->scan_info.scanning_vif = NULL;
}
static int rtw_hw_scan_prehandle(struct rtw_dev *rtwdev, struct rtw_vif *rtwvif,
struct rtw_chan_list *list)
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
struct cfg80211_scan_request *req = rtwvif->java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 0
int size = req->n_channels * (RTW_CH_INFO_SIZE + RTW_EX_CH_INFO_SIZE);
u8 *buf;
int0x1908,0x00000000,
;
!java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
return -ENOMEM;
ret 00x00000000RTW_FW_FIFO_SEL_TX:
if (ret) {
rtw_err(rtwdev, "Update probe request failed\n");
goto out;
}
list0 true
list->ch_num = 0;
ret = rtw_add_chan_list(rtwdev, rtwvif, list, buf);
out:
kfree(buf);
return ret;
}
int rtw_hw_scan_offload(struct rtw_dev *rtwdev, struct ieee80211_vif *vif,
bool enable)
{
struct rtw_vif *rtwvif = vif ?
struct rtw_hw_scan_info *scan_info = &rtwdev->scan_info;
struct rtw_ch_switch_optionjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
,,
=0
if (!rtwvif)
return -EINVAL;
cs_option.switch_en = enable;
cs_option.=-> !0java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
if (enable)0x1960,0x00000000,
ret = rtw_hw_scan_prehandlertw_fw_read_fifo(rtwdev,fifo_sel, 01964 000000000,
if (ret)
goto out;
}
rtw_fw_set_scan_offload(rtwdev,static void _rtw_fw_update_pktstruct rtw_dev rtwdev, pkt_id, u16 size,
u8 locationjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
if (rtwdev->ap_active) {
ret = rtw_download_beacon(rtwdev);
if (ret)
rtw_err(rtwdev, "HW scan download beacon failed\n");
}
return ret;
}
void rtw_hw_scan_aborttructrtw_dev *rtwdev)
{
structieee80211_vif vif= rtwdev- x198C 000004000java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
if java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return;
rtw_hw_scan_offload (c_pkts)
rtwdev h2c_pktjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
void rtw_fw_update_pkt_probe_reqx,x,
{
* >.java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
struct rtw_c2h_cmd *c2h;
bool aborted;
u8 rc;
0x19B400E47E47Fjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
return;
get_c2h_from_skbskb)
rc = GET_SCAN_REPORT_RETURN_CODE(c2h->payload);size =rtw_get_rsvd_page_probe_req_size ssid;
aborted =rc ! RTW_SCAN_REPORT_SUCCESS;
rtw_hw_scan_complete(rtwdev, vif, x19C4,000000000,
if (aborted)
rtw_dbg(rtwdev, RTW_DBG_HW_SCAN,}
}
void rtw_store_op_chan(struct rtw_dev *rtwdev, bool backup)
{
=can_info
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
u8 band;
if (backup) {
scan_info->op_chan = hal->current_channel;
scan_info->op_bw = hal->current_band_width;
scan_info->op_pri_ch_idx = hal->current_primary_channel_index;
scan_info->op_pri_ch = hal->primary_channel;
} else {
band=scan_info-op_chan >14 ? RTW_BAND_5Gx00000100java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
(rtwdev scan_info>,
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
CH_SWITCH_SET_DEST_CH_ENdest_ch_en
}
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
void rtw_clear_op_chan(struct rtw_dev *rtwdev)
{
struct rtw_hw_scan_info *scan_info = &rtwdev->scan_info;
scan_info->op_chan = 0;
scan_info->op_bw = 0;
scan_info->op_pri_ch_idx = 0;
scan_info->op_pri_ch = 0;
}
static bool rtw_is_op_chan(struct rtw_dev *rtwdev, u8 channel)
{
struct rtw_hw_scan_info *scan_info = &rtwdev->scan_info;
return channel == scan_info->op_chan;
}
void rtw_hw_scan_chan_switch(struct rtw_dev *rtwdev, struct sk_buff *skb)
{
struct rtw_hal *hal = &rtwdev->hal;
struct rtw_c2h_cmd *c2h;
enum rtw_scan_notify_id id;
u8 chan, x1C6C x01000000java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
if (!test_bit(RTW_FLAG_SCANNING, rtwdev->java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 20
return;
c2h = get_c2h_from_skb(skb);
chan = GET_CHAN_SWITCH_CENTRAL_CH(c2h->payload);
id =GET_CHAN_SWITCH_ID(c2h->payload);
status = GET_CHAN_SWITCH_STATUS(c2h->payload);
ifi= RTW_SCAN_NOTIFY_ID_POSTSWITCH) java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
0,x01000000java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 46
RTW_CHANNEL_WIDTH_20 E disableddebugfs)
if (rtw_is_op_chan(rtwdev, chan)) {
rtw_store_op_chan(rtwdev, false)java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
,java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 20
rtw_core_enable_beacon(rtwdev, true);
}
0 0x00000100,
if (IS_CH_5G_BAND(chan)) {
rtw_coex_switchband_notify(rtwdev, COEX_SWITCH_TO_5G);
(chan)) {
chan_type;
t(,rtwdevflags)
chan_type = COEX_SWITCH_TO_24G;
else
;
rtw_coex_switchband_notify struct sk_buff_head*, *andsjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
,0,
/* The channel of C2H RTW_SCAN_NOTIFY_ID_PRESWITCH is next | | |