]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "iwlwifi: mvm: fix scan config command size"
authorMehmet Akif Tasova <makiftasova@gmail.com>
Fri, 13 Dec 2019 20:35:10 +0000 (23:35 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 30 Dec 2019 13:43:40 +0000 (15:43 +0200)
commit08e1cfad4dc11067b107333478fb2b6b1dbde929
treef836e1f3def1fcf10d98f876afa6cbeb4d6f4c91
parentcc0db3eb9ad14af2c108b8f0aed82d06c3b24472
Revert "iwlwifi: mvm: fix scan config command size"

Since v5.4-rc1 was released, iwlwifi started throwing errors when scan
commands were sent to the firmware with certain devices (depending on
the OTP burned in the device, which contains the list of available
channels).  For instance:

iwlwifi 0000:00:14.3: FW error in SYNC CMD SCAN_CFG_CMD

This bug was reported in the ArchLinux bug tracker:
https://bugs.archlinux.org/task/64703

And also in a specific case in bugzilla, when the lar_disabled option
was set: https://bugzilla.kernel.org/show_bug.cgi?id=205193

Revert the commit that introduced this error, by using the number of
channels from the OTP instead of the number of channels that is
specified in the FW TLV that tells us how many channels it supports.

This reverts commit c6771742bcf492ad6aedfc0d072c281e8db20236.

Cc: stable@vger.kernel.org # v5.4+
Signed-off-by: Mehmet Akif Tasova <makiftasova@gmail.com>
[ Luca: reworded the commit message a bit. ]
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/scan.c