www.usr.com/support/gpl/USR9113_release1.0.tar.gz
[bcm963xx.git] / kernel / linux / net / core / dev.c
index 86be9bc..e6f8846 100755 (executable)
 #endif /* CONFIG_NET_RADIO */
 #include <asm/current.h>
 
-#if defined(CONFIG_MIPS_BRCM)
-/* NOTE: This value should correspond to the value of
-** SIOCGIFTRANSSTART in bcmnet.h. Since bcmnet.h is not
-** visible from the linux/net/core directory,
-** we have to hardcode this value here */
-#define SIOCGIFTRANSSTART  (SIOCDEVPRIVATE + 3)
-#define SIOCCIFSTATS  (SIOCDEVPRIVATE + 7)
-#endif
-
 /* This define, if set, will randomly drop a packet when congestion
  * is more than moderate.  It helps fairness in the multi-interface
  * case when one of them is a hog, but it kills performance for the
@@ -2810,6 +2801,9 @@ int dev_ioctl(unsigned int cmd, void __user *arg)
                 */
                default:
                        if (cmd == SIOCWANDEV ||
+#if defined(CONFIG_MIPS_BRCM)
+               cmd == SIOCCIFSTATS ||
+#endif                
                            (cmd >= SIOCDEVPRIVATE &&
                             cmd <= SIOCDEVPRIVATE + 15)) {
                                dev_load(ifr.ifr_name);