2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A#include <libdevinfo.h>
2N/A#include <libdllink.h>
2N/A#include <libdlwlan.h>
2N/A#include <libdladm_impl.h>
2N/A#include <libdlwlan_impl.h>
2N/Astatic dladm_status_t
2N/A case WL_SUCCESS:
2N/A return (DLADM_STATUS_OK);
2N/A case WL_NOTSUPPORTED:
2N/A case WL_LACK_FEATURE:
2N/A return (DLADM_STATUS_NOTSUP);
2N/A case WL_READONLY:
2N/A return (DLADM_STATUS_PROPRDONLY);
2N/A return (DLADM_STATUS_FAILED);
2N/Astatic dladm_wlan_mode_t
2N/A return (DLADM_WLAN_MODE_80211B);
2N/A return (DLADM_WLAN_MODE_NONE);
2N/A for (i = 0; i < MAX_SCAN_SUPPORT_RATES; i++) {
2N/A != DLADM_STATUS_OK)
2N/A DLADM_WLAN_MAX_ESSID_LEN) != 0)
2N/A DLADM_WLAN_BSSID_LEN) != 0)
2N/Astatic dladm_status_t
2N/A return (DLADM_STATUS_NOTSUP);
2N/A if (create_ibss) {
2N/A if (!essid_valid) {
2N/A if (!create_ibss) {
2N/A if (!set_authmode) {
2N/A != DLADM_STATUS_OK)
2N/A return (DLADM_STATUS_BADARG);
2N/A != DLADM_STATUS_OK)
2N/A != DLADM_STATUS_OK)
2N/A switch (encryption) {
2N/A case WL_NOENCRYPTION:
2N/A case WL_ENC_WEP:
2N/A case WL_ENC_WPA:
2N/A != DLADM_STATUS_OK)
2N/A != DLADM_STATUS_OK)
2N/A case WL_OPENSYSTEM:
2N/A case WL_SHAREDKEY:
2N/A case WL_BSS_BSS:
2N/A case WL_BSS_IBSS:
2N/A case WL_BSS_ANY:
2N/Astatic dladm_status_t
2N/A return (DLADM_STATUS_BADARG);
2N/A return (DLADM_STATUS_OK);
2N/A return (DLADM_STATUS_BADARG);
2N/A return (DLADM_STATUS_BADARG);
2N/A return (DLADM_STATUS_OK);
2N/A return (DLADM_STATUS_BADARG);
2N/A return (DLADM_STATUS_OK);
2N/A return (DLADM_STATUS_BADARG);
2N/A return (DLADM_STATUS_OK);
2N/A return (DLADM_STATUS_BADARG);
2N/A return (DLADM_STATUS_OK);
2N/A return (DLADM_STATUS_OK);
2N/A return (DLADM_STATUS_BADARG);
2N/A return (DLADM_STATUS_OK);
2N/A return (DLADM_STATUS_BADARG);
2N/A return (DLADM_STATUS_OK);
2N/A return (DLADM_STATUS_BADARG);
2N/A return (DLADM_STATUS_OK);
2N/A return (DLADM_STATUS_BADARG);
2N/A return (DLADM_STATUS_TEMPONLY);
2N/Astatic dladm_status_t
2N/A return (DLADM_STATUS_NOMEM);
2N/Astatic dladm_status_t
2N/Astatic dladm_status_t
2N/Astatic dladm_status_t
2N/Astatic dladm_status_t
2N/Astatic dladm_status_t
2N/Astatic dladm_status_t
2N/Astatic dladm_status_t
2N/Astatic dladm_status_t
2N/Astatic dladm_status_t
2N/Astatic dladm_status_t
2N/Astatic dladm_status_t
2N/Astatic dladm_status_t
2N/Astatic dladm_status_t
2N/A case DLADM_WLAN_BSSTYPE_BSS:
2N/A case DLADM_WLAN_BSSTYPE_IBSS:
2N/Astatic dladm_status_t
2N/A case DLADM_WLAN_AUTH_OPEN:
2N/A case DLADM_WLAN_AUTH_SHARED:
2N/A return (DLADM_STATUS_NOTSUP);
2N/Astatic dladm_status_t
2N/A case DLADM_WLAN_SECMODE_NONE:
2N/A case DLADM_WLAN_SECMODE_WEP:
2N/A case DLADM_WLAN_SECMODE_WPA:
2N/A return (DLADM_STATUS_NOTSUP);
2N/Astatic dladm_status_t
2N/A return (DLADM_STATUS_BADARG);
2N/A for (i = 0; i < MAX_NWEPKEYS; i++)
2N/A return (DLADM_STATUS_BADARG);
2N/A return (DLADM_STATUS_BADARG);
2N/Astatic dladm_status_t
2N/A return (DLADM_STATUS_BADARG);
2N/Astatic dladm_status_t
2N/A return (DLADM_STATUS_BADVAL);
2N/Astatic dladm_status_t
2N/Astatic dladm_status_t
2N/Astatic dladm_status_t
2N/A return (DLADM_STATUS_NOMEM);
2N/A return (DLADM_STATUS_BADARG);
2N/A return (DLADM_STATUS_NOMEM);
2N/A case DLADM_WLAN_CIPHER_WEP:
2N/A case DLADM_WLAN_CIPHER_TKIP:
2N/A case DLADM_WLAN_CIPHER_CKIP:
2N/A case DLADM_WLAN_CIPHER_NONE:
2N/A return (DLADM_STATUS_BADARG);
2N/A case DLADM_WLAN_MLME_ASSOC:
2N/A case DLADM_WLAN_MLME_DISASSOC:
2N/A return (DLADM_STATUS_BADARG);
2N/Astatic scf_propertygroup_t *
2N/Astatic dladm_status_t
2N/A return (DLADM_STATUS_OK);
2N/A return (DLADM_STATUS_FAILED);
2N/Astatic dladm_status_t
2N/Astatic dladm_status_t
2N/Astatic dladm_status_t
2N/Astatic dladm_status_t
2N/Astatic dladm_status_t
2N/Astatic dladm_status_t
2N/A return (DLADM_STATUS_FAILED);