···5757 struct ath9k_beacon_state *bs)5858{5959 struct ath_common *common = ath9k_hw_common(ah);6060- int dtim_intval, sleepduration;6060+ int dtim_intval;6161 u64 tsf;62626363 /* No need to configure beacon if we are not associated */···7575 * last beacon we received (which may be none).7676 */7777 dtim_intval = conf->intval * conf->dtim_period;7878- sleepduration = ah->hw->conf.listen_interval * conf->intval;79788079 /*8180 * Pull nexttbtt forward to reflect the current···112113 */113114114115 bs->bs_sleepduration = TU_TO_USEC(roundup(IEEE80211_MS_TO_TU(100),115115- sleepduration));116116+ conf->intval));116117 if (bs->bs_sleepduration > bs->bs_dtimperiod)117118 bs->bs_sleepduration = bs->bs_dtimperiod;118119
···502502 * touch anything. Note this can happen early503503 * on if the IRQ is shared.504504 */505505- if (test_bit(ATH_OP_INVALID, &common->op_flags))505505+ if (!ah || test_bit(ATH_OP_INVALID, &common->op_flags))506506 return IRQ_NONE;507507508508 /* shared irq, not for us */
+10
drivers/net/wireless/brcm80211/Kconfig
···2727 one of the bus interface support. If you choose to build a module,2828 it'll be called brcmfmac.ko.29293030+config BRCMFMAC_PROTO_BCDC3131+ bool3232+3333+config BRCMFMAC_PROTO_MSGBUF3434+ bool3535+3036config BRCMFMAC_SDIO3137 bool "SDIO bus interface support for FullMAC driver"3238 depends on (MMC = y || MMC = BRCMFMAC)3339 depends on BRCMFMAC4040+ select BRCMFMAC_PROTO_BCDC3441 select FW_LOADER3542 default y3643 ---help---···4942 bool "USB bus interface support for FullMAC driver"5043 depends on (USB = y || USB = BRCMFMAC)5144 depends on BRCMFMAC4545+ select BRCMFMAC_PROTO_BCDC5246 select FW_LOADER5347 ---help---5448 This option enables the USB bus interface support for Broadcom···6052 bool "PCIE bus interface support for FullMAC driver"6153 depends on BRCMFMAC6254 depends on PCI5555+ depends on HAS_DMA5656+ select BRCMFMAC_PROTO_MSGBUF6357 select FW_LOADER6458 ---help---6559 This option enables the PCIE bus interface support for Broadcom
···185185 ifevent->action, ifevent->ifidx, ifevent->bssidx,186186 ifevent->flags, ifevent->role);187187188188- if (ifevent->flags & BRCMF_E_IF_FLAG_NOIF) {188188+ /* The P2P Device interface event must not be ignored189189+ * contrary to what firmware tells us. The only way to190190+ * distinguish the P2P Device is by looking at the ifidx191191+ * and bssidx received.192192+ */193193+ if (!(ifevent->ifidx == 0 && ifevent->bssidx == 1) &&194194+ (ifevent->flags & BRCMF_E_IF_FLAG_NOIF)) {189195 brcmf_dbg(EVENT, "event can be ignored\n");190196 return;191197 }···216210 return;217211 }218212219219- if (ifevent->action == BRCMF_E_IF_CHANGE)213213+ if (ifp && ifevent->action == BRCMF_E_IF_CHANGE)220214 brcmf_fws_reset_interface(ifp);221215222216 err = brcmf_fweh_call_event_handler(ifp, emsg->event_code, emsg, data);223217224224- if (ifevent->action == BRCMF_E_IF_DEL) {218218+ if (ifp && ifevent->action == BRCMF_E_IF_DEL) {225219 brcmf_fws_del_interface(ifp);226220 brcmf_del_if(drvr, ifevent->bssidx);227221 }
···70287028 struct nlattr *data = ((void **)skb->cb)[2];70297029 enum nl80211_multicast_groups mcgrp = NL80211_MCGRP_TESTMODE;7030703070317031+ /* clear CB data for netlink core to own from now on */70327032+ memset(skb->cb, 0, sizeof(skb->cb));70337033+70317034 nla_nest_end(skb, data);70327035 genlmsg_end(skb, hdr);70337036···93599356 struct cfg80211_registered_device *rdev = ((void **)skb->cb)[0];93609357 void *hdr = ((void **)skb->cb)[1];93619358 struct nlattr *data = ((void **)skb->cb)[2];93599359+93609360+ /* clear CB data for netlink core to own from now on */93619361+ memset(skb->cb, 0, sizeof(skb->cb));9362936293639363 if (WARN_ON(!rdev->cur_cmd_info)) {93649364 kfree_skb(skb);