OpenWrt Forum Archive

Topic: Encryption problem

The content of this topic has been archived on 6 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hi ,I'm new here.
my openwrt had wpad-mini - 20111103-2
so I had comand:
root@OpenWrt:~# uci set wireless.@wifi-iface[0].encryption=psk2
root@OpenWrt:~# uci set wireless.@wifi-iface[0].key="your_password"
root@OpenWrt:~# uci commit wireless
but it reported error as follow:

root@OpenWrt:/# uci commit wirelesss
uci: Entry not found
root@OpenWrt:/# wifi
batman_adv: bat0: Interface deactivated: ath0
batman_adv: bat0: Removing interface: ath0
mesh-bridge: port 2(bat0) entering disabled state
device bat0 left promiscuous mode
mesh-bridge: port 2(bat0) entering disabled state
sysctl: short write
/sbin/uci: Invalid argument
/sbin/uci: Invalid argument
Interface type  not supported.
root@OpenWrt:/# wifi
sysctl: short write
/sbin/uci: Invalid argument
/sbin/uci: Invalid argument
Interface type  not supported.
root@OpenWrt:/#
what's wrong with it ?
thank you

root@OpenWrt:/# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wifi0     no wireless extensions.

mesh-bridge  no wireless extensions.

ath0      IEEE 802.11Ta  ESSID:"jack-mesh"
          Mode:Ad-Hoc  Frequency:5.8 GHz  Cell: 02:26:48:00:9A:0E
          Bit Rate:0 kb/s   Tx-Power=24 dBm
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/70  Signal level=-93 dBm  Noise level=-93 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

root@OpenWrt:/#

hi,when i change zhe mode option adhoc to ap ,Encryption is work ok!
how can i set Encryption to mode adhoc?

I do it !
It works OK now!

Hello!
I'm trying to set up the encryption in a mesh adhoc with batman-adv, using linksys wrt54gs, and i can't succeed. Simply doesn't work. In mode AP works fine, but in adhoc, doesn't. I tryed wep, wpa, wpa2 (psk, psk2)... The configuration file i used is in /etc/config/wireles... i'm using trunk openwrt...

I already read that in adhoc mode, encryption is not possible yet, due the trunk openwrt is not prepared with the drivers for linksys broadcom... i already read that wpa is not possible in adhoc, only wep works... the truth is that i can't get nothing to works...

Also tryed to install nas and wpad-mini... tryed to edit the wpa_supplicant file... but no success...

So if you don't mind, could you please explain how you succeed to put the encryption in your adhoc mode?

Thank you very much!
Pedro Rodrigues - Portugal

The discussion might have continued from here.