Alfonso Fiore | 1 Feb 01:06
Picon

compat-wireless can't compile under kernel 3.2.0 both 3.3-rc1-2 and 2012-01-26 - error: missing binary operator before token "("

Hi,

I'm facing a bug you fixed in compat-wireless-3.3-rc1-2: rt2800pci:
fix spurious interrupts generation
But I must run a 3.2.0 kernel with some patches for my display driver
(cause I'm greedy and I want both to see the screen and access
internet)

I tested in kernel 3.0.0 and I can compile and see the bug is fixed.

but when I try to compile under 3.2.0 I get the following error:

$ make
./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
make -C /lib/modules/3.2.0-interlaced2+/build
M=/home/alfonso/wifi/compat-wireless-2012-01-26 modules
make[1]: Entering directory `/home/alfonso/tests/kernel/linux_keithp'
  LD      /home/alfonso/wifi/compat-wireless-2012-01-26/compat/built-in.o
  CC [M]  /home/alfonso/wifi/compat-wireless-2012-01-26/compat/main.o
In file included from include/net/net_namespace.h:13:0,
                 from
/home/alfonso/wifi/compat-wireless-2012-01-26/include/net/net_namespace.h:7,
                 from include/linux/netdevice.h:49,
                 from
/home/alfonso/wifi/compat-wireless-2012-01-26/include/linux/compat-2.6.29.h:5,
                 from
/home/alfonso/wifi/compat-wireless-2012-01-26/include/linux/compat-2.6.h:24,
                 from <command-line>:0:
include/net/netns/mib.h:15:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/net/netns/mib.h:15:15: error: missing binary operator before token "("
(Continue reading)

John W. Linville | 1 Feb 01:15
Favicon

Re: compat-wireless can't compile under kernel 3.2.0 both 3.3-rc1-2 and 2012-01-26 - error: missing binary operator before token "("

Luis needs to apply "compat: use kconfig.h in compat-2.6.h for 3.1
and later kernels" that I posted earlier.

John

On Wed, Feb 01, 2012 at 01:06:01AM +0100, Alfonso Fiore wrote:
> Hi,
> 
> I'm facing a bug you fixed in compat-wireless-3.3-rc1-2: rt2800pci:
> fix spurious interrupts generation
> But I must run a 3.2.0 kernel with some patches for my display driver
> (cause I'm greedy and I want both to see the screen and access
> internet)
> 
> I tested in kernel 3.0.0 and I can compile and see the bug is fixed.
> 
> but when I try to compile under 3.2.0 I get the following error:
> 
> $ make
> ./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
> make -C /lib/modules/3.2.0-interlaced2+/build
> M=/home/alfonso/wifi/compat-wireless-2012-01-26 modules
> make[1]: Entering directory `/home/alfonso/tests/kernel/linux_keithp'
>   LD      /home/alfonso/wifi/compat-wireless-2012-01-26/compat/built-in.o
>   CC [M]  /home/alfonso/wifi/compat-wireless-2012-01-26/compat/main.o
> In file included from include/net/net_namespace.h:13:0,
>                  from
> /home/alfonso/wifi/compat-wireless-2012-01-26/include/net/net_namespace.h:7,
>                  from include/linux/netdevice.h:49,
>                  from
(Continue reading)

Alfonso Fiore | 1 Feb 01:32
Picon

Re: compat-wireless can't compile under kernel 3.2.0 both 3.3-rc1-2 and 2012-01-26 - error: missing binary operator before token "("

Hi John,

thank you.

sorry for jumping the gun, but I've been fighting various driver
problems for weeks and now I feel so close...

I tried to apply your patch and I imagine I did right since the error changed...

I created a text file patch.txt and then from the folder of
compat-wireless I did:
patch -p1 < patch.txt
patching file include/linux/compat-2.6.h (output)

---
 include/linux/compat-2.6.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/include/linux/compat-2.6.h b/include/linux/compat-2.6.h
index c23e94a..3ccd051 100644
--- a/include/linux/compat-2.6.h
+++ b/include/linux/compat-2.6.h
@@ -2,7 +2,9 @@
 #define LINUX_26_COMPAT_H

 #include <linux/version.h>
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0))
+#include <linux/kconfig.h>
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
(Continue reading)

Richard Farina | 1 Feb 01:55
Picon

Re: compat-wireless can't compile under kernel 3.2.0 both 3.3-rc1-2 and 2012-01-26 - error: missing binary operator before token "("

On 01/31/12 19:32, Alfonso Fiore wrote:
> Hi John,
>
> thank you.
>
> sorry for jumping the gun, but I've been fighting various driver
> problems for weeks and now I feel so close...
>
> I tried to apply your patch and I imagine I did right since the error changed...
>
> I created a text file patch.txt and then from the folder of
> compat-wireless I did:
> patch -p1 < patch.txt
> patching file include/linux/compat-2.6.h (output)
>
> ---
>  include/linux/compat-2.6.h |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/include/linux/compat-2.6.h b/include/linux/compat-2.6.h
> index c23e94a..3ccd051 100644
> --- a/include/linux/compat-2.6.h
> +++ b/include/linux/compat-2.6.h
> @@ -2,7 +2,9 @@
>  #define LINUX_26_COMPAT_H
>
>  #include <linux/version.h>
> -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0))
> +#include <linux/kconfig.h>
(Continue reading)

Alfonso Fiore | 1 Feb 01:59
Picon

Re: compat-wireless can't compile under kernel 3.2.0 both 3.3-rc1-2 and 2012-01-26 - error: missing binary operator before token "("

On Wed, Feb 1, 2012 at 1:55 AM, Richard Farina <sidhayn@...> wrote:
> Did you remember to run "make clean" after applying the patch?
>
> -Rick

Hi Rick,

Yes, I think so. But I tried again with make clean to be sure and I
get the same (new) error.

thank you,
alfonso
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@...
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Prashant Badsheshi | 1 Feb 03:18
Picon

Regarding carl9170 wifi linux driver

Hi,

We are planning to use the below wifi dongle as station and AP.

https://www.thinkpenguin.com/gnu-linux/penguin-wireless-n-usb-adapter

We got the linux driver from the below path

git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-testing.git

We found the driver source in drivers/net/wireless/ath/carl9170.

Our Question:

Is the carl9170 driver present in the above folder is a complete open
source driver?

Or is it not complete driver and is there any NON-GPL code that is not
provided as an open source?

Please clarify it. Your immediate response would be really appreciated.

Also it would be great if there is any design document or programmer’s
document for the above mentioned Wifi dongle chipset available.

Regards,

Prashant
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
(Continue reading)

Larry Finger | 1 Feb 04:13
Favicon

Re: Regarding carl9170 wifi linux driver

On 01/31/2012 08:18 PM, Prashant Badsheshi wrote:
> Hi,
>
> We are planning to use the below wifi dongle as station and AP.
>
> https://www.thinkpenguin.com/gnu-linux/penguin-wireless-n-usb-adapter
>
>
>
> We got the linux driver from the below path
>
> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-testing.git
>
>
>
> We found the driver source in drivers/net/wireless/ath/carl9170.
>
>
>
> Our Question:
>
> Is the carl9170 driver present in the above folder is a complete open
> source driver?
>
> Or is it not complete driver and is there any NON-GPL code that is not
> provided as an open source?
>
> Please clarify it. Your immediate response would be really appreciated.
>
>
(Continue reading)

Pat Erley | 1 Feb 04:19

Re: Virtual Interfaces; using hostapd AND wpa_supplicant on the same physical device

On 01/30/2012 05:29 AM, Lars Duesing wrote:
> Hi List,
>
> I'd like to create a temporary hotspot using an other wireless network which is already there.
> My kids have some devices (like Nintendo DS) which are only capable using WEP.
> So I want to create a temporary hotspot which I can filter on my own.
>
> Years ago I was able to do such a configuration, but this was before mac80211 (I was then often on trade
fairs, with very costly wlan-tariffs...).
>
> Problem is: I get an error about a network name already exist - either on hostapd and wpa_supplicant -
everytime the last program started.
>

You need to change the mac address of the second device once you create it.

Pat Erley
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@...
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Luis R. Rodriguez | 1 Feb 08:10

Re: [PATCH] compat: use kconfig.h in compat-2.6.h for 3.1 and later kernels

On Thu, Jan 26, 2012 at 10:00 AM, John W. Linville
<linville@...> wrote:
> This file was introduced in commit 2a11c8ea20bf850b3a2c60db8c2e7497d28aba99
> and included in 3.1 and later kernels.  It includes <generated/autoconf.h>
> itself, as well as some other definitions that are used elsewhere.
>
> Signed-off-by: John W. Linville <linville@...>

Apologies for the delay, and thanks a lot, applied and pushed!

  Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@...
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Dan Carpenter | 1 Feb 08:42
Picon
Favicon

[patch -next] mac80211: off by one in mcs mask handling

"ridx" is used as an index into the mcs_mask[] array which has
IEEE80211_HT_MCS_MASK_LEN elements.

Signed-off-by: Dan Carpenter <dan.carpenter@...>

diff --git a/net/mac80211/rate.c b/net/mac80211/rate.c
index 3fef26d..22fc28e 100644
--- a/net/mac80211/rate.c
+++ b/net/mac80211/rate.c
@@ -324,7 +324,7 @@ static bool rate_idx_match_mcs_mask(struct ieee80211_tx_rate *rate,
 	rbit = rate->idx % 8;

 	/* sanity check */
-	if (ridx < 0 || ridx > IEEE80211_HT_MCS_MASK_LEN)
+	if (ridx < 0 || ridx >= IEEE80211_HT_MCS_MASK_LEN)
 		return false;

 	/* See whether the selected rate or anything below it is allowed. */
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index c910b07..7db14b4 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -5408,7 +5408,7 @@ static bool ht_rateset_to_mask(struct ieee80211_supported_band *sband,
 		rbit = BIT(rates[i] % 8);

 		/* check validity */
-		if ((ridx < 0) || (ridx > IEEE80211_HT_MCS_MASK_LEN))
+		if ((ridx < 0) || (ridx >= IEEE80211_HT_MCS_MASK_LEN))
 			return false;

(Continue reading)


Gmane