/*1* Copyright (c) 2009 Atheros Communications Inc.2*3* Permission to use, copy, modify, and/or distribute this software for any4* purpose with or without fee is hereby granted, provided that the above5* copyright notice and this permission notice appear in all copies.6*7* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES8* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF9* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR10* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES11* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN12* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF13* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.14*/1516#include <linux/export.h>17#include "ath.h"1819const char *ath_opmode_to_string(enum nl80211_iftype opmode)20{21switch (opmode) {22case NL80211_IFTYPE_UNSPECIFIED:23return "UNSPEC";24case NL80211_IFTYPE_ADHOC:25return "ADHOC";26case NL80211_IFTYPE_STATION:27return "STATION";28case NL80211_IFTYPE_AP:29return "AP";30case NL80211_IFTYPE_AP_VLAN:31return "AP-VLAN";32case NL80211_IFTYPE_WDS:33return "WDS";34case NL80211_IFTYPE_MONITOR:35return "MONITOR";36case NL80211_IFTYPE_MESH_POINT:37return "MESH";38case NL80211_IFTYPE_P2P_CLIENT:39return "P2P-CLIENT";40case NL80211_IFTYPE_P2P_GO:41return "P2P-GO";42case NL80211_IFTYPE_OCB:43return "OCB";44default:45return "UNKNOWN";46}47}48EXPORT_SYMBOL(ath_opmode_to_string);495051