| .. | .. |
|---|
| 1 | | -/** |
|---|
| 1 | +/* |
|---|
| 2 | 2 | * Copyright (c) 2014 Redpine Signals Inc. |
|---|
| 3 | 3 | * |
|---|
| 4 | 4 | * Permission to use, copy, modify, and/or distribute this software for any |
|---|
| .. | .. |
|---|
| 122 | 122 | u32 pkt_len, |
|---|
| 123 | 123 | u8 extended_desc) |
|---|
| 124 | 124 | { |
|---|
| 125 | | - struct ieee80211_tx_info *info; |
|---|
| 126 | 125 | struct sk_buff *skb = NULL; |
|---|
| 127 | 126 | u8 payload_offset; |
|---|
| 128 | | - struct ieee80211_vif *vif; |
|---|
| 129 | | - struct ieee80211_hdr *wh; |
|---|
| 130 | 127 | |
|---|
| 131 | 128 | if (WARN(!pkt_len, "%s: Dummy pkt received", __func__)) |
|---|
| 132 | 129 | return NULL; |
|---|
| .. | .. |
|---|
| 145 | 142 | payload_offset = (extended_desc + FRAME_DESC_SZ); |
|---|
| 146 | 143 | skb_put(skb, pkt_len); |
|---|
| 147 | 144 | memcpy((skb->data), (buffer + payload_offset), skb->len); |
|---|
| 148 | | - wh = (struct ieee80211_hdr *)skb->data; |
|---|
| 149 | | - vif = rsi_get_vif(common->priv, wh->addr1); |
|---|
| 150 | 145 | |
|---|
| 151 | | - info = IEEE80211_SKB_CB(skb); |
|---|
| 152 | 146 | return skb; |
|---|
| 153 | 147 | } |
|---|
| 154 | 148 | |
|---|
| 155 | 149 | /** |
|---|
| 156 | 150 | * rsi_read_pkt() - This function reads frames from the card. |
|---|
| 157 | 151 | * @common: Pointer to the driver private structure. |
|---|
| 152 | + * @rx_pkt: Received pkt. |
|---|
| 158 | 153 | * @rcv_pkt_len: Received pkt length. In case of USB it is 0. |
|---|
| 159 | 154 | * |
|---|
| 160 | 155 | * Return: 0 on success, -1 on failure. |
|---|
| .. | .. |
|---|
| 299 | 294 | |
|---|
| 300 | 295 | /** |
|---|
| 301 | 296 | * rsi_91x_init() - This function initializes os interface operations. |
|---|
| 302 | | - * @void: Void. |
|---|
| 297 | + * @oper_mode: One of DEV_OPMODE_*. |
|---|
| 303 | 298 | * |
|---|
| 304 | 299 | * Return: Pointer to the adapter structure on success, NULL on failure . |
|---|
| 305 | 300 | */ |
|---|
| .. | .. |
|---|
| 342 | 337 | } |
|---|
| 343 | 338 | |
|---|
| 344 | 339 | rsi_default_ps_params(adapter); |
|---|
| 340 | + init_bgscan_params(common); |
|---|
| 345 | 341 | spin_lock_init(&adapter->ps_lock); |
|---|
| 346 | 342 | timer_setup(&common->roc_timer, rsi_roc_timeout, 0); |
|---|
| 347 | 343 | init_completion(&common->wlan_init_completion); |
|---|