Date: Sun, 8 Jun 2008 11:09:10 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 143108 for review Message-ID: <200806081109.m58B9AQL095000@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=143108 Change 143108 by hselasky@hselasky_laptop001 on 2008/06/08 11:08:18 Style changes. Affected files ... .. //depot/projects/usb/src/sys/dev/usb/if_rum.c#30 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/if_rum.c#30 (text+ko) ==== @@ -145,8 +145,6 @@ static void rum_start_cb(struct ifnet *ifp); static void rum_watchdog(void *arg); static uint8_t rum_get_rssi(struct rum_softc *sc, uint8_t raw); - - static struct ieee80211vap *rum_vap_create(struct ieee80211com *ic, const char name[IFNAMSIZ], int unit, int opmode, int flags, const uint8_t bssid[IEEE80211_ADDR_LEN], const uint8_t mac[IEEE80211_ADDR_LEN]); static void rum_vap_delete(struct ieee80211vap *); static struct ieee80211_node *rum_node_alloc(struct ieee80211_node_table *); @@ -990,8 +988,10 @@ static const char * rum_get_rf(uint32_t rev) { + ; /* indent fix */ switch (rev) { - case RT2573_RF_2527:return "RT2527 (MIMO XR)"; + case RT2573_RF_2527: + return "RT2527 (MIMO XR)"; case RT2573_RF_2528: return "RT2528"; case RT2573_RF_5225: @@ -2012,9 +2012,9 @@ rx_ant = sc->sc_rx_ant; is_5ghz = cc->ic_curchan.chan_is_5ghz; - if ((sc->sc_rf_rev == RT2573_RF_5226) || - (sc->sc_rf_rev == RT2573_RF_5225)) { - + switch (sc->sc_rf_rev) { + case RT2573_RF_5226: + case RT2573_RF_5225: if (rx_ant == 0) { /* Diversity */ bbp4 |= 0x02; @@ -2035,9 +2035,10 @@ else bbp77 &= ~0x03; } - } else if ((sc->sc_rf_rev == RT2573_RF_2528) || - (sc->sc_rf_rev == RT2573_RF_2527)) { + break; + case RT2573_RF_2528: + case RT2573_RF_2527: if (rx_ant == 0) { /* Diversity */ bbp4 |= 0x22; @@ -2050,6 +2051,9 @@ bbp4 |= 0x21; bbp77 &= ~0x03; } + break; + default: + break; } bbp4 &= ~(sc->sc_ftype << 5);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806081109.m58B9AQL095000>