| 1072 | #define IEEE80211_ROAMING_MANUAL 2 |
| 1073 | |
| 1074 | static void |
| 1075 | set80211roaming(const char *val, int d, int s, const struct afswtch *rafp) |
| 1076 | { |
| 1077 | int mode; |
| 1078 | |
| 1079 | if (strcasecmp(val, "device") == 0) { |
| 1080 | mode = IEEE80211_ROAMING_DEVICE; |
| 1081 | } else if (strcasecmp(val, "auto") == 0) { |
| 1082 | mode = IEEE80211_ROAMING_AUTO; |
| 1083 | } else if (strcasecmp(val, "manual") == 0) { |
| 1084 | mode = IEEE80211_ROAMING_MANUAL; |
| 1085 | } else { |
| 1086 | errx(1, "unknown roaming mode"); |
| 1087 | } |
| 1088 | set80211(s, IEEE80211_IOC_ROAMING, mode, 0, NULL); |
| 1089 | } |
| 1090 | |
| 1091 | static void |
| 1092 | set80211wme(const char *val, int d, int s, const struct afswtch *rafp) |
nothing calls this directly
no test coverage detected