|
@@ -1,5 +1,5 @@
|
|
/*
|
|
/*
|
|
- * Copyright (c) 2011-2017 The Linux Foundation. All rights reserved.
|
|
|
|
|
|
+ * Copyright (c) 2011-2018 The Linux Foundation. All rights reserved.
|
|
*
|
|
*
|
|
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
|
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
|
*
|
|
*
|
|
@@ -5887,6 +5887,16 @@ bool lim_set_nss_change(tpAniSirGlobal pMac, tpPESession psessionEntry,
|
|
{
|
|
{
|
|
tUpdateRxNss tempParam;
|
|
tUpdateRxNss tempParam;
|
|
|
|
|
|
|
|
+ if (!rxNss) {
|
|
|
|
+ pe_err("Invalid rxNss value: %u", rxNss);
|
|
|
|
+ if (!cds_is_driver_recovering()) {
|
|
|
|
+ if (cds_is_self_recovery_enabled())
|
|
|
|
+ cds_trigger_recovery(QDF_REASON_UNSPECIFIED);
|
|
|
|
+ else
|
|
|
|
+ QDF_BUG(0);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
tempParam.rxNss = rxNss;
|
|
tempParam.rxNss = rxNss;
|
|
tempParam.staId = staId;
|
|
tempParam.staId = staId;
|
|
tempParam.smesessionId = psessionEntry->smeSessionId;
|
|
tempParam.smesessionId = psessionEntry->smeSessionId;
|