Skip to content

Commit

Permalink
rtlwifi: Fix problem when switching connections
Browse files Browse the repository at this point in the history
The driver fails to clear encryption keys making it impossible
to switch connections.

Signed-off-by: George <george0505@realtek.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@kernel.org>        [2.6.39+]
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
George authored and John W. Linville committed Sep 13, 2011
1 parent 3401dc6 commit bac2555
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/net/wireless/rtlwifi/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,11 @@ static void rtl_op_bss_info_changed(struct ieee80211_hw *hw,

mac->link_state = MAC80211_NOLINK;
memset(mac->bssid, 0, 6);

/* reset sec info */
rtl_cam_reset_sec_info(hw);

rtl_cam_reset_all_entry(hw);
mac->vendor = PEER_UNKNOWN;

RT_TRACE(rtlpriv, COMP_MAC80211, DBG_DMESG,
Expand Down Expand Up @@ -1063,6 +1068,9 @@ static int rtl_op_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
*or clear all entry here.
*/
rtl_cam_delete_one_entry(hw, mac_addr, key_idx);

rtl_cam_reset_sec_info(hw);

break;
default:
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
Expand Down

0 comments on commit bac2555

Please sign in to comment.