-/* $OpenBSD: ar5212.c,v 1.44 2008/07/30 07:15:39 reyk Exp $ */
+/* $OpenBSD: ar5212.c,v 1.45 2008/07/30 07:43:01 reyk Exp $ */
/*
* Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org>
HAL_BOOL
ar5k_ar5212_set_bssid_mask(struct ath_hal *hal, const u_int8_t* mask)
{
- u_int32_t low_id, high_id;
+ u_int32_t low_id, high_id;
low_id = AR5K_LOW_ID(mask);
high_id = 0x0000ffff & AR5K_HIGH_ID(mask);
- AR5K_REG_WRITE(AR5K_AR5212_BSS_IDM0, low_id);
- AR5K_REG_WRITE(AR5K_AR5212_BSS_IDM1, high_id);
+ AR5K_REG_WRITE(AR5K_AR5212_BSS_IDM0, low_id);
+ AR5K_REG_WRITE(AR5K_AR5212_BSS_IDM1, high_id);
- return (AH_TRUE);
+ return (AH_TRUE);
}
HAL_BOOL
-/* $OpenBSD: ar5xxx.c,v 1.51 2008/07/30 07:15:39 reyk Exp $ */
+/* $OpenBSD: ar5xxx.c,v 1.52 2008/07/30 07:43:01 reyk Exp $ */
/*
* Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org>
/* Get rate tables */
if (hal->ah_capabilities.cap_mode & HAL_MODE_11A)
ar5k_rt_copy(&hal->ah_rt_11a, &ar5k_rt_11a);
- if (hal->ah_capabilities.cap_mode & HAL_MODE_11B) {
+ if (hal->ah_capabilities.cap_mode & HAL_MODE_11B)
ar5k_rt_copy(&hal->ah_rt_11b, &ar5k_rt_11b);
- } if (hal->ah_capabilities.cap_mode & HAL_MODE_11G)
+ if (hal->ah_capabilities.cap_mode & HAL_MODE_11G)
ar5k_rt_copy(&hal->ah_rt_11g, &ar5k_rt_11g);
if (hal->ah_capabilities.cap_mode & HAL_MODE_TURBO)
ar5k_rt_copy(&hal->ah_rt_turbo, &ar5k_rt_turbo);
-/* $OpenBSD: ath.c,v 1.71 2008/07/29 00:18:25 reyk Exp $ */
+/* $OpenBSD: ath.c,v 1.72 2008/07/30 07:43:01 reyk Exp $ */
/* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */
/*-
ath_node_alloc(struct ieee80211com *ic)
{
struct ath_node *an;
-
+
an = malloc(sizeof(*an), M_DEVBUF, M_NOWAIT | M_ZERO);
if (an) {
int i;