Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183656
b: refs/heads/master
c: a0f2e0f
h: refs/heads/master
v: v3
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Jan 14, 2010
1 parent b21ce5a commit 481243d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c99445b14054e0c4ed4715df1dad1fc608cbab46
refs/heads/master: a0f2e0fca1e72c1de07e834be05b61d33842253e
6 changes: 6 additions & 0 deletions trunk/net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,9 @@ static int max_subband_chan(int orig_cur_chan,
break;
}

if (triplet->chans.num_channels == 0)
return 0;

/* Monitonically increasing channel order */
if (triplet->chans.first_channel <= end_subband_chan)
return 0;
Expand Down Expand Up @@ -737,6 +740,9 @@ static struct ieee80211_regdomain *country_ie_2_rd(
break;
}

if (triplet->chans.num_channels == 0)
return NULL;

/* 2 GHz */
if (triplet->chans.first_channel <= 14)
end_channel = triplet->chans.first_channel +
Expand Down

0 comments on commit 481243d

Please sign in to comment.