static int wl1271_ap_hw_init(struct wl1271 *wl) { int ret; ret = wl1271_ap_init_templates_config(wl); if (ret < 0) return ret; /* Configure for power always on */ ret = wl1271_acx_sleep_auth(wl, WL1271_PSM_CAM); if (ret < 0) return ret; ret = wl1271_init_ap_rates(wl); if (ret < 0) return ret; ret = wl1271_acx_ap_max_tx_retry(wl); if (ret < 0) return ret; ret = wl1271_acx_mem_cfg(wl); if (ret < 0) return ret; /* initialize Tx power */ ret = wl1271_acx_tx_power(wl, wl->power_level); if (ret < 0) return ret; return 0; }
/* vif-specific intialization */ static int wl12xx_init_ap_role(struct wl1271 *wl, struct wl12xx_vif *wlvif) { int ret; ret = wl1271_acx_ap_max_tx_retry(wl, wlvif); if (ret < 0) return ret; /* initialize Tx power */ ret = wl1271_acx_tx_power(wl, wlvif, wlvif->power_level); if (ret < 0) return ret; return 0; }
/* vif-specific intialization */ static int wl12xx_init_ap_role(struct wl1271 *wl, struct wl12xx_vif *wlvif) { int ret; ret = wl1271_acx_ap_max_tx_retry(wl, wlvif); if (ret < 0) return ret; /* initialize Tx power */ ret = wl1271_acx_tx_power(wl, wlvif, wlvif->power_level); if (ret < 0) return ret; if (wl->radar_debug_mode) wlcore_cmd_generic_cfg(wl, wlvif, WLCORE_CFG_FEATURE_RADAR_DEBUG, wl->radar_debug_mode, 0); return 0; }