Lines Matching refs:setup
316 struct p54_setup_mac *setup; in p54_setup_mac() local
319 skb = p54_alloc_skb(priv, P54_HDR_FLAG_CONTROL_OPSET, sizeof(*setup), in p54_setup_mac()
324 setup = skb_put(skb, sizeof(*setup)); in p54_setup_mac()
356 setup->mac_mode = cpu_to_le16(mode); in p54_setup_mac()
357 memcpy(setup->mac_addr, priv->mac_addr, ETH_ALEN); in p54_setup_mac()
358 memcpy(setup->bssid, priv->bssid, ETH_ALEN); in p54_setup_mac()
359 setup->rx_antenna = 2 & priv->rx_diversity_mask; /* automatic */ in p54_setup_mac()
360 setup->rx_align = 0; in p54_setup_mac()
362 setup->v1.basic_rate_mask = cpu_to_le32(priv->basic_rate_mask); in p54_setup_mac()
363 memset(setup->v1.rts_rates, 0, 8); in p54_setup_mac()
364 setup->v1.rx_addr = cpu_to_le32(priv->rx_end); in p54_setup_mac()
365 setup->v1.max_rx = cpu_to_le16(priv->rx_mtu); in p54_setup_mac()
366 setup->v1.rxhw = cpu_to_le16(priv->rxhw); in p54_setup_mac()
367 setup->v1.wakeup_timer = cpu_to_le16(priv->wakeup_timer); in p54_setup_mac()
368 setup->v1.unalloc0 = cpu_to_le16(0); in p54_setup_mac()
370 setup->v2.rx_addr = cpu_to_le32(priv->rx_end); in p54_setup_mac()
371 setup->v2.max_rx = cpu_to_le16(priv->rx_mtu); in p54_setup_mac()
372 setup->v2.rxhw = cpu_to_le16(priv->rxhw); in p54_setup_mac()
373 setup->v2.timer = cpu_to_le16(priv->wakeup_timer); in p54_setup_mac()
374 setup->v2.truncate = cpu_to_le16(48896); in p54_setup_mac()
375 setup->v2.basic_rate_mask = cpu_to_le32(priv->basic_rate_mask); in p54_setup_mac()
376 setup->v2.sbss_offset = 0; in p54_setup_mac()
377 setup->v2.mcast_window = 0; in p54_setup_mac()
378 setup->v2.rx_rssi_threshold = 0; in p54_setup_mac()
379 setup->v2.rx_ed_threshold = 0; in p54_setup_mac()
380 setup->v2.ref_clock = cpu_to_le32(644245094); in p54_setup_mac()
381 setup->v2.lpf_bandwidth = cpu_to_le16(65535); in p54_setup_mac()
382 setup->v2.osc_start_delay = cpu_to_le16(65535); in p54_setup_mac()