Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141148
b: refs/heads/master
c: bd37b7f
h: refs/heads/master
v: v3
  • Loading branch information
Pekka Enberg authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 8813e37 commit c37727a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 64328c8711d72794446bbafe23890468786424cc
refs/heads/master: bd37b7fddf51431faf9c32cd22356421913cfce8
1 change: 0 additions & 1 deletion trunk/drivers/staging/winbond/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
// Common function definition
//==================================================================================================
#define DEBUG_ENABLED
#define ETH_LENGTH_OF_ADDRESS 6
#ifdef DEBUG_ENABLED
#define WBDEBUG( _M ) printk _M
#else
Expand Down
5 changes: 2 additions & 3 deletions trunk/drivers/staging/winbond/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -948,14 +948,13 @@ Uxx_ReadEthernetAddress( phw_data_t pHwData )
// Return Value:
// None.
//==============================================================================================================
void CardGetMulticastBit( u8 Address[ETH_LENGTH_OF_ADDRESS],
u8 *Byte, u8 *Value )
void CardGetMulticastBit( u8 Address[ETH_ALEN], u8 *Byte, u8 *Value )
{
u32 Crc;
u32 BitNumber;

// First compute the CRC.
Crc = CardComputeCrc(Address, ETH_LENGTH_OF_ADDRESS);
Crc = CardComputeCrc(Address, ETH_ALEN);

// The computed CRC is bit0~31 from left to right
//At first we should do right shift 25bits, and read 7bits by using '&', 2^7=128
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/winbond/wb35reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ unsigned char Wb35Reg_initial(phw_data_t pHwData)
Wb35Reg_ReadSync( pHwData, 0x03b4, &Region_ScanInterval );

// Update Ethernet address
memcpy( pHwData->CurrentMacAddress, pHwData->PermanentMacAddress, ETH_LENGTH_OF_ADDRESS );
memcpy( pHwData->CurrentMacAddress, pHwData->PermanentMacAddress, ETH_ALEN );

// Update software variable
pHwData->SoftwareSet = (u16)(SoftwareSet & 0xffff);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/winbond/wbhal.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ void hal_set_ethernet_address( phw_data_t pHwData, u8 *current_address )

if( pHwData->SurpriseRemove ) return;

memcpy( pHwData->CurrentMacAddress, current_address, ETH_LENGTH_OF_ADDRESS );
memcpy( pHwData->CurrentMacAddress, current_address, ETH_ALEN );

ltmp[0]= cpu_to_le32( *(u32 *)pHwData->CurrentMacAddress );
ltmp[1]= cpu_to_le32( *(u32 *)(pHwData->CurrentMacAddress + 4) ) & 0xffff;
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/staging/winbond/wbhal_s.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define __WINBOND_WBHAL_S_H

#include <linux/types.h>
#include <linux/if_ether.h> /* for ETH_ALEN */

#include "common.h"

Expand Down Expand Up @@ -427,7 +428,6 @@ typedef struct _TXVGA_FOR_50 {
#include "wb35tx_s.h"
#include "wb35rx_s.h"


// For Hal using ==================================================================
typedef struct _HW_DATA_T
{
Expand All @@ -452,8 +452,8 @@ typedef struct _HW_DATA_T
//===============================================
// Definition for MAC address
//===============================================
u8 PermanentMacAddress[ETH_LENGTH_OF_ADDRESS + 2]; // The Enthernet addr that are stored in EEPROM. + 2 to 8-byte alignment
u8 CurrentMacAddress[ETH_LENGTH_OF_ADDRESS + 2]; // The Enthernet addr that are in used. + 2 to 8-byte alignment
u8 PermanentMacAddress[ETH_ALEN + 2]; // The Enthernet addr that are stored in EEPROM. + 2 to 8-byte alignment
u8 CurrentMacAddress[ETH_ALEN + 2]; // The Enthernet addr that are in used. + 2 to 8-byte alignment

//=====================================================================
// Definition for 802.11
Expand Down

0 comments on commit c37727a

Please sign in to comment.