I blindly followed example 0 suggested in wi manpage , that is , I set :
dhcp NONE NONE NONE nwkey 0x1deadbeef1 chan 11
in /etc/hostname.wi0
'ifconfig -a' output :
Code:
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33196
priority: 0
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet 127.0.0.1 netmask 0xff000000
wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:30:65:20:44:96
priority: 4
groups: wlan
media: IEEE802.11 autoselect (DS11)
status: no network
ieee80211: nwid IBSS chan 11 bssid 44:44:44:44:44:44 nwkey <not displayed> -12dBm (auto)
inet6 fe80::230:65ff:fe20:4496%wi0 prefixlen 64 scopeid 0x1
gem0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:03:93:45:ca:e2
priority: 0
groups: egress
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::203:93ff:fe45:cae2%gem0 prefixlen 64 scopeid 0x2
inet 192.168.1.4 netmask 0xffffff00 broadcast 192.168.1.255
enc0: flags=0<>
priority: 0
groups: enc
status: active
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33196
priority: 0
groups: pflog
are you sure wi0 won't accept wep or insecure connection ?