mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
qcacld-3.0: Remove gLimProbeRespDisableFlag from tAniSirLim
The gLimProbeRespDisableFlag field in tAniSirLim is initialized, but is otherwise never modified, hence it serves no purpose. Therefore remove it. Change-Id: I053ad8f37b8be31d2f6ad261063c26a1e55c951f CRs-Fixed: 2379068
This commit is contained in:
parent
2973ca7526
commit
bcbb6500c6
3 changed files with 1 additions and 8 deletions
|
|
@ -465,10 +465,8 @@ typedef struct sAniSirLim {
|
|||
|
||||
/* */
|
||||
/* ---------------- DPH ----------------------- */
|
||||
/* these used to live in DPH but are now moved here (where they belong) */
|
||||
uint32_t gLimPhyMode;
|
||||
|
||||
uint8_t gLimProbeRespDisableFlag:1; /* control over probe response */
|
||||
/* ---------------- DPH ----------------------- */
|
||||
|
||||
/* //////////////////////////////////////// STATES RELATED END /////////////////////////////////////////// */
|
||||
|
|
|
|||
|
|
@ -158,7 +158,6 @@ static void __lim_init_states(struct mac_context *mac)
|
|||
sizeof(tLimNoShortSlotParams));
|
||||
|
||||
mac->lim.gLimPhyMode = 0;
|
||||
mac->lim.gLimProbeRespDisableFlag = 0; /* control over probe resp */
|
||||
}
|
||||
|
||||
static void __lim_init_vars(struct mac_context *mac)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
|
|
@ -255,10 +255,6 @@ lim_process_probe_req_frame(struct mac_context *mac_ctx, uint8_t *rx_pkt_info,
|
|||
tSirProbeReq probe_req;
|
||||
tAniSSID ssid;
|
||||
|
||||
/* Don't send probe responses if disabled */
|
||||
if (mac_ctx->lim.gLimProbeRespDisableFlag)
|
||||
return;
|
||||
|
||||
mac_hdr = WMA_GET_RX_MAC_HEADER(rx_pkt_info);
|
||||
if (LIM_IS_AP_ROLE(session) ||
|
||||
(LIM_IS_IBSS_ROLE(session) &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue