wireless-dev.git breaks wireless extensions
Hello!
Today's wireless-dev.git breaks wireless extensions. It forces CONFIG_CFG80211 to be enabled. I reported that it breaks legacy driver= s
back in December 2006. It's still broken. That's what I get for MadWifi:
ath0 4=BF3=C0=D8=BD=BF ESSID:"" [51] Nickname:""
Channel:-0 Access Point: 9F:DD:13:94:33:C0 Bit Rate=3D-576=
733 kb/s =20
Tx-Power=3Doff Sensitivity=3D-576733388 dBm =20
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality=3D0/94 Signal level=3D-96 dBm Noise level=3D-9=6 dBm
Rx invalid nwid:2088 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
I'll appreciate if things known be broken are not enabled by default, let alone unconditionally.
--=20
Regards,
Pavel Roskin
-
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
Johannes Berg
maintainerQuoted 4 lines · Pavel Roskin
Hello!
Today's wireless-dev.git breaks wireless extensions. It forces
CONFIG_CFG80211to be enabled.
^^^^^^^ ??????
Quoted 16 lines
I reported that it breaks legacy drivers
back in December 2006. It's still broken. That's what I get for MadWifi:ath0 4¿3Àؽ¿ ESSID:"" [51] Nickname:""
Channel:-0 Access Point: 9F:DD:13:94:33:C0 Bit Rate=-576733 kb/s
Tx-Power=off Sensitivity=-576733388 dBm
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality=0/94 Signal level=-96 dBm Noise level=-96 dBm Rx invalid nwid:2088 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0I'll appreciate if things known be broken are not enabled by default, let alone unconditionally.
Quoted 8 lines · Johannes Berg
Quoted 4 lines · Pavel Roskin
Hello!
Today's wireless-dev.git breaks wireless extensions. It forces
CONFIG_CFG80211to be enabled.^^^^^^^ ??????From
net/d80211/Kconfig:
config D80211
tristate "Generic IEEE 802.11 Networking Stack (dscape)" select CRYPTO
select CRYPTO_ECB
select CRYPTO_ARC4
select CRYPTO_AES
select CRC32
select WIRELESS_EXT
select CFG80211
It means if I want D80211, CFG80211 will be selected for me. Last time I pulled the sources (a few days ago) I was able to disable CFG80211.
Even if I compile D80211 and CFG80211 as modules and load MadWifi, lsmod shows that cfg80211 is not loaded, but the iwconfig output is still wrong. Some part of cfg80211 must be compiled into the kernel.
Signature · 2 lines
Regards, Pavel Roskin
Johannes Berg
maintainerPATCH 1/1 fix wext_ioctl() exit path
In reply to Pavel RoskinThis fixes the wext_ioctl() exit path, it was copying things from "&ifr" instead of "ifr", caused by now using a pointer to ifr in that new function.
---
This should fix it. Looks like I had it right for the cfg80211 exit path but not the old one...
net/wireless/wext-common.c +3 -5
@@ -640,26 +640,24 @@ int wext_ioctl(unsigned int cmd, structrtnl_unlock (); -if (IW_IS_GET (cmd) &©_to_user (arg, &ifr,sizeof (struct ifreq ))) - ret = -EFAULT ; -/* haha, I cheat here by allowing a driver or stack to have both WE and * CFG80211-WE for a little while during conversion... wext returns * -EOPNOTSUPP if a handler is not assigned, so we can in that case try * calling cfg80211's compat code instead. */ if (ret != -EOPNOTSUPP ) -return ret; + goto out;#endif #ifdef CONFIG_CFG80211_WEXT_COMPAT /* no need to hold rtnl lock here for the new stuff, * we properly use dev_get_by_name() and dev_put() */ ret =call_cfg80211_wext_ioctl (ifr, cmd); +#endif + out:if (IW_IS_GET (cmd) &©_to_user (arg, ifr,sizeof (struct ifreq ))) ret = -EFAULT ; -#endif return ret; }
Quoted 3 lines · Pavel Roskin
Even if I compile D80211 and CFG80211 as modules and load MadWifi, lsmod shows that cfg80211 is not loaded, but the iwconfig output is still wrong. Some part of cfg80211 must be compiled into the kernel.
Sounds like the new version of cfg80211's wext compatibility hook is broken...?
Signature · 2 lines
John W. Linville [email protected]
Quoted 8 lines · John W. Linville
Quoted 3 lines · Pavel Roskin
Even if I compile D80211 and CFG80211 as modules and load MadWifi, lsmod shows that cfg80211 is not loaded, but the iwconfig output is still wrong. Some part of cfg80211 must be compiled into the kernel.
Sounds like the new version of cfg80211's wext compatibility hook is broken...?
I've applied two patches by Johannes "fix wext_ioctl() exit path" and "fix cfg80211 modular compile w/o wext-compat", and MadWifi is working fine now.
On the other hand, DadWifi won't compile:
/home/proski/src/dadwifi/ath/if_ath_d80211.c: In function 'ath_d80211_calc_bssid_mask':/home/proski/src/dadwifi/ath/if_ath_d80211.c:305: error: 'struct ieee80211_hw' has no member named 'perm_addr'
The same problem exists with iwlwifi. I'm away from my bcm43xx card at the moment.
I'll post more if I find any problems with either upgrading the driver or wireless extensions for d80211 enabled drivers.
Signature · 2 lines
Regards, Pavel Roskin
Quoted 8 lines · Pavel Roskin
Quoted 2 lines · John W. Linville
Sounds like the new version of cfg80211's wext compatibility hook is broken...?
I've applied two patches by Johannes "fix
wext_ioctl()exit path" and "fix cfg80211 modular compile w/o wext-compat", and MadWifi is working fine now.
Soungs good...thanks for the report!
Quoted 9 lines
On the other hand, DadWifi won't compile:
/home/proski/src/dadwifi/ath/if_ath_d80211.c: In function 'ath_d80211_calc_bssid_mask':/home/proski/src/dadwifi/ath/if_ath_d80211.c:305: error: 'structieee80211_hw' has no member named 'perm_addr'The same problem exists with iwlwifi. I'm away from my bcm43xx card at the moment.
Yep...this goes with the territory for out-of-kernel drivers.
FWIW, the changes are straight-forward. See the commits near the top of the tree for examples.
Quoted 2 lines
I'll post more if I find any problems with either upgrading the driver or wireless extensions for d80211 enabled drivers.
Thanks,
John
Signature · 2 lines
John W. Linville [email protected]