![]() |
|
|||
0001 /* 0002 * Copyright (c) 2009 Atheros Communications Inc. 0003 * 0004 * Permission to use, copy, modify, and/or distribute this software for any 0005 * purpose with or without fee is hereby granted, provided that the above 0006 * copyright notice and this permission notice appear in all copies. 0007 * 0008 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 0009 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 0010 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 0011 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 0012 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 0013 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 0014 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 0015 */ 0016 0017 #include <linux/export.h> 0018 #include "ath.h" 0019 0020 const char *ath_opmode_to_string(enum nl80211_iftype opmode) 0021 { 0022 switch (opmode) { 0023 case NL80211_IFTYPE_UNSPECIFIED: 0024 return "UNSPEC"; 0025 case NL80211_IFTYPE_ADHOC: 0026 return "ADHOC"; 0027 case NL80211_IFTYPE_STATION: 0028 return "STATION"; 0029 case NL80211_IFTYPE_AP: 0030 return "AP"; 0031 case NL80211_IFTYPE_AP_VLAN: 0032 return "AP-VLAN"; 0033 case NL80211_IFTYPE_WDS: 0034 return "WDS"; 0035 case NL80211_IFTYPE_MONITOR: 0036 return "MONITOR"; 0037 case NL80211_IFTYPE_MESH_POINT: 0038 return "MESH"; 0039 case NL80211_IFTYPE_P2P_CLIENT: 0040 return "P2P-CLIENT"; 0041 case NL80211_IFTYPE_P2P_GO: 0042 return "P2P-GO"; 0043 case NL80211_IFTYPE_OCB: 0044 return "OCB"; 0045 default: 0046 return "UNKNOWN"; 0047 } 0048 } 0049 EXPORT_SYMBOL(ath_opmode_to_string);
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |