diff options
author | Amol Hanwate <amol.hanwate@redpinesignals.com> | 2018-07-16 15:39:36 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-07-31 09:16:01 +0200 |
commit | 160ee2a11ce03d7276501d2448bfe8b3cbdad3e1 (patch) | |
tree | 1c04cdc54388b778cd85e2b613d93d580d49f964 /drivers/net/wireless/rsi | |
parent | rsi: Correct RSI_NEEDED_HEADROOM in mac80211_attach. (diff) | |
download | linux-160ee2a11ce03d7276501d2448bfe8b3cbdad3e1.tar.xz linux-160ee2a11ce03d7276501d2448bfe8b3cbdad3e1.zip |
rsi: fill rx_params only once.
rx_params are getting updated two times in driver, which is not required.
Hence, removing duplicate updation of rx_params from rsi_prepare_skb().
Signed-off-by: Amol Hanwate <amol.hanwate@redpinesignals.com>
Signed-off-by: Siva Rebbagondla <siva.rebbagondla@redpinesignals.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/rsi')
-rw-r--r-- | drivers/net/wireless/rsi/rsi_91x_main.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/wireless/rsi/rsi_91x_main.c b/drivers/net/wireless/rsi/rsi_91x_main.c index 1485a0c89df2..34a5d9c06178 100644 --- a/drivers/net/wireless/rsi/rsi_91x_main.c +++ b/drivers/net/wireless/rsi/rsi_91x_main.c @@ -122,7 +122,6 @@ static struct sk_buff *rsi_prepare_skb(struct rsi_common *common, u8 extended_desc) { struct ieee80211_tx_info *info; - struct skb_info *rx_params; struct sk_buff *skb = NULL; u8 payload_offset; struct ieee80211_vif *vif; @@ -149,10 +148,6 @@ static struct sk_buff *rsi_prepare_skb(struct rsi_common *common, vif = rsi_get_vif(common->priv, wh->addr1); info = IEEE80211_SKB_CB(skb); - rx_params = (struct skb_info *)info->driver_data; - rx_params->rssi = rsi_get_rssi(buffer); - rx_params->channel = rsi_get_connected_channel(vif); - return skb; } |