Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nl80211: Disallow setting of HT for channel 14
This patch disables setting of HT20 and more for channel 14 because the channel is only for IEEE 802.11b. The patch for net/wireless/util.c was unit-tested. The patch for net/wireless/chan.c was tested with iw command. Before this patch. $ sudo iw dev <ifname> set channel 14 HT20 $ After this patch. $ sudo iw dev <ifname> set channel 14 HT20 kernel reports: invalid channel definition command failed: Invalid argument (-22) $ Signed-off-by: Masashi Honma <[email protected]> Link: https://lore.kernel.org/r/[email protected] [clean up the code, use != instead of equivalent >] Signed-off-by: Johannes Berg <[email protected]>
- Loading branch information