On 05/31/15 10:18, Rafał Miłecki wrote:
On 21 December 2014 at 14:03, Arend van Spriel<arend@xxxxxxxxxxxx> wrote:
On 12/20/14 19:25, Rafał Miłecki wrote:
Hi guys,
Let me report something I think is a bug in this unusual-patch way ;)
---
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
index 39b45c0..2c9e88b 100644
--- a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
+++ b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
@@ -313,11 +313,13 @@ static u16 chandef_to_chanspec(struct brcmu_d11inf
*d11inf,
case NL80211_CHAN_WIDTH_80:
ch_inf.bw = BRCMU_CHAN_BW_80;
if (primary_offset< 0) {
+ /* FIXME: We compare frequencies offset with a
value -2. Looks like a wrong logic. */
if (primary_offset< -CH_10MHZ_APART)
You are right. The primary_offset is in MHz, but the logical expression is
for channel spacing (1 channel == 5MHz). So here it should be -10 instead.
Thanks for reporting this.
Will you fix it?
Completely forgot about this one. Feel free to submit a patch for it.
Regards,
Arend
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html