| 1022 | } |
| 1023 | |
| 1024 | static void |
| 1025 | set80211protmode(const char *val, int d, int s, const struct afswtch *rafp) |
| 1026 | { |
| 1027 | int mode; |
| 1028 | |
| 1029 | if (strcasecmp(val, "off") == 0) { |
| 1030 | mode = IEEE80211_PROTMODE_OFF; |
| 1031 | } else if (strcasecmp(val, "cts") == 0) { |
| 1032 | mode = IEEE80211_PROTMODE_CTS; |
| 1033 | } else if (strncasecmp(val, "rtscts", 3) == 0) { |
| 1034 | mode = IEEE80211_PROTMODE_RTSCTS; |
| 1035 | } else { |
| 1036 | errx(1, "unknown protection mode"); |
| 1037 | } |
| 1038 | |
| 1039 | set80211(s, IEEE80211_IOC_PROTMODE, mode, 0, NULL); |
| 1040 | } |
| 1041 | |
| 1042 | static void |
| 1043 | set80211htprotmode(const char *val, int d, int s, const struct afswtch *rafp) |
nothing calls this directly
no test coverage detected