···38083808 b43_mac_suspend(dev);3809380938103810 if (changed & IEEE80211_CONF_CHANGE_CHANNEL) {38113811+ phy->chandef = &conf->chandef;38113812 phy->channel = conf->chandef.chan->hw_value;38123813 if (conf_is_ht(conf))38133814 phy->is_40mhz = conf_is_ht40_minus(conf) ||
+7-2
drivers/net/wireless/b43/phy_common.c
···9494 const struct b43_phy_operations *ops = phy->ops;9595 int err;96969797- if (!phy->channel)9898- phy->channel = ops->get_default_chan(dev);9797+ /* During PHY init we need to use some channel. On the first init this9898+ * function is called *before* b43_op_config, so our pointer is NULL.9999+ */100100+ if (!phy->chandef) {101101+ phy->chandef = &dev->wl->hw->conf.chandef;102102+ phy->channel = phy->chandef->chan->hw_value;103103+ }99104100105 phy->ops->switch_analog(dev, true);101106 b43_software_rfkill(dev, false);
+1
drivers/net/wireless/b43/phy_common.h
···267267 unsigned long next_txpwr_check_time;268268269269 /* Current channel */270270+ struct cfg80211_chan_def *chandef;270271 unsigned int channel;271272 u16 channel_freq;272273 enum nl80211_channel_type channel_type;