From owner-svn-src-all@freebsd.org Sun Oct 4 04:25:57 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 63EE0A0FE10; Sun, 4 Oct 2015 04:25:57 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46D7F1372; Sun, 4 Oct 2015 04:25:57 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t944Pvqi095044; Sun, 4 Oct 2015 04:25:57 GMT (envelope-from adrian@FreeBSD.org) Received: (from adrian@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t944PvT1095043; Sun, 4 Oct 2015 04:25:57 GMT (envelope-from adrian@FreeBSD.org) Message-Id: <201510040425.t944PvT1095043@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: adrian set sender to adrian@FreeBSD.org using -f From: Adrian Chadd Date: Sun, 4 Oct 2015 04:25:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r288646 - head/sys/dev/usb/wlan X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Oct 2015 04:25:57 -0000 Author: adrian Date: Sun Oct 4 04:25:56 2015 New Revision: 288646 URL: https://svnweb.freebsd.org/changeset/base/288646 Log: Fix to compile using gcc-4.2 (eg mips, sparc64.) Modified: head/sys/dev/usb/wlan/if_run.c Modified: head/sys/dev/usb/wlan/if_run.c ============================================================================== --- head/sys/dev/usb/wlan/if_run.c Sun Oct 4 01:56:11 2015 (r288645) +++ head/sys/dev/usb/wlan/if_run.c Sun Oct 4 04:25:56 2015 (r288646) @@ -2162,8 +2162,8 @@ run_wme_update_cb(void *arg) { struct ieee80211com *ic = arg; struct run_softc *sc = ic->ic_softc; - const struct wmeParams (*ac)[WME_NUM_AC] = - &ic->ic_wme.wme_chanParams.cap_wmeParams; + const struct wmeParams *ac = + ic->ic_wme.wme_chanParams.cap_wmeParams; int aci, error = 0; RUN_LOCK_ASSERT(sc, MA_OWNED); @@ -2171,39 +2171,39 @@ run_wme_update_cb(void *arg) /* update MAC TX configuration registers */ for (aci = 0; aci < WME_NUM_AC; aci++) { error = run_write(sc, RT2860_EDCA_AC_CFG(aci), - ac[aci]->wmep_logcwmax << 16 | - ac[aci]->wmep_logcwmin << 12 | - ac[aci]->wmep_aifsn << 8 | - ac[aci]->wmep_txopLimit); + ac[aci].wmep_logcwmax << 16 | + ac[aci].wmep_logcwmin << 12 | + ac[aci].wmep_aifsn << 8 | + ac[aci].wmep_txopLimit); if (error) goto err; } /* update SCH/DMA registers too */ error = run_write(sc, RT2860_WMM_AIFSN_CFG, - ac[WME_AC_VO]->wmep_aifsn << 12 | - ac[WME_AC_VI]->wmep_aifsn << 8 | - ac[WME_AC_BK]->wmep_aifsn << 4 | - ac[WME_AC_BE]->wmep_aifsn); + ac[WME_AC_VO].wmep_aifsn << 12 | + ac[WME_AC_VI].wmep_aifsn << 8 | + ac[WME_AC_BK].wmep_aifsn << 4 | + ac[WME_AC_BE].wmep_aifsn); if (error) goto err; error = run_write(sc, RT2860_WMM_CWMIN_CFG, - ac[WME_AC_VO]->wmep_logcwmin << 12 | - ac[WME_AC_VI]->wmep_logcwmin << 8 | - ac[WME_AC_BK]->wmep_logcwmin << 4 | - ac[WME_AC_BE]->wmep_logcwmin); + ac[WME_AC_VO].wmep_logcwmin << 12 | + ac[WME_AC_VI].wmep_logcwmin << 8 | + ac[WME_AC_BK].wmep_logcwmin << 4 | + ac[WME_AC_BE].wmep_logcwmin); if (error) goto err; error = run_write(sc, RT2860_WMM_CWMAX_CFG, - ac[WME_AC_VO]->wmep_logcwmax << 12 | - ac[WME_AC_VI]->wmep_logcwmax << 8 | - ac[WME_AC_BK]->wmep_logcwmax << 4 | - ac[WME_AC_BE]->wmep_logcwmax); + ac[WME_AC_VO].wmep_logcwmax << 12 | + ac[WME_AC_VI].wmep_logcwmax << 8 | + ac[WME_AC_BK].wmep_logcwmax << 4 | + ac[WME_AC_BE].wmep_logcwmax); if (error) goto err; error = run_write(sc, RT2860_WMM_TXOP0_CFG, - ac[WME_AC_BK]->wmep_txopLimit << 16 | - ac[WME_AC_BE]->wmep_txopLimit); + ac[WME_AC_BK].wmep_txopLimit << 16 | + ac[WME_AC_BE].wmep_txopLimit); if (error) goto err; error = run_write(sc, RT2860_WMM_TXOP1_CFG, - ac[WME_AC_VO]->wmep_txopLimit << 16 | - ac[WME_AC_VI]->wmep_txopLimit); + ac[WME_AC_VO].wmep_txopLimit << 16 | + ac[WME_AC_VI].wmep_txopLimit); err: if (error)