Advertisement
enricop

same ESSID, different keyval, strict_bssid=true

Apr 18th, 2012
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.34 KB | None | 0 0
  1. sunkiss@openindiana:~# nwamcfg list
  2. NCPs:
  3.     Automatic
  4. Locations:
  5.     Automatic
  6.     NoNet
  7.     User
  8. sunkiss@openindiana:~# dladm show-secobj
  9. sunkiss@openindiana:~# nwamadm select-wifi rwn0
  10.  
  11. 1: ESSID NETGEAR BSSID 0:14:6c:6d:4f:7a
  12. 2: ESSID NETGEAR BSSID 0:1b:2f:aa:2a:c0
  13. 3: Other
  14.  
  15. Choose WLAN to connect to [1-3]: 1
  16.  
  17. Enter WLAN key for ESSID NETGEAR: netskcal
  18. sunkiss@openindiana:~# dladm show-secobj
  19. OBJECT               CLASS
  20. nwam-NETGEAR         wpa
  21. sunkiss@openindiana:~# nwamadm select-wifi rwn0
  22.  
  23. 1: ESSID NETGEAR BSSID 0:14:6c:6d:4f:7a
  24. 2: ESSID NETGEAR BSSID 0:1b:2f:aa:2a:c0
  25. 3: Other
  26.  
  27. Choose WLAN to connect to [1-3]: 2
  28.  
  29. Enter WLAN key for ESSID NETGEAR: elginozio
  30. sunkiss@openindiana:~# dladm show-secobj
  31. OBJECT               CLASS
  32. nwam-NETGEAR-0.1b.2f.aa.2a.c0 wpa
  33. nwam-NETGEAR         wpa
  34. sunkiss@openindiana:~# nwamcfg list
  35. NCPs:
  36.     Automatic
  37. Locations:
  38.     Automatic
  39.     NoNet
  40.     User
  41. WLANs:
  42.     NETGEAR
  43. #in the current known wlan model
  44. #two distinct ESSIDs, even if different BSSIDs,
  45. #can not exist
  46. #adding support for distinct wlans with the same ESSID would break the current API
  47. sunkiss@openindiana:~# nwamcfg list
  48. NCPs:
  49.     Automatic
  50. Locations:
  51.     Automatic
  52.     NoNet
  53.     User
  54. WLANs:
  55.     NETGEAR
  56. #nwamd have updated the known wlan
  57. #accordingly to the last keyname successfully used
  58. #the current known wlan model does not support distinct keynames
  59. #adding support for distinct keynames for the same ESSID would break the current API
  60. sunkiss@openindiana:~# nwamcfg list wlan NETGEAR
  61. known wlan:NETGEAR
  62.     priority            0
  63.     bssids              "0:14:6c:6d:4f:7a","0:1b:2f:aa:2a:c0"
  64.     keyname             "nwam-NETGEAR-0.1b.2f.aa.2a.c0"
  65.     keyslot             1
  66.     security-mode       wpa
  67. sunkiss@openindiana:~# nwamadm select-wifi rwn0
  68.  
  69. 1: ESSID NETGEAR BSSID 0:1b:2f:aa:2a:c0
  70. 2: ESSID NETGEAR BSSID 0:14:6c:6d:4f:7a
  71. 3: Other
  72.  
  73. Choose WLAN to connect to [1-3]: 2
  74. #nwamd can still reuse the old key, if the user decided to connect to the old BSSID
  75. #note it does not ask for password
  76. #nwamd always finds the correct keyname to use because it starts searching
  77. #with the nwam-ESSID-BSSID keyname format
  78. sunkiss@openindiana:~# nwamcfg list wlan NETGEAR
  79. known wlan:NETGEAR
  80.     priority            0
  81.     bssids              "0:14:6c:6d:4f:7a","0:1b:2f:aa:2a:c0"
  82.     keyname             "nwam-NETGEAR"
  83.     keyslot             1
  84.     security-mode       wpa
  85. #the known wlan is updated accordingly
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement