procd: fix wrap around bug in logread time handling code
[openwrt.git] / package / mac80211 / patches / 862-brcmsmac-remove-brcms_bss_cfg-BSS.patch
index a7ffcf6..1fafd63 100644 (file)
                                        brcms_err(wlc->hw->d11core,
                                                  "wl%d: up: rfdisable -> "
                                                  "bsscfg_disable()\n",
-@@ -7390,7 +7383,7 @@ void brcms_c_update_beacon(struct brcms_
+@@ -7390,7 +7383,8 @@ void brcms_c_update_beacon(struct brcms_
  {
        struct brcms_bss_cfg *bsscfg = wlc->bsscfg;
  
 -      if (bsscfg->up && !bsscfg->BSS)
-+      if (bsscfg->up && bsscfg->type == BRCMS_TYPE_AP)
++      if (bsscfg->up && (bsscfg->type == BRCMS_TYPE_AP ||
++                         bsscfg->type == BRCMS_TYPE_ADHOC))
                /* Clear the soft intmask */
                wlc->defmacintmask &= ~MI_BCNTPL;
  }
-@@ -7465,7 +7458,7 @@ void brcms_c_update_probe_resp(struct br
+@@ -7465,7 +7459,8 @@ void brcms_c_update_probe_resp(struct br
        struct brcms_bss_cfg *bsscfg = wlc->bsscfg;
  
        /* update AP or IBSS probe responses */
 -      if (bsscfg->up && !bsscfg->BSS)
-+      if (bsscfg->up && bsscfg->type == BRCMS_TYPE_AP)
++      if (bsscfg->up && (bsscfg->type == BRCMS_TYPE_AP ||
++                         bsscfg->type == BRCMS_TYPE_ADHOC))
                brcms_c_bss_update_probe_resp(wlc, bsscfg, suspend);
  }