File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
drivers/net/wireless/rtlwifi Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ u8 rtl_cam_get_free_entry(struct ieee80211_hw *hw, u8 *sta_addr)
295
295
/* Does STA already exist? */
296
296
for (i = 4 ; i < TOTAL_CAM_ENTRY ; i ++ ) {
297
297
addr = rtlpriv -> sec .hwsec_cam_sta_addr [i ];
298
- if (memcmp (addr , sta_addr , ETH_ALEN ) == 0 )
298
+ if (ether_addr_equal_unaligned (addr , sta_addr ) )
299
299
return i ;
300
300
}
301
301
/* Get a free CAM entry. */
@@ -335,7 +335,7 @@ void rtl_cam_del_entry(struct ieee80211_hw *hw, u8 *sta_addr)
335
335
addr = rtlpriv -> sec .hwsec_cam_sta_addr [i ];
336
336
bitmap = (rtlpriv -> sec .hwsec_cam_bitmap ) >> i ;
337
337
if (((bitmap & BIT (0 )) == BIT (0 )) &&
338
- (memcmp (addr , sta_addr , ETH_ALEN ) == 0 )) {
338
+ (ether_addr_equal_unaligned (addr , sta_addr ) )) {
339
339
/* Remove from HW Security CAM */
340
340
eth_zero_addr (rtlpriv -> sec .hwsec_cam_sta_addr [i ]);
341
341
rtlpriv -> sec .hwsec_cam_bitmap &= ~(BIT (0 ) << i );
You can’t perform that action at this time.
0 commit comments