diff options
Diffstat (limited to 'drivers/net/wireless/b43/phy_g.c')
-rw-r--r-- | drivers/net/wireless/b43/phy_g.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/b43/phy_g.c b/drivers/net/wireless/b43/phy_g.c index fce84896d34c..063db5c00ce7 100644 --- a/drivers/net/wireless/b43/phy_g.c +++ b/drivers/net/wireless/b43/phy_g.c | |||
@@ -232,11 +232,12 @@ void b43_set_txpower_g(struct b43_wldev *dev, | |||
232 | if (unlikely(tx_bias == 0xFF)) | 232 | if (unlikely(tx_bias == 0xFF)) |
233 | tx_bias = 0; | 233 | tx_bias = 0; |
234 | 234 | ||
235 | /* Save the values for later */ | 235 | /* Save the values for later. Use memmove, because it's valid |
236 | * to pass &gphy->rfatt as rfatt pointer argument. Same for bbatt. */ | ||
236 | gphy->tx_control = tx_control; | 237 | gphy->tx_control = tx_control; |
237 | memcpy(&gphy->rfatt, rfatt, sizeof(*rfatt)); | 238 | memmove(&gphy->rfatt, rfatt, sizeof(*rfatt)); |
238 | gphy->rfatt.with_padmix = !!(tx_control & B43_TXCTL_TXMIX); | 239 | gphy->rfatt.with_padmix = !!(tx_control & B43_TXCTL_TXMIX); |
239 | memcpy(&gphy->bbatt, bbatt, sizeof(*bbatt)); | 240 | memmove(&gphy->bbatt, bbatt, sizeof(*bbatt)); |
240 | 241 | ||
241 | if (b43_debug(dev, B43_DBG_XMITPOWER)) { | 242 | if (b43_debug(dev, B43_DBG_XMITPOWER)) { |
242 | b43dbg(dev->wl, "Tuning TX-power to bbatt(%u), " | 243 | b43dbg(dev->wl, "Tuning TX-power to bbatt(%u), " |