diff options
-rw-r--r-- | net/wireless/reg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index a5c2d3a6cbb2..f0859eada758 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -740,7 +740,7 @@ static struct ieee80211_regdomain *country_ie_2_rd( | |||
740 | /* 2 GHz */ | 740 | /* 2 GHz */ |
741 | if (triplet->chans.first_channel <= 14) | 741 | if (triplet->chans.first_channel <= 14) |
742 | end_channel = triplet->chans.first_channel + | 742 | end_channel = triplet->chans.first_channel + |
743 | triplet->chans.num_channels; | 743 | triplet->chans.num_channels - 1; |
744 | else | 744 | else |
745 | /* | 745 | /* |
746 | * 5 GHz -- For example in country IEs if the first | 746 | * 5 GHz -- For example in country IEs if the first |
@@ -863,7 +863,7 @@ static struct ieee80211_regdomain *country_ie_2_rd( | |||
863 | /* 2 GHz */ | 863 | /* 2 GHz */ |
864 | if (triplet->chans.first_channel <= 14) | 864 | if (triplet->chans.first_channel <= 14) |
865 | end_channel = triplet->chans.first_channel + | 865 | end_channel = triplet->chans.first_channel + |
866 | triplet->chans.num_channels; | 866 | triplet->chans.num_channels -1; |
867 | else | 867 | else |
868 | end_channel = triplet->chans.first_channel + | 868 | end_channel = triplet->chans.first_channel + |
869 | (4 * (triplet->chans.num_channels - 1)); | 869 | (4 * (triplet->chans.num_channels - 1)); |