Why is WPA-encrypted ad-hoc mode disabled in 12.04?
Both the SIOCSIWENCODEEXT
and SIOCSIWGENIE
errors are usually intimately associated with WPA/wpa_supplicant
failure.
Have you tried recompiling the latest RT2790 driver with *wpa_supplicant* support enabled -- by default it's NOT!. Also, note that it only supports WPA PSK for adhoc (see line 280 of README_STA
below)
- Get the latest driver, download, extract,
cd
to the directory. -
Inside
os/linux/config.mk
, find lines 10-14, which read:# Support Wpa_Supplicant HAS_WPA_SUPPLICANT=n # Support Native WpaSupplicant for Network Maganger HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n
Change the
n
at the end of both those lines toy
.-
make
andsudo make install
the driver (you'll need kernel headers, etc - comment if you need more info on the process).
Reboot, and see if things are any different (errors, etc.) with WPA adhoc.
If not:
- Following the
README_STA
file in the extracted directory, copy itcp RT2860STA.dat /etc/Wireless/RT2860STA/RT2860STA.dat
-
Open that file, and change:
NetworkType=Adhoc
-
Authmode=WPANONE
: important only this (WPA PSK) is supported for adhoc - Try
EncrypType=NONE
(and even TKIP and AES, because README does not say which is supported for adhoc) - Set
WPAPSK
to the key -- ***wpa_supplicant* may not be fully supported in adhoc*
Unload/load the the module to make it take effect:
rmmod
andmodprobe
, respectively.See the
README_STA
file for more parameters and details, and try experimenting. Comment if you need more help.
Related videos on Youtube
int_ua
I dream of a day when settings are written to disk only when changed and software does not freak out when $HOME is read-only.
Updated on September 18, 2022Comments
-
int_ua over 1 year
Or, alternatively, how can I check that some WiFi chip supports WPA-encrypted hotspot creation? Is it hardware-dependent? Is anyone able to create WPA-encrypted hotspot?
Update: See the discussion at http://chat.stackexchange.com/transcript/3874
Related bug reports:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/905748
-
Lucio almost 12 years"how can I check that some WiFi chip supports WPA" with your model device. "Is it hardware-dependent?" There is many router that doesn't but there is an algorithmic (TKIP) that solve that compatibility problem.
-
int_ua almost 12 yearsNotice: I'm talking about Ubuntu in a hotspot mode, not about routers
-
Thomas Ward almost 12 yearsAs an aside, this may be a kernel incompatiblity problem, as the GNOME bug tracker here suggests that newer kernels do not work with WPA / WPA2 on Ad-Hoc networks.
-
-
int_ua almost 12 yearsWhy NONE? Can we use TKIP for example? Trying this.
-
int_ua almost 12 yearsAnd it creates open adhoc network, no encryption at all.
-
pl1nk almost 12 years@int_ua : Just to clarify, have you tried this and you resulted with an open adhoc network?
-
int_ua almost 12 yearsYes, I've copied the config adding only new lines where they should be and changing the password and executed the wpa_supplicant command with sudo. It showed a couple of
ioctl[SIOCSIWENCODEEXT]: Invalid argument
and the network is showed as non-encrypted on Nokia N900. The output: paste.ubuntu.com/1059026 -
int_ua almost 12 yearsUnfortunately, I'm out of town with a very limited GPRS traffic, can't check the solution right now. Also, I was asking a generic question, I don't really like your edits since all notebooks with 12.04 I've met wasn't being able to create WPA-encrypted hotspot. And that's a big issue that should not be split into hardware-specific discussions.