Skip to contentSkip to conversation

Problem making compat-wireless-2.6

DISCUSSION George Fong 6 participants 12 messages Jun 28, 2008 – Jun 30, 2008

lore
Share & tools
lore
#0 lore raw

Hi guys

Not sure if this is a bug but I have not been able to make the compat wireless drivers.

I am running off Fedora 9 (x86_64) with kernel 2.6.25.6-55.fc9.x86_64. I am interested in the iwl4965 driver.

Everything goes OK until we hit the compilation of part of the b43 driver. This is what I get:

/home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless/b43/rfkill.c:
In function ‘b43_rfkill_soft_toggle’:
/home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless/b43/rfkill.c:91:
error: ‘RFKILL_STATE_UNBLOCKED’ undeclared (first use in this function) /home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless/b43/rfkill.c:91:
error: (Each undeclared identifier is reported only once /home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless/b43/rfkill.c:91:
error: for each function it appears in.) /home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless/b43/rfkill.c:101:
error: ‘RFKILL_STATE_SOFT_BLOCKED’ undeclared (first use in this function) make[4]: *** [/home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless/b43/rfkill.o] Error 1
make[3]: *** [/home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless/b43] Error 2
make[2]: *** [/home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless] Error 2
make[1]: *** [_module_/home/george/Download/compat-wireless-2008-06-28] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.25.6-55.fc9.x86_64'
make: *** [modules] Error 2

It is entirely likely that I am doing something wrong but I don't know what.

Hope this is all OK to report.

Cheers
G,

Signature · 5 lines
George Fong
Lateral Plains Pty Ltd
Tel: +61 3 53 302 880
Fax: +61 3 53 302 881
Just remember, wherever you go .... there you are.
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 3 lines · George Fong

Hi guys
=20
Not sure if this is a bug but I have not been able to make the compat=

wireless=20

Quoted 3 lines

drivers.
=20
I am running off Fedora 9 (x86_64) with kernel 2.6.25.6-55.fc9.x86_64=

=2E I am=20

Quoted 1 line

interested in the iwl4965 driver.

One simple solution would be to disable the building of unneeded drivers by tuning your config.mk.

I suggest you to enable only the driver that you need.

Long answer, I don't know. Maybe some fix is needed to regain compatibility. But, again, in your situation you can (and should for efficienty's sake) forget about all the drivers that you don't care of.

Quoted 1 line

Everything goes OK until we hit the compilation of part of the b43 dr=

iver.=20

Quoted 3 lines

This is what I get:
=20 /home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless=

/b43/rfkill.c:=20

Quoted 2 lines

In function =E2=80=98b43_rfkill_soft_toggle=E2=80=99:
/home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless=

/b43/rfkill.c:91:=20

Quoted 1 line

error: =E2=80=98RFKILL_STATE_UNBLOCKED=E2=80=99 undeclared (first use=

in this function)

Quoted 1 line

/home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless=

/b43/rfkill.c:91:=20

Quoted 2 lines

error: (Each undeclared identifier is reported only once /home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless=

/b43/rfkill.c:91:=20

Quoted 2 lines

error: for each function it appears in.) /home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless=

/b43/rfkill.c:101:=20

Quoted 1 line

error: =E2=80=98RFKILL_STATE_SOFT_BLOCKED=E2=80=99 undeclared (first =

use in this function)

Quoted 2 lines

make[4]: ***=20 [/home/george/Download/compat-wireless-2008-06-28/drivers/net/wireles=

s/b43/rfkill.o]=20

Quoted 3 lines

Error 1
make[3]: ***=20 [/home/george/Download/compat-wireless-2008-06-28/drivers/net/wireles=

s/b43]=20

Quoted 3 lines

Error 2
make[2]: ***=20 [/home/george/Download/compat-wireless-2008-06-28/drivers/net/wireles=

s] Error=20

Quoted 2 lines

2
make[1]: *** [_module_/home/george/Download/compat-wireless-2008-06-2=

8] Error=20

Quoted 5 lines

2
make[1]: Leaving directory `/usr/src/kernels/2.6.25.6-55.fc9.x86_64'
make: *** [modules] Error 2
=20
It is entirely likely that I am doing something wrong but I don't kno=

w what.

Quoted 7 lines

=20
Hope this is all OK to report.
=20
Cheers
G,
=20
=20

Best regards.

- --
=46ilippo Zangheri

GPG key ID: 0x6C1F2F2F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIZhXUjzxMG2wfLy8RArPXAKCE4whKT29GICQKZh92oXPGv3CVcACfZNPi tdbmbFS9HLOuyYzo5jdvg2M=3D
=3De3gp
-----END PGP SIGNATURE-----

--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to George Fong
Quoted 43 lines · George Fong

Hi guys

Not sure if this is a bug but I have not been able to make the compat wireless drivers.

I am running off Fedora 9 (x86_64) with kernel 2.6.25.6-55.fc9.x86_64. I am interested in the iwl4965 driver.

Everything goes OK until we hit the compilation of part of the b43 driver. This is what I get:

/home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless/b43/rfkill.c:
In function 'b43_rfkill_soft_toggle':
/home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless/b43/rfkill.c:91:
error: 'RFKILL_STATE_UNBLOCKED' undeclared (first use in this function) /home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless/b43/rfkill.c:91:
error: (Each undeclared identifier is reported only once /home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless/b43/rfkill.c:91:
error: for each function it appears in.) /home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless/b43/rfkill.c:101:
error: 'RFKILL_STATE_SOFT_BLOCKED' undeclared (first use in this function) make[4]: *** [/home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless/b43/rfkill.o] Error 1
make[3]: *** [/home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless/b43] Error 2
make[2]: *** [/home/george/Download/compat-wireless-2008-06-28/drivers/net/wireless] Error 2
make[1]: *** [_module_/home/george/Download/compat-wireless-2008-06-28] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.25.6-55.fc9.x86_64'
make: *** [modules] Error 2

It is entirely likely that I am doing something wrong but I don't know what.

Hope this is all OK to report.

Cheers
G,

Quoted 7 lines

--
George Fong
Lateral Plains Pty Ltd
Tel: +61 3 53 302 880
Fax: +61 3 53 302 881
Just remember, wherever you go .... there you are.

Try editing drivers/net/wireless/b43/rfkill.c, and replacing RFKILL_STATE_UNBLOCKED with RFKILL_STATE_ON and RFKILL_STATE_SOFT_BLOCKED with RFKILL_STATE_OFF. Looks like rfkill is not part of the compat package, and no work has been done to match compat-wireless to older RFKILLs.

Signature · 1 line
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
#3 lore raw
Quoted 5 lines · On Sat, Jun 28, 2008 at 01:21:54PM +0200, Stefanik G=E1bor wrote:

Try editing drivers/net/wireless/b43/rfkill.c, and replacing RFKILL_STATE_UNBLOCKED with RFKILL_STATE_ON and RFKILL_STATE_SOFT_BLOCKED with RFKILL_STATE_OFF. Looks like rfkill is not part of the compat package, and no work has been done to match compat-wireless to older RFKILLs.

=46WIW, rfkill probably _should_ be in compat-wireless. Luis?

John
--=20
John W. Linville
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 5 lines · John W. Linville
Quoted 3 lines · On Sat, Jun 28, 2008 at 01:21:54PM +0200, Stefanik G=E1bor wrote:

Try editing drivers/net/wireless/b43/rfkill.c, and replacing RFKILL_STATE_UNBLOCKED with RFKILL_STATE_ON and RFKILL_STATE_SOFT_BLOCKED with RFKILL_STATE_OFF. Looks like rfkill i=

s

Quoted 10 lines
Quoted 2 lines

not part of the compat package, and no work has been done to match compat-wireless to older RFKILLs.

FWIW, rfkill probably _should_ be in compat-wireless. Luis?

John
--
John W. Linville
[email protected]

John's proposal Acked-by: G=E1bor Stefanik <[email protected]>

--=20
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-) --
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#11 lore raw
In reply to George Fong
Quoted 7 lines · George Fong

Hi guys

Not sure if this is a bug but I have not been able to make the compat wireless drivers.

I am running off Fedora 9 (x86_64) with kernel 2.6.25.6-55.fc9.x86_64. I am interested in the iwl4965 driver.

Do you absolutely need the stuff I merged to wireless-next-2.6 yesterday? If not, I think you will find these kernels from Koji to otherwise be quite up-to-date:

http://koji.fedoraproject.org/koji/buildinfo?buildID=54043

Of course, the latest rawhide kernel (still building ATM) has the latest wireless bits:

http://koji.fedoraproject.org/koji/buildinfo?buildID=54098

And if you don't want rawhide but still want the latest wireless bits, there should be a new F9 kernel with those bits "soon" -- watch here:

http://koji.fedoraproject.org/koji/packageinfo?packageID=8

Hth!

John

Signature · 2 lines
John W. Linville
[email protected]
#5 lore raw
In reply to John W. Linville

T24gU2F0LCBKdW4gMjgsIDIwMDggYXQgODoxMCBBTSwgSm9obiBXLiBMaW52aWxsZQo8bGludmls bGVAdHV4ZHJpdmVyLmNvbT4gd3JvdGU6Cj4gT24gU2F0LCBKdW4gMjgsIDIwMDggYXQgMDE6MjE6 NTRQTSArMDIwMCwgU3RlZmFuaWsgR8OhYm9yIHdyb3RlOgo+Cj4+IFRyeSBlZGl0aW5nIGRyaXZl cnMvbmV0L3dpcmVsZXNzL2I0My9yZmtpbGwuYywgYW5kIHJlcGxhY2luZwo+PiBSRktJTExfU1RB VEVfVU5CTE9DS0VEIHdpdGggUkZLSUxMX1NUQVRFX09OIGFuZAo+PiBSRktJTExfU1RBVEVfU09G VF9CTE9DS0VEIHdpdGggUkZLSUxMX1NUQVRFX09GRi4gTG9va3MgbGlrZSByZmtpbGwgaXMKPj4g bm90IHBhcnQgb2YgdGhlIGNvbXBhdCBwYWNrYWdlLCBhbmQgbm8gd29yayBoYXMgYmVlbiBkb25l IHRvIG1hdGNoCj4+IGNvbXBhdC13aXJlbGVzcyB0byBvbGRlciBSRktJTExzLgo+Cj4gRldJVywg cmZraWxsIHByb2JhYmx5IF9zaG91bGRfIGJlIGluIGNvbXBhdC13aXJlbGVzcy4gIEx1aXM/CgpJ IGhhdmVuJ3QgaGFkIGEgY2hhbmNlIHRvIHBvcnQgcmZraWxsIHlldCBkb3duIHRvIDIuNi4yMi4g SWYgc29tZW9uZQppcyBpbnRlcmVzdGVkIEknZCBiZSBnbGFkIHRvIGFjY2VwdCBwYXRjaGVzLgoK ICBMdWlzCg==

#6 lore raw

On Sat, Jun 28, 2008 at 8:57 PM, Luis R. Rodriguez <[email protected]> w= rote:

Quoted 7 lines
Quoted 5 lines · John W. Linville
Quoted 3 lines · On Sat, Jun 28, 2008 at 01:21:54PM +0200, Stefanik G=E1bor wrote:

Try editing drivers/net/wireless/b43/rfkill.c, and replacing RFKILL_STATE_UNBLOCKED with RFKILL_STATE_ON and RFKILL_STATE_SOFT_BLOCKED with RFKILL_STATE_OFF. Looks like rfkill =

is

Quoted 10 lines
Quoted 4 lines
Quoted 2 lines

not part of the compat package, and no work has been done to match compat-wireless to older RFKILLs.

FWIW, rfkill probably _should_ be in compat-wireless. Luis?

I haven't had a chance to port rfkill yet down to 2.6.22. If someone is interested I'd be glad to accept patches.

Luis

Right now, compat-wireless doesn't work even on 2.6.25, for this reason. Even an implementation that requires 2.6.25 would be an improvement from here.

--=20
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-) --
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw
Quoted 1 line · On Sat, Jun 28, 2008 at 9:08 PM, Stefanik G=E1bor <netrolller.3d@gmail.= com>…

On Sat, Jun 28, 2008 at 8:57 PM, Luis R. Rodriguez <[email protected]>=

Quoted 7 lines · wrote:
Quoted 7 lines
Quoted 5 lines · John W. Linville
Quoted 3 lines · On Sat, Jun 28, 2008 at 01:21:54PM +0200, Stefanik G=E1bor wrote:

Try editing drivers/net/wireless/b43/rfkill.c, and replacing RFKILL_STATE_UNBLOCKED with RFKILL_STATE_ON and RFKILL_STATE_SOFT_BLOCKED with RFKILL_STATE_OFF. Looks like rfkill=

is

Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

not part of the compat package, and no work has been done to match compat-wireless to older RFKILLs.

FWIW, rfkill probably _should_ be in compat-wireless. Luis?

I haven't had a chance to port rfkill yet down to 2.6.22. If someone is interested I'd be glad to accept patches.

Quoted 6 lines
Quoted 2 lines

Luis

Right now, compat-wireless doesn't work even on 2.6.25, for this reason. Even an implementation that requires 2.6.25 would be an improvement from here.

wouldn't simple defines fix it for now until someone backports the rfkill patches?
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#8 lore raw
In reply to Stefanik Gábor

<snip>

Dang :-) This was the fix.

Quoted 5 lines

Try editing drivers/net/wireless/b43/rfkill.c, and replacing RFKILL_STATE_UNBLOCKED with RFKILL_STATE_ON and RFKILL_STATE_SOFT_BLOCKED with RFKILL_STATE_OFF. Looks like rfkill is not part of the compat package, and no work has been done to match compat-wireless to older RFKILLs.

Thank you for such prompt responses. Although I did this for the b43 driver, I ended up progressively having to do the same fix for the drivers for a couple more, ie iwlwifi and rxt200

I am not concerned about the rxt200 but the driver I was interested in was the iwl4965, so I am not sure that by changing the settings on iwl-rfkill.c I have affected the driver I am using ....

Having said that... the email is brought to you courtesy of the iwl9645 wifi device .. which has got to be a Good Thing ;-)

Agree about the proper way of doing things - should really install a newer kernel, but I am strapped into an nVidia graphics card on my laptop and the livna drivers keep pace well but I think I risk breaking these at the moment with the newer kernel.

Thank you all for your prompt responses and asistance... on a weekend no less :-) I'll monitor progress and contribute whatever little I can as I get this new laptop settled.

Cheers
G.

Signature · 5 lines
George Fong
Lateral Plains Pty Ltd
Tel: +61 3 53 302 880
Fax: +61 3 53 302 881
Just remember, wherever you go .... there you are.
#9 lore raw
Quoted 22 lines · George Fong

<snip>

Dang :-) This was the fix.

Quoted 5 lines

Try editing drivers/net/wireless/b43/rfkill.c, and replacing RFKILL_STATE_UNBLOCKED with RFKILL_STATE_ON and RFKILL_STATE_SOFT_BLOCKED with RFKILL_STATE_OFF. Looks like rfkill is not part of the compat package, and no work has been done to match compat-wireless to older RFKILLs.

Thank you for such prompt responses. Although I did this for the b43 driver, I ended up progressively having to do the same fix for the drivers for a couple more, ie iwlwifi and rxt200

I am not concerned about the rxt200 but the driver I was interested in was the iwl4965, so I am not sure that by changing the settings on iwl-rfkill.c I have affected the driver I am using ....

Having said that... the email is brought to you courtesy of the iwl9645 wifi device .. which has got to be a Good Thing ;-)

Quoted 8 lines

Agree about the proper way of doing things - should really install a newer kernel, but I am strapped into an nVidia graphics card on my laptop and the livna drivers keep pace well but I think I risk breaking these at the moment with the newer kernel.

Thank you all for your prompt responses and asistance... on a weekend no less :-) I'll monitor progress and contribute whatever little I can as I get this new laptop settled.

I've fixed this in compat-wireless, it should now compile fine for kernels <= 2.6.26.

Luis

#10 lore raw
Quoted 28 lines · Luis R. Rodriguez
Quoted 27 lines · George Fong

<snip>

Dang :-) This was the fix.

Quoted 5 lines

Try editing drivers/net/wireless/b43/rfkill.c, and replacing RFKILL_STATE_UNBLOCKED with RFKILL_STATE_ON and RFKILL_STATE_SOFT_BLOCKED with RFKILL_STATE_OFF. Looks like rfkill is not part of the compat package, and no work has been done to match compat-wireless to older RFKILLs.

Thank you for such prompt responses. Although I did this for the b43 driver, I ended up progressively having to do the same fix for the drivers for a couple more, ie iwlwifi and rxt200

I am not concerned about the rxt200 but the driver I was interested in was the iwl4965, so I am not sure that by changing the settings on iwl-rfkill.c I have affected the driver I am using ....

Having said that... the email is brought to you courtesy of the iwl9645 wifi device .. which has got to be a Good Thing ;-)

Agree about the proper way of doing things - should really install a newer kernel, but I am strapped into an nVidia graphics card on my laptop and the livna drivers keep pace well but I think I risk breaking these at the moment with the newer kernel.

Quoted 6 lines
Quoted 3 lines

Thank you all for your prompt responses and asistance... on a weekend no less :-) I'll monitor progress and contribute whatever little I can as I get this new laptop settled.

I've fixed this in compat-wireless, it should now compile fine for kernels <= 2.6.26.

Doh I had used < 2.6.26, I've now added this for <=. This RFKILL stuff will be part of 2.6.27. Committed and pushed, in case you were trying to compile compat-wireless on 2.6.26. New tarball will be generated shortly.

Luis