| 1040 | } |
| 1041 | |
| 1042 | static void |
| 1043 | set80211htprotmode(const char *val, int d, int s, const struct afswtch *rafp) |
| 1044 | { |
| 1045 | int mode; |
| 1046 | |
| 1047 | if (strcasecmp(val, "off") == 0) { |
| 1048 | mode = IEEE80211_PROTMODE_OFF; |
| 1049 | } else if (strncasecmp(val, "rts", 3) == 0) { |
| 1050 | mode = IEEE80211_PROTMODE_RTSCTS; |
| 1051 | } else { |
| 1052 | errx(1, "unknown protection mode"); |
| 1053 | } |
| 1054 | |
| 1055 | set80211(s, IEEE80211_IOC_HTPROTMODE, mode, 0, NULL); |
| 1056 | } |
| 1057 | |
| 1058 | static void |
| 1059 | set80211txpower(const char *val, int d, int s, const struct afswtch *rafp) |
nothing calls this directly
no test coverage detected