200-reduce_size.patch 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -15,8 +15,8 @@ CFLAGS += -Wall -Wundef -Wstrict-prototy
  4. OBJS = iw.o genl.o event.o info.o phy.o \
  5. interface.o ibss.o station.o survey.o util.o \
  6. mesh.o mpath.o scan.o reg.o version.o \
  7. - reason.o status.o connect.o link.o offch.o ps.o cqm.o \
  8. - bitrate.o wowlan.o coalesce.o roc.o p2p.o
  9. + reason.o status.o connect.o link.o ps.o \
  10. + bitrate.o
  11. OBJS += sections.o
  12. OBJS-$(HWSIM) += hwsim.o
  13. --- a/info.c
  14. +++ b/info.c
  15. @@ -207,6 +207,7 @@ next:
  16. }
  17. }
  18. +#if 0
  19. if (tb_band[NL80211_BAND_ATTR_RATES]) {
  20. printf("\t\tBitrates (non-HT):\n");
  21. nla_for_each_nested(nl_rate, tb_band[NL80211_BAND_ATTR_RATES], rem_rate) {
  22. @@ -223,6 +224,7 @@ next:
  23. printf("\n");
  24. }
  25. }
  26. +#endif
  27. }
  28. }
  29. @@ -273,6 +275,7 @@ next:
  30. printf("\tCoverage class: %d (up to %dm)\n", coverage, 450 * coverage);
  31. }
  32. +#if 0
  33. if (tb_msg[NL80211_ATTR_CIPHER_SUITES]) {
  34. int num = nla_len(tb_msg[NL80211_ATTR_CIPHER_SUITES]) / sizeof(__u32);
  35. int i;
  36. @@ -284,6 +287,7 @@ next:
  37. cipher_name(ciphers[i]));
  38. }
  39. }
  40. +#endif
  41. if (tb_msg[NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX] &&
  42. tb_msg[NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX])
  43. @@ -303,11 +307,13 @@ next:
  44. printf("\t\t * %s\n", iftype_name(nla_type(nl_mode)));
  45. }
  46. +#if 0
  47. if (tb_msg[NL80211_ATTR_SOFTWARE_IFTYPES]) {
  48. printf("\tsoftware interface modes (can always be added):\n");
  49. nla_for_each_nested(nl_mode, tb_msg[NL80211_ATTR_SOFTWARE_IFTYPES], rem_mode)
  50. printf("\t\t * %s\n", iftype_name(nla_type(nl_mode)));
  51. }
  52. +#endif
  53. if (tb_msg[NL80211_ATTR_INTERFACE_COMBINATIONS]) {
  54. struct nlattr *nl_combi;
  55. @@ -404,6 +410,7 @@ broken_combination:
  56. printf("\tinterface combinations are not supported\n");
  57. }
  58. +#if 0
  59. if (tb_msg[NL80211_ATTR_SUPPORTED_COMMANDS]) {
  60. printf("\tSupported commands:\n");
  61. nla_for_each_nested(nl_cmd, tb_msg[NL80211_ATTR_SUPPORTED_COMMANDS], rem_cmd)
  62. @@ -496,6 +503,7 @@ broken_combination:
  63. printf("\t\t * wake up on TCP connection\n");
  64. }
  65. }
  66. +#endif
  67. if (tb_msg[NL80211_ATTR_ROAM_SUPPORT])
  68. printf("\tDevice supports roaming.\n");
  69. @@ -532,6 +540,7 @@ broken_combination:
  70. }
  71. }
  72. +#if 0
  73. if (tb_msg[NL80211_ATTR_FEATURE_FLAGS]) {
  74. unsigned int features = nla_get_u32(tb_msg[NL80211_ATTR_FEATURE_FLAGS]);
  75. @@ -584,6 +593,7 @@ broken_combination:
  76. if (features & NL80211_FEATURE_DYNAMIC_SMPS)
  77. printf("\tDevice supports dynamic SMPS\n");
  78. }
  79. +#endif
  80. if (tb_msg[NL80211_ATTR_TDLS_SUPPORT])
  81. printf("\tDevice supports T-DLS.\n");
  82. @@ -633,6 +643,7 @@ TOPLEVEL(list, NULL, NL80211_CMD_GET_WIP
  83. "List all wireless devices and their capabilities.");
  84. TOPLEVEL(phy, NULL, NL80211_CMD_GET_WIPHY, NLM_F_DUMP, CIB_NONE, handle_info, NULL);
  85. +#if 0
  86. static int handle_commands(struct nl80211_state *state,
  87. struct nl_cb *cb, struct nl_msg *msg,
  88. int argc, char **argv, enum id_input id)
  89. @@ -645,6 +656,7 @@ static int handle_commands(struct nl8021
  90. }
  91. TOPLEVEL(commands, NULL, NL80211_CMD_GET_WIPHY, 0, CIB_NONE, handle_commands,
  92. "list all known commands and their decimal & hex value");
  93. +#endif
  94. static int print_feature_handler(struct nl_msg *msg, void *arg)
  95. {