|
@@ -2620,13 +2620,7 @@ void rtllib_wake_all_queues(struct rtllib_device *ieee)
|
|
|
inline void rtllib_randomize_cell(struct rtllib_device *ieee)
|
|
|
{
|
|
|
|
|
|
- get_random_bytes(ieee->current_network.bssid, ETH_ALEN);
|
|
|
-
|
|
|
- /* an IBSS cell address must have the two less significant
|
|
|
- * bits of the first byte = 2
|
|
|
- */
|
|
|
- ieee->current_network.bssid[0] &= ~0x01;
|
|
|
- ieee->current_network.bssid[0] |= 0x02;
|
|
|
+ random_ether_addr(ieee->current_network.bssid);
|
|
|
}
|
|
|
|
|
|
/* called in user context only */
|