staging: brcm80211: move definition of ETHER_TYPE_BRCM to source file
authorArend van Spriel <arend@broadcom.com>
Wed, 22 Dec 2010 08:30:10 +0000 (09:30 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 Jan 2011 23:17:41 +0000 (15:17 -0800)
The ethertype BRCM is used in single source file and consequently
move there.

Reviewed-by: Brett Rudley <brudley@broadcom.com>
Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Dowan Kim <dowan@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmfmac/dhd_linux.c
drivers/staging/brcm80211/include/bcmcdc.h

index db4508378775ad9b894f1a61e72823f661ff6b29..5d5255fc62a6cea3fda7822ff6b86846e269660c 100644 (file)
@@ -45,7 +45,8 @@
 
 #include <wl_cfg80211.h>
 
-#define EPI_VERSION_STR         "4.218.248.5"
+#define EPI_VERSION_STR                "4.218.248.5"
+#define ETH_P_BRCM                     0x886c
 
 #if defined(CUSTOMER_HW2) && defined(CONFIG_WIFI_CONTROL_FUNC)
 #include <linux/wifi_tiwlan.h>
@@ -1215,7 +1216,7 @@ void dhd_rx_frame(dhd_pub_t *dhdp, int ifidx, struct sk_buff *pktbuf,
                skb_pull(skb, ETH_HLEN);
 
                /* Process special event packets and then discard them */
-               if (ntoh16(skb->protocol) == ETHER_TYPE_BRCM)
+               if (ntoh16(skb->protocol) == ETH_P_BRCM)
                        dhd_wl_host_event(dhd, &ifidx,
                                          skb_mac_header(skb),
                                          &event, &data);
index ed1c424fbc6357d914a155a48fcdfdcbeb5cea40..ed4c4a517ecab9574e358a2f9e9eb84dcfd9691e 100644 (file)
@@ -13,7 +13,7 @@
  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
-#include <proto/ethernet.h>
+#include <linux/if_ether.h>
 
 typedef struct cdc_ioctl {
        u32 cmd;                /* ioctl command value */