Modify

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#2271 closed defect (fixed)

WPA2 not working in AP mode (Meraki Mini - both Kamikaze 7.06 and 7.07)

Reported by: ggp81 Owned by: developers
Priority: normal Milestone:
Component: packages Version:
Keywords: Cc:

Description

Hello,
I would like to use my Meraki Mini as a multi-AP, in multi-SSID mode. I set the configuration file to have one open AP and another one with WPA2 security (tried on 7.06 and 7.07)

These are my files.

/etc/config/wireless

config wifi-device  wifi0
        option type     atheros
        option channel  '0'
#       option diversity 1
#       option txantenna 0
#       option rxantenna 0
#       option distance  2000
# disable radio to prevent an open ap after reflashing:
#       option disabled 0
        option mode     ''
        option maxassoc ''
        option distance ''
        option diversity        '1'
        option txantenna        '0'
        option rxantenna        '0'
        option disabled '0'


config wifi-iface
        option device   wifi0
#       option network  lan
        option mode     'ap'
        option ssid     'OpenWrt'
        option hidden   '0'
#       option txpower  15
#       option bgscan   enable
        option encryption       'none'
        option network  'none'
        option bssid    ''
        option server   ''
        option port     ''
        option isolate  '0'
        option txpower  '1'
        option bgscan   '1'
        option key1     ''
        option key2     ''
        option key3     ''
        option key4     ''

config wifi-iface
        option device   wifi0
#       option network  lan
        option mode     'ap'
        option ssid     'OpenWrt2'
        option hidden   '0'
#       option txpower  15
#       option bgscan   enable
        option encryption       'psk2'
        option network  'none'
        option bssid    ''
        option server   ''
        option port     ''
        option isolate  '0'
        option txpower  '1'
        option bgscan   '1'
        option key1     ''
        option key2     ''
        option key3     ''
        option key4     ''
        option key      '*************'

This is my configuration:

root@OpenWrt:/etc/config# ifconfig ath0
ath0      Link encap:Ethernet  HWaddr 00:18:**:**:**:**
          inet addr:192.168.12.1  Bcast:192.168.12.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:91 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2254 (2.2 KiB)  TX bytes:1148 (1.1 KiB)

root@OpenWrt:/etc/config# ifconfig ath1
ath1      Link encap:Ethernet  HWaddr 06:18:**:**:**:**
          inet addr:192.168.13.1  Bcast:192.168.13.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:2290  Metric:1
          RX packets:3 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:57 (57.0 B)  TX bytes:0 (0.0 B)

root@OpenWrt:/etc/config# iwconfig ath0
ath0      IEEE 802.11g  ESSID:"OpenWrt"  Nickname:""
          Mode:Master  Frequency:2.417 GHz  Access Point: 00:18:**:**:**:**
          Bit Rate:0 kb/s   Tx-Power=1 dBm   Sensitivity=0/3
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=44/94  Signal level=-51 dBm  Noise level=-95 dBm
          Rx invalid nwid:14244  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

root@OpenWrt:/etc/config# iwconfig ath1
ath1      IEEE 802.11g  ESSID:"OpenWrt2"  Nickname:""
          Mode:Master  Frequency:2.417 GHz  Access Point: 06:18:**:**:**:**
          Bit Rate:0 kb/s   Tx-Power=1 dBm   Sensitivity=0/3
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:****-****-****-****-****-****-****-**** [3]   Security mode:open
          Power Management:off
          Link Quality=44/94  Signal level=-51 dBm  Noise level=-95 dBm
          Rx invalid nwid:14213  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0[/code]

/var/run/hostapd-ath1.conf
[code]driver=madwifi
interface=ath1

ssid=OpenWrt2
debug=0
wpa=2
wpa_pairwise=CCMP
wpa_passphrase=*************

Associating to OpenWrt ssid and pinging 192.168.12.1 from 192.168.12.10 worked.
Associating to OpenWrt2 ssid and pinging 192.168.13.1 from 192.168.13.10 didn't worked! I tried with more wireless cards with the same result.

It sounds like a problem with WPA2. So I tried to do the same with WPA, replacing

        option encryption       'psk2'

with

        option encryption       'psk'

In this way all works fine.
Maybe WPA2 is not totally supported by HostAPD, or maybe I'm doing something wrong (in this case sorry if you're wasting time for me).

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

fixed in [9355]

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.