| 1809 | } |
| 1810 | |
| 1811 | static void |
| 1812 | set80211ldpc(const char *val, int d, int s, const struct afswtch *rafp) |
| 1813 | { |
| 1814 | int ldpc; |
| 1815 | |
| 1816 | if (get80211val(s, IEEE80211_IOC_LDPC, &ldpc) < 0) |
| 1817 | errx(-1, "cannot set LDPC setting"); |
| 1818 | if (d < 0) { |
| 1819 | d = -d; |
| 1820 | ldpc &= ~d; |
| 1821 | } else |
| 1822 | ldpc |= d; |
| 1823 | set80211(s, IEEE80211_IOC_LDPC, ldpc, 0, NULL); |
| 1824 | } |
| 1825 | |
| 1826 | static void |
| 1827 | set80211uapsd(const char *val, int d, int s, const struct afswtch *rafp) |
nothing calls this directly
no test coverage detected