mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
If chan is NULL, don't derefrence it.
The bluetooth setup code actually does a channel lookup during setup, even though we haven't yet programmed in a channel. Sigh. Tested: * WB225 (AR9485) + bluetooth
This commit is contained in:
parent
ebe0102309
commit
94d5d4ada1
1 changed files with 5 additions and 0 deletions
|
|
@ -778,6 +778,11 @@ ar9300_set_delta_slope(struct ath_hal *ah, struct ieee80211_channel *chan)
|
|||
HAL_CHANNEL_INTERNAL *
|
||||
ar9300_check_chan(struct ath_hal *ah, const struct ieee80211_channel *chan)
|
||||
{
|
||||
|
||||
if (chan == NULL) {
|
||||
return AH_NULL;
|
||||
}
|
||||
|
||||
if ((IS(chan, CHAN_2GHZ) ^ IS(chan, CHAN_5GHZ)) == 0) {
|
||||
HALDEBUG(ah, HAL_DEBUG_CHANNEL,
|
||||
"%s: invalid channel %u/0x%x; not marked as 2GHz or 5GHz\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue