Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtl8187: Add missing priv->vif assignments

This adds missing priv->vif assignments after "mac80211: don't use
interface indices in drivers" change. As rtl8180, rtl8187 also needs
priv->vif to be set, as without this an oops can happen in rtl8187_tx
function (priv->vif is passed to ieee80211_rts_duration).

Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
Acked-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Herton Ronaldo Krzesinski and committed by
John W. Linville
aa979a6a 56690c21

+3
+3
drivers/net/wireless/rtl8187_dev.c
··· 509 509 return -EOPNOTSUPP; 510 510 } 511 511 512 + priv->vif = conf->vif; 513 + 512 514 rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD, RTL818X_EEPROM_CMD_CONFIG); 513 515 for (i = 0; i < ETH_ALEN; i++) 514 516 rtl818x_iowrite8(priv, &priv->map->MAC[i], ··· 525 523 { 526 524 struct rtl8187_priv *priv = dev->priv; 527 525 priv->mode = IEEE80211_IF_TYPE_MNTR; 526 + priv->vif = NULL; 528 527 } 529 528 530 529 static int rtl8187_config(struct ieee80211_hw *dev, struct ieee80211_conf *conf)